This commit still works on RPi but produces ------------ test3 ------------ ../tcc -B.. -DCONFIG_LDDIR="\"lib64\"" -DTCC_TARGET_X86_64 -DONE_SOURCE -run ../tcc.c -B.. -DCONFIG_LDDIR="\"lib64\"" -DTCC_TARGET_X86_64 -DONE_SOURCE -run ../tcc.c -B.. -DCONFIG_LDDIR="\"lib64\"" -DTCC_TARGET_X86_64 -DONE_SOURCE -run ../tcc.c -B.. -run tcctest.c > test.out3 tcc: error: undefined symbol '__floatundixf' tcc: error: undefined symbol '__va_start' tcc: error: undefined symbol '__va_end' make[1]: *** [test3] Error 255 make[1]: Leaving directory `/home/cjullien/tinycc/tests'
On CentOS ----- Message d'origine ----- De : "grischka" <gris...@gmx.de> Date jeu. 14/02/2013 17:59 (GMT +01:00) À : "Thomas Preud'homme" <robo...@celest.fr> Cc : "tinycc-devel@nongnu.org" <tinycc-devel@nongnu.org> Objet : Re: [Tinycc-devel] test failure on Linux Thomas Preud'homme wrote: >> If not, just do nothing. Exept on old x86_64, you could >> set lddir=lib64 if it exists. > > Yep, just after sending my mail about finding libc.so.6 I thought it might be > better to look for crti.o. I hope that approach will please you. Well, I see it's not trivial. Doing it completely statically like when you had it in tcc.h isn't good because you can't test file existence anymore. Doing it completely dynamically by looking at ldd may end up in hardlink jungle. So maybe there is something in between. I changed configure to pass CONFIG_xxxDIR/PATH options via commandline. Reason: otherwise it is not possible to leave CONFIG_MULTIARCHDIR undefined e.g. for cross-compilers. Now, if we could move those three runtime checks from Makefile to configure I will be completely unconditionally happy ;) - ifneq (,$(wildcard /lib/ld-linux.so.3)) - ifneq (,$(wildcard /lib/ld-linux-armhf.so.3 /lib/arm-linux-gnueabihf/ld-linux.so.3)) - $(if $(shell grep -l "^Features.* \(vfp\|iwmmxt\) " /proc/cpuinfo),-DTCC_ARM_VFP) (Of course I don't insist. Just if you can see a nice solution right now) Thanks for all your work, --- grischka _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel