[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    Re: amd64 support
From:       Anders Magnusson <ragge () ludd ! ltu ! se>
Date:       2008-11-30 21:04:36
Message-ID: 4932FFE4.3070401 () ludd ! ltu ! se
[Download RAW message or body]


Hi James,

the amd64 target is in very early stage ``dry-hacked'' currently, so it may
not even compile yet.  "stay tuned" :-)

-- Ragge

James Turner wrote:
> I noticed some initial amd64 support was added to pcc recently. I decided
> to download the lastest snapshot from 081129 and give it a compile on my
> OpenBSD 4.4 amd64 laptop. I ran into some issues however during the
> compile. The first was easy to fix, I had to add "x86_64) targmach=amd64
> ;;" to configure under openbsd. Once I added this line I ran configure
> and then make. This is where the trouble begins. Below is the output
> from the make command:
> 
> gcc  -DPCC_DEBUG -DGCC_COMPAT -Dos_openbsd -I. -I. -I../..  -I../../mip
> -I../../arch/amd64 -Dmach_amd64 -I../../os/openbsd -g -O2  -Wall
> -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare -Werror
> -c -o code.o ../../arch/amd64/code.c
> ../../arch/amd64/code.c: In function `bfcode':
> ../../arch/amd64/code.c:123: error: `sp' undeclared (first use in this
> function)
> ../../arch/amd64/code.c:123: error: (Each undeclared identifier is
> reported only once
> ../../arch/amd64/code.c:123: error: for each function it appears in.)
> ../../arch/amd64/code.c:139: warning: comparison between pointer and
> integer
> ../../arch/amd64/code.c:141: error: `q' undeclared (first use in this
> function)
> ../../arch/amd64/code.c:142: warning: passing arg 2 of `argreg' from
> incompatible pointer type
> ../../arch/amd64/code.c:148: error: invalid operands to binary *
> ../../arch/amd64/code.c:115: warning: unused variable `sp2'
> ../../arch/amd64/code.c: In function `ejobcode':
> ../../arch/amd64/code.c:176: error: `errors' undeclared (first use in
> this function)
> ../../arch/amd64/code.c: In function `argreg':
> ../../arch/amd64/code.c:199: error: `FR6' undeclared (first use in this
> function)
> ../../arch/amd64/code.c: In function `funarg':
> ../../arch/amd64/code.c:212: warning: unused variable `sz'
> *** Error code 1
> 
> Stop in /home/james/pcc-081129/cc/ccom (line 60 of Makefile).
> *** Error code 1
> 
> Stop in /home/james/pcc-081129/cc (line 37 of Makefile).
> *** Error code 1
> 
> Stop in /home/james/pcc-081129 (line 32 of Makefile).
> 
> I tried to fix these issues without any luck. I'm sure someone more
> familiar with it might have better luck. I'm glad to test any diff's if
> it would help. Thanks.
> 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic