On Wed, Mar 19, 2014 at 7:03 AM, Thomas Preud'homme <robo...@celest.fr>wrote:

> Le mardi 18 mars 2014 11:12:42, vous avez écrit :
> > Introduced by
> > 6ed6a36a51065060bd5e9bb516b85ff796e05f30 and
> > c68af2db9d497fd8229162bc23b9679fc2e1fc8b
> >
> > build@build ~/linux_x86_64-tcc $ make
> > tcc -o tcc.o -c tcc.c -DCONFIG_LDDIR="\"lib64\"" -DTCC_TARGET_X86_64 -I.
> > -Wall -g -O2
> > tcc -o libtcc.o -c libtcc.c -DCONFIG_LDDIR="\"lib64\""
> -DTCC_TARGET_X86_64
> > -I.  -Wall -g -O2
> > tcc -o tccpp.o -c tccpp.c -DCONFIG_LDDIR="\"lib64\"" -DTCC_TARGET_X86_64
> > -I.  -Wall -g -O2
> > tcc -o tccgen.o -c tccgen.c -DCONFIG_LDDIR="\"lib64\""
> -DTCC_TARGET_X86_64
> > -I.  -Wall -g -O2
> > tcc -o tccelf.o -c tccelf.c -DCONFIG_LDDIR="\"lib64\""
> -DTCC_TARGET_X86_64
> > -I.  -Wall -g -O2
> > tcc -o tccasm.o -c tccasm.c -DCONFIG_LDDIR="\"lib64\""
> -DTCC_TARGET_X86_64
> > -I.  -Wall -g -O2
> > tcc -o tccrun.o -c tccrun.c -DCONFIG_LDDIR="\"lib64\""
> -DTCC_TARGET_X86_64
> > -I.  -Wall -g -O2
> > tcc -o x86_64-gen.o -c x86_64-gen.c -DCONFIG_LDDIR="\"lib64\""
> > -DTCC_TARGET_X86_64 -I.  -Wall -g -O2
> > tcc -o i386-asm.o -c i386-asm.c -DCONFIG_LDDIR="\"lib64\""
> > -DTCC_TARGET_X86_64 -I.  -Wall -g -O2
> > ar rcs libtcc.a libtcc.o tccpp.o tccgen.o tccelf.o tccasm.o tccrun.o
> > x86_64-gen.o i386-asm.o
> > tcc -o tcc tcc.o libtcc.a -lm -ldl -I.  -Wall -g -O2
> > tcc: error: undefined symbol '__clear_cache'
> > make: *** [tcc] Error 1
> > build@build ~/linux_x86_64-tcc $ tcc -version
> > tcc version 0.9.26 (x86-64 Linux)
> > build@build ~/linux_x86_64-tcc $ uname -a
> > Linux build 3.10.33-gentoo #1 SMP Mon Mar 10 21:17:28 Local time zone
> must
> > be set--see zic  x86_64 Intel(R) Xeon(R) CPU E5620 @ 2.40GHz GenuineIntel
> > GNU/Linux
> > build@build ~/linux_x86_64-tcc $ git describe
> > release_0_9_26-166-g40e3859
>
> __clear_cache comes from the host compiler. Here you compiled tcc with an
> old
> tcc that didn't have __clear_cache. Try first compiling tcc with gcc and
> then
> you can compile tcc with itself.
>
> Best regards,
>
> Thomas
>

Yes, that works, thanks. I've been working on a test using tcc to try
compiling all packages on my gentoo system (after testing with gcc/clang).
tcc has been recompiling/reinstalled a few times in that process, which
lead to the breakage.

-- 
-Austin
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to