Discussion:
pcc-libs FTFBS on linux-amd64 with pcc itself
Thorsten Glaser
2012-09-22 19:13:03 UTC
Permalink
Hi,

I’m running into:

<=== libsoftfloat
===> libpcc
make[2]: Entering directory `/home/tg/pcc-1.1.0~DEVEL+20120922/builddir/amd64/libs/libpcc'
/home/tg/pcc-1.1.0~DEVEL+20120922/builddir/amd64/comp/cc/cc/pcc -O -I/home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpc
c -DTARGET_LITTLE_ENDIAN=1 -Dos_linux -isystem /home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc/include -O -g -c /ho
me/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc/cmpdi2.c
/home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc/quad.h, line 134: redeclaration of __ashldi3
/home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc/quad.h, line 135: redeclaration of __ashrdi3
/home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc/quad.h, line 147: redeclaration of __lshrdi3
/home/tg/pcc-1.1.0~DEVEL+20120922/builddir/amd64/tmp/usr/lib/pcc/x86_64-pc-linux-gnu/1.1.0.DEVEL/libexec/ccom terminated with status 1
make[2]: *** [cmpdi2.o] Error 1

Even if I patch out the declarations from "quad.h", the definitions
in the files themselves yield a compile error:

/home/tg/pcc-1.1.0~DEVEL+20120922/builddir/amd64/comp/cc/cc/pcc -O -DDEB_TARGET_MULTIARCH="" -I/home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc -DTARGET_LITTLE_ENDIAN=1 -Dos_linux -isystem /home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc/include -O -g -c /home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc/ashldi3.c
/home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc/ashldi3.c, line 45: redeclaration of __ashldi3
/home/tg/pcc-1.1.0~DEVEL+20120922/builddir/amd64/tmp/usr/lib/pcc/x86_64-pc-linux-gnu/1.1.0.DEVEL/libexec/ccom terminated with status 1
make[2]: *** [ashldi3.o] Error 1

I cannot continue like this. Are these built in? GCC doesn’t yell
about them being redefined, and pcc doesn’t tell me where a previous
declaration is, plus, the implementation should still be possible.

Thanks in advance for fixing,
//mirabilos
--
FWIW, I'm quite impressed with mksh interactively. I thought it was much
*much* more bare bones. But it turns out it beats the living hell out of
ksh93 in that respect. I'd even consider it for my daily use if I hadn't
wasted half my life on my zsh setup. :-) -- Frank Terbeck in #!/bin/mksh
Anders Magnusson
2012-09-23 09:07:47 UTC
Permalink
Post by Thorsten Glaser
Hi,
<=== libsoftfloat
===> libpcc
make[2]: Entering directory `/home/tg/pcc-1.1.0~DEVEL+20120922/builddir/amd64/libs/libpcc'
/home/tg/pcc-1.1.0~DEVEL+20120922/builddir/amd64/comp/cc/cc/pcc -O -I/home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpc
c -DTARGET_LITTLE_ENDIAN=1 -Dos_linux -isystem /home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc/include -O -g -c /ho
me/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc/cmpdi2.c
/home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc/quad.h, line 134: redeclaration of __ashldi3
/home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc/quad.h, line 135: redeclaration of __ashrdi3
/home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc/quad.h, line 147: redeclaration of __lshrdi3
/home/tg/pcc-1.1.0~DEVEL+20120922/builddir/amd64/tmp/usr/lib/pcc/x86_64-pc-linux-gnu/1.1.0.DEVEL/libexec/ccom terminated with status 1
make[2]: *** [cmpdi2.o] Error 1
Even if I patch out the declarations from "quad.h", the definitions
/home/tg/pcc-1.1.0~DEVEL+20120922/builddir/amd64/comp/cc/cc/pcc -O -DDEB_TARGET_MULTIARCH="" -I/home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc -DTARGET_LITTLE_ENDIAN=1 -Dos_linux -isystem /home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc/include -O -g -c /home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc/ashldi3.c
/home/tg/pcc-1.1.0~DEVEL+20120922/libs/libpcc/ashldi3.c, line 45: redeclaration of __ashldi3
/home/tg/pcc-1.1.0~DEVEL+20120922/builddir/amd64/tmp/usr/lib/pcc/x86_64-pc-linux-gnu/1.1.0.DEVEL/libexec/ccom terminated with status 1
make[2]: *** [ashldi3.o] Error 1
I cannot continue like this. Are these built in? GCC doesn’t yell
about them being redefined, and pcc doesn’t tell me where a previous
declaration is, plus, the implementation should still be possible.
It was an amd64 define that got checked in by accident. Removed now.

-- Ragge

Loading...