[prev in list] [next in list] [prev in thread] [next in thread]
List: pcc-list
Subject: Re: Can't cross-compile for PDP-11
From: Aram Havarneanu <aram.h () mgk ! ro>
Date: 2009-10-25 14:19:08
Message-ID: be00cc30910250719r249078eetc2916a60cf2e4f3b () mail ! gmail ! com
[Download RAW message or body]
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@mgk.ro> wrote:
> 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
> root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>
> $ gcc -v
> Using built-in specs.
> Target: i386-undermydesk-freebsd
> Configured with: FreeBSD/i386 system compiler
> Thread model: posix
> gcc version 4.2.1 20070719 [FreeBSD]
>
> What to do?
>
> Thanks,
>
> --
> Aram Hăvărneanu
>
--
Aram Hăvărneanu
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic