[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] test failure on Linux
From: |
grischka |
Subject: |
Re: [Tinycc-devel] test failure on Linux |
Date: |
Wed, 13 Feb 2013 21:29:04 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
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
- Re: [Tinycc-devel] test failure on Linux, (continued)
- Re: [Tinycc-devel] test failure on Linux, arnold, 2013/02/13
- Re: [Tinycc-devel] test failure on Linux, Domingo Alvarez Duarte, 2013/02/13
- Re: [Tinycc-devel] test failure on Linux, Thomas Preud'homme, 2013/02/13
- Re: [Tinycc-devel] test failure on Linux, Thomas Preud'homme, 2013/02/13
- Re: [Tinycc-devel] test failure on Linux, Thomas Preud'homme, 2013/02/13
- Re: [Tinycc-devel] test failure on Linux, Ramsay Jones, 2013/02/14
- Re: [Tinycc-devel] test failure on Linux, Thomas Preud'homme, 2013/02/14
- Re: [Tinycc-devel] test failure on Linux, Ramsay Jones, 2013/02/14
- Re: [Tinycc-devel] test failure on Linux, Ramsay Jones, 2013/02/13
- Re: [Tinycc-devel] test failure on Linux, Thomas Preud'homme, 2013/02/13
- Re: [Tinycc-devel] test failure on Linux,
grischka <=
- Re: [Tinycc-devel] test failure on Linux, Christian Jullien, 2013/02/13
- Re: [Tinycc-devel] test failure on Linux, Thomas Preud'homme, 2013/02/13
- Re: [Tinycc-devel] test failure on Linux, Thomas Preud'homme, 2013/02/13
- Re: [Tinycc-devel] test failure on Linux, Thomas Preud'homme, 2013/02/13
- Re: [Tinycc-devel] test failure on Linux, grischka, 2013/02/13
- Re: [Tinycc-devel] test failure on Linux, Thomas Preud'homme, 2013/02/13
- Re: [Tinycc-devel] test failure on Linux, grischka, 2013/02/14
- Re: [Tinycc-devel] test failure on Linux, Thomas Preud'homme, 2013/02/14
- Re: [Tinycc-devel] test failure on Linux, grischka, 2013/02/14
- Re: [Tinycc-devel] test failure on Linux, Thomas Preud'homme, 2013/02/14