Issue Details (XML | Word | Printable)

Key: PCC-115
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Susi Lehtola
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

Can't compile pcc with gcc

Created: 02/Feb/10 09:19 AM   Updated: 10/Feb/11 10:21 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Environment: Fedora 12 x86_64 w/ gcc 4.4.2


 Description  « Hide
Clip from build log:

gcc -DGCC_COMPAT -DPCC_DEBUG -Dos_linux -Dmach_amd64 -D_ISOC99_SOURCE -I. -I. -I../.. -I../../mip -I../../arch/amd64 -I../../os/linux -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare -DMKEXT -o mkext \
../../mip/mkext.c ../../arch/amd64/table.c ../../mip/common.c
./mkext
table entry 120, op STASG: ASSIGN/STASG reclaim must be RDEST
table entry 177, op U-: FOREFF may cause reclaim of wrong class
make[2]: Leaving directory `/builddir/build/BUILD/pcc-100202/cc/ccom'
make[2]: *** [external.h] Error 1
make[1]: Leaving directory `/builddir/build/BUILD/pcc-100202/cc'
make[1]: *** [ccom] Error 2
make: *** [cc] Error 2


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Daniel Dickman added a comment - 27/Feb/10 08:19 PM
I get the exact same issue on OpenBSD/amd64 on the latest checkout of pcc.

Anders Magnusson added a comment - 10/Jun/10 07:29 PM
Is this still a problem?

Susi Lehtola added a comment - 11/Jun/10 03:46 PM
Now it compiles, but I can't recompile pcc with itself.

pcc-libs snapshot pcc-libs-100611 fails in make with

cd libsoftfloat; make all
make[1]: Entering directory `/home/jzlehtol/rpmbuild/BUILD/pcc-100611/pcc-libs/libsoftfloat'
pcc -O -DSOFTFLOAT_FOR_GCC -I. -I./arch/amd64 -c bits64/softfloat.c
bits64/softfloat.c, line 1501: compiler error: argument 7
make[1]: *** [softfloat.o] Error 1
make[1]: Leaving directory `/home/jzlehtol/rpmbuild/BUILD/pcc-100611/pcc-libs/libsoftfloat'

configure has been run just with ./configure


The compilation of the compiler itself also fails, but with


cd cc; make all -w
make[2]: Entering directory `/home/jzlehtol/rpmbuild/BUILD/pcc-100611/cc/cc'
pcc -DLIBEXECDIR=\"/usr/local/libexec/\" -DGCC_COMPAT -DINCLUDEDIR=\"/usr/local/include/\" -DPCCINCDIR=\"/usr/local/lib/pcc/x86_64-unknown-linux-gnu/0.9.9/include/\" -DPCCLIBDIR=\"/usr/local/lib/pcc/x86_64-unknown-linux-gnu/0.9.9/lib/\" -Dos_linux -DTARGMACH=amd64 -Dmach_amd64 -I../.. -I../../os/linux -I../../mip -I../../arch/amd64 -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare -Wtruncate -c cc.c
/usr/include/ctype.h, line 82: syntax error
/usr/include/ctype.h, line 84: syntax error
/usr/include/ctype.h, line 86: syntax error
../../mip/compat.h, line 42: declaration doesn't match prototype
cc.c, line 1048: warning: conversion to 'int' from 'int' may alter its value
cc.c, line 1048: warning: conversion to 'int' from 'long' may alter its value
cc.c, line 1145: struct or union required
cc.c, line 1145: lvalue required
cc.c, line 1145: struct or union required
cc.c, line 1145: lvalue required
cc.c, line 1145: struct or union required
cc.c, line 1145: lvalue required
cc.c, line 1145: struct or union required
cc.c, line 1145: lvalue required
cc.c, line 1158: struct or union required
cc.c, line 1158: lvalue required
cc.c, line 1158: struct or union required
cc.c, line 1158: lvalue required
cc.c, line 1158: struct or union required
cc.c, line 1158: lvalue required
cc.c, line 1158: struct or union required
cc.c, line 1158: lvalue required
cc.c, line 1193: warning: conversion to 'int' from 'int' may alter its value
cc.c, line 1193: warning: conversion to 'int' from 'long' may alter its value
cc.c, line 1322: syntax error
cc.c, line 1322: syntax error
cc.c, line 1322: invalid function definition
cc.c, line 1322: function illegal in structure or union
cc.c, line 1322: invalid function definition
cc.c, line 1322: function illegal in structure or union
cc.c, line 1322: syntax error
cc.c, line 1322: invalid function definition
cc.c, line 1322: function illegal in structure or union
cc.c, line 1323: syntax error
cc.c, line 1323: function illegal in structure or union
cc.c, line 1323: compiler error: too many errors
make[2]: *** [cc.o] Error 1
make[2]: Leaving directory `/home/jzlehtol/rpmbuild/BUILD/pcc-100611/cc/cc'
make[1]: *** [cc] Error 2
make[1]: Leaving directory `/home/jzlehtol/rpmbuild/BUILD/pcc-100611/cc'
make: *** [cc] Error 2

Susi Lehtola added a comment - 10/Feb/11 05:53 PM
Obviously this has already been resolved.

Anders Magnusson added a comment - 10/Feb/11 10:21 PM
Close as the requestor reports it fixed.