News for hackers. Stuff that matters.
Re:Chibicc – A Small C Compiler by einpoklum on Sunday November 13, 2022 @07:36AM (#33582488)
Overall, a commendable initiative, but:

> portability is not my goal at this moment. It may or may not work on systems other than Ubuntu 20.04.

... that is not good. On the contrary, you should make it so that portability is not an _issue_. IIUC, this should not depend on much beyond libc, or even just libc, so - why should it be Ubuntu-specific?

Re:Chibicc – A Small C Compiler by rui314 on Sunday November 13, 2022 @07:45AM (#33582537)
CRT object files which contain process startup routines are not in a fixed directory. Unfortunately compilers have to be hard-coded to contain an appropriate directory name.
Re:Chibicc – A Small C Compiler by einpoklum on Sunday November 13, 2022 @07:55AM (#33582607)
Well, can't that be made a build parameter, that can be determined during build configuration? CMake'ifying the project might help you get there perhaps?
Re:Chibicc – A Small C Compiler by messe on Sunday November 13, 2022 @08:11AM (#33582712)
Or just check for an environment variable in the Makefile? No need to add the complexity of cmake.
Re:Chibicc – A Small C Compiler by samsquire on Sunday November 13, 2022 @08:38AM (#33582930)
It's an extremely large amount of work to be cross platform and cross tool chain.

Packaging for Linux is thankless tedious work.

Re:Chibicc – A Small C Compiler by einpoklum on Sunday November 13, 2022 @11:24AM (#33584491)
1. We're talking sources, not binaries.

2. Assuming chibicc doesn't also implement the C standard library, then I doubt that it's an extremely large amount of work.

3. It's not thankless - you are thanked by your users, who aren't forced to get Ubuntu 20.

Re:Chibicc – A Small C Compiler by shepherdjerred on Sunday November 13, 2022 @02:13PM (#33586329)
> 3. It's not thankless - you are thanked by your users, who aren't forced to get Ubuntu 20.

I cannot imagine saying this to an open source maintainer

Re:Chibicc – A Small C Compiler by benj111 on Sunday November 13, 2022 @11:12AM (#33584352)
It probably isn't just Ubuntu 20.04 specific, but that's what the Dev runs and that's what they tested it on.

You could offer to package and test for other platforms, if it's important to you.