Jeremy C. Reed | 22 Oct 15:54 2009
Picon

pcc version

Okay to increase version in configure.ac so we can know development HEAD 
version is not same as 0.9.9?

Aram Havarneanu | 25 Oct 15:12 2009
Picon

Can't cross-compile for PDP-11

Hello,

I am trying to build pcc as a PDP-11 cross compiler. I configured pcc
with --target=pdp11-bsd, added "-DSOFTFLOAT -DFDFLOAT" to
cc/ccom/Makefile's CPPFLAGS and added softfloat.o to OBJS1.

Build fails with:

gcc  -DGCC_COMPAT -DPCC_DEBUG -Dos_bsd -Dmach_pdp11 -D_ISOC99_SOURCE -DSOFTFLOAT
 -DFDFLOAT -I../../../pcc/cc/ccom -I. -I../.. -I../../../pcc/mip -I../../../pcc/
arch/pdp11 -I../../../pcc/os/bsd  -g -O2  -Wall -Wmissing-prototypes -Wstrict-pr
ototypes -Wshadow -Wsign-compare -c -o trees.o ../../../pcc/cc/ccom/trees.c
../../../pcc/cc/ccom/trees.c: In function 'makety':
../../../pcc/cc/ccom/trees.c:1420: error: aggregate value used where a float was
 expected
../../../pcc/cc/ccom/trees.c:1420: error: incompatible types in assignment
../../../pcc/cc/ccom/trees.c:1422: error: aggregate value used where a float was
 expected
../../../pcc/cc/ccom/trees.c:1422: error: incompatible types in assignment
../../../pcc/cc/ccom/trees.c:1424: error: aggregate value used where a float was
 expected
../../../pcc/cc/ccom/trees.c:1424: error: incompatible types in assignment
gmake[2]: *** [trees.o] Error 1
gmake[2]: Leaving directory `/var/tmp/pcc-obj/cc/ccom'
gmake[1]: *** [ccom] Error 2
gmake[1]: Leaving directory `/var/tmp/pcc-obj/cc'
gmake: *** [cc] Error 2

$ uname -a
FreeBSD bsd.localdomain 8.0-RC1 FreeBSD 8.0-RC1 #0: Thu Sep 17 20:45:19 UTC 2009
(Continue reading)

Aram Havarneanu | 25 Oct 15:19 2009
Picon

Re: Can't cross-compile for PDP-11

And if I am trying to build a pcc cross compiler with a native pcc,
instead of gcc, build fails right after it starts...

$ gmake
cd cc && gmake all
gmake[1]: Entering directory `/var/tmp/pcc-obj/cc'
cd cc; gmake all -w
gmake[2]: Entering directory `/var/tmp/pcc-obj/cc/cc'
/usr/local/bin/pcc  -DLIBEXECDIR=\"/usr/local/libexec/\"
-DINCLUDEDIR=\"/usr/local/include/\"
-DPCCINCDIR=\"/usr/local/lib/pcc/pdp11-unknown-bsd/0.9.9/include/\"
-DPCCLIBDIR=\"/usr/local/lib/pcc/pdp11-unknown-bsd/0.9.9/lib/\"
-Dos_bsd -DTARGMACH=pdp11 -Dmach_pdp11 -I../.. -I../../../pcc/os/bsd
-I../../../pcc/mip -I../../../pcc/arch/pdp11 -g  -Wall
-Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare
-Wtruncate -c ../../../pcc/cc/cc/cc.c
/usr/include//machine/signal.h, line 118: syntax error
/usr/include//machine/signal.h, line 120: cannot recover from earlier
errors: goodbye!
gmake[2]: *** [cc.o] Error 1
gmake[2]: Leaving directory `/var/tmp/pcc-obj/cc/cc'
gmake[1]: *** [cc] Error 2
gmake[1]: Leaving directory `/var/tmp/pcc-obj/cc'
gmake: *** [cc] Error 2
$

On Sun, Oct 25, 2009 at 4:12 PM, Aram Havarneanu <aram.h <at> mgk.ro> wrote:
> Hello,
>
> I am trying to build pcc as a PDP-11 cross compiler. I configured pcc
(Continue reading)


Gmane