After git pull on RPi I get: $ make && make test gcc -o libtcc.o -c libtcc.c -DTCC_TARGET_ARM -DWITHOUT_LIBTCC -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -I. -Wall -g -O2 -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare libtcc.c: In function tcc_new: libtcc.c:988:29: error: expected ) before CONFIG_LDDIR libtcc.c:990:66: error: expected ) before CONFIG_LDDIR make: *** [libtcc.o] Error 1
-----Original Message----- From: tinycc-devel-bounces+eligis=orange...@nongnu.org [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of grischka Sent: mercredi 13 février 2013 21:29 To: Thomas Preud'homme Cc: tinycc-devel@nongnu.org Subject: Re: [Tinycc-devel] test failure on Linux Thomas Preud'homme wrote: > I suggest we include it and then release tomorrow once people checked > I didn't break something with my last patches. > +if ! $cc -o print_env_info print_env_info.c 2>/dev/null ; then > echo big/little test failed Actually maybe: echo "You don't have an usable compiler" If we cannot compile that file then how could we compile TCC. > print_env_info I'd suggest something "config-...", config-info/print/env or some such. That it sorts near to configure in directory listing. > if test -n "$multiarch_triplet" ; then > echo "#define CONFIG_MULTIARCHDIR \"$multiarch_triplet\"" >> $TMPH > fi if test -n "$lddir" ; then > echo "#define CONFIG_LDDIR \"$lddir\"" >> $TMPH fi If #defined unconditionally overriding on the compiler command line doesn't work any more. Maybe you can use configure:print_var2(). > #ifndef CONFIG_LDDIR > -# ifdef CONFIG_MULTIARCHDIR > -# define CONFIG_LDDIR "lib/" CONFIG_MULTIARCHDIR -# else -# define > CONFIG_LDDIR "lib" > -# endif > -#endif CONFIG_LDDIR is now undefined in tcc. Leaving "lib" as default cannot hurt IMO (even if it's just to keep the section readable). > for opt do > eval opt=$opt > case "$opt" in The eval messes up with ./configure --extra-cflags="-Os -Wall" > libc_dir="$(ldd ./print_env_info | grep libc.so | sed 's|[^/]*/\(.*/\)[^/]*|\1|')" ldd doesn't work on my MSYS. I cannot complain because I just have the downstripped version for git, but maybe you can use gcc -print-file-name=crt1.o or such. Thanks, --- 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