Builds fine on ubuntu, fails to work well on Solus. What am I missing in configuration to turn this into a working package?
http://download.savannah.gnu.org/releases/tinycc/tcc-0.9.27.tar.bz2
./configure && make && make install

$ tcc examples/ex2.c
/usr/lib64/crt1.o: error: Invalid relocation entry [15] '.rela.debug_info' @ 000004d0
tcc: error: file 'crt1.o' not found

Did you get any erros during ./configure && make && make install? Do you have all basic development tools installed? (sudo eopkg it -c system.devel)

Hey @Staudey , thanks. Unfortunately, no errors, and yes I have everything installed and system up to date. I've run into a couple issues like this that are beyond my level of linux systems understanding to solve, where everything "just works" in ubuntu.

There's a chance you are running into issues with our default CFLAGS and LDFLAGS. Worth looking into.

10 days later

@DataDrake Thanks for the suggestion. I've looked into this a bit more and found the same issue across many linux distros. My current conlusion is that it is something weird that tcc does, and modern changes to system libs have created this message.

However! The binaries build by tcc actually run, even though they report this runtime error. So, in a lavish display of ersatz engineering, I've created a tcc script that calls the real tcc and greps away those specific error lines. My job here is done!