Post by Susi LehtolaOn Mon, 8 Apr 2013 19:39:21 +0200
Post by Irek SzczesniakPost by Susi LehtolaSecondly, before a pcc 1.1 release I would like to get pcc working
on linux once again. As I reported in December, for some reason
binaries compiled with current versions of gcc don't return the
right value - return 0 ends up returning 96.
Does this happen for pcc binaries compiled with pcc itself? Does gcc
report any suspicious warnings? Does valgrind report anything? Can you
bisect the source repository commits to narrow down the commit which
caused the break?
I can't compile pcc with pcc itself since pcc compiled with gcc.
I'll try bisecting as soon as the www server gets back up.
I have now done the bisection, and here are its results. The procedure
is:
1. download pcc and pcc-libs tarballs of the chosen date
2. compile pcc and pcc-libs with gcc
3. recompile pcc and pcc-libs with pcc (compiled with gcc)
4. recompile pcc and pcc-libs with pcc (compiled with pcc)
Results:
20120210 works
20120710 works
20120711 major internal compiler error, cc.c line 1422
20120713 major internal compiler error
20120717 major internal compiler error
20120725 major internal compiler error
20120801 major internal compiler error
20120804 major internal compiler error
20120806 ar: softfloat.o: No such file or directory
20120807 configure: error: cannot run C compiled programs.
20120808 fail
20120810 fail
20120910 fail,
pcc -I. -DTARGET_LITTLE_ENDIAN=1 -Dos_linux -isystem ../libpcc/include
-Iamd64 -Ilinux -I. -g -c cmpdi2.c
quad.h, line 134: redeclaration of __ashldi3
quad.h, line 135: redeclaration of __ashrdi3
quad.h, line 147: redeclaration of __lshrdi3
/usr/libexec/ccom terminated with status 1
20120110 fail
20121216 fail
So it would seem that the problem was introduced either in the
rework between 20120710 and 20120711, or in the fix of the resulting
compiler error.
When the compiler starts to work again in 20120807, configure fails
because the binaries produced by pcc (compiled with gcc) give out a
wrong error code - return 0 ends up returning something like 96...
--
Susi Lehtola
Fedora Project Contributor
***@fedoraproject.org
--
Susi Lehtola
Fedora Project Contributor
***@fedoraproject.org