Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Nov 2009 17:59:47 +0000
From:      freebsd-ports@coreland.ath.cx
To:        Daniel Eischen <deischen@freebsd.org>
Cc:        ports@freebsd.org, freebsd-ports@coreland.ath.cx
Subject:   Re: Improving Ada support on FreeBSD and in the ports system
Message-ID:  <20091111175947.GA89826@logik.internal.network>
In-Reply-To: <Pine.GSO.4.64.0911080003290.8396@sea.ntplx.net>
References:  <20091107212936.GB85348@logik.internal.network> <Pine.GSO.4.64.0911080003290.8396@sea.ntplx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2009-11-08 00:06:16, Daniel Eischen wrote:
>=20
> Patches for amd64 support are also welcome.  I thought you were
> going to do a port for GNAT-gpl amd64?

'Lo.

I just tried to compile the vanilla GNAT-GPL 2009 sources today and
came across the following error:

/gnat/gpl-2009/src/GNAT/obj/./gcc/xgcc -B/gnat/gpl-2009/src/GNAT/obj/./gc=
c/ -B/usr/local/x86_64-unknown-freebsd7.2/bin/ -B/usr/local/x86_64-unknow=
n-freebsd7.2/lib/ -isystem /usr/local/x86_64-unknown-freebsd7.2/include -=
isystem /usr/local/x86_64-unknown-freebsd7.2/sys-include -g -fkeep-inline=
-functions -O2  -O2 -g -g -O2   -DIN_GCC    -W -Wall -Wwrite-strings -Wst=
rict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./i=
nclude   -fPIC -pthread -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT=
_NOT_NEEDED   -I. -I. -I../.././gcc -I../../../src/libgcc -I../../../src/=
libgcc/. -I../../../src/libgcc/../gcc -I../../../src/libgcc/../include  -=
DHAVE_CC_TLS -o unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF unwind-dw2.dep =
-fexceptions -c ../../../src/libgcc/../gcc/unwind-dw2.c -fvisibility=3Dhi=
dden -DHIDE_EXPORTS
In file included from ../../../src/libgcc/../gcc/unwind-dw2.c:338:
../../../src/libgcc/../gcc/config/i386/freebsd-unwind.h: In function =E2=80=
=98x86_freebsd_fallback_frame_state=E2=80=99:
../../../src/libgcc/../gcc/config/i386/freebsd-unwind.h:78: error: =E2=80=
=98struct sigcontext=E2=80=99 has no member named =E2=80=98sc_esp=E2=80=99
../../../src/libgcc/../gcc/config/i386/freebsd-unwind.h:85: error: =E2=80=
=98struct sigcontext=E2=80=99 has no member named =E2=80=98sc_eax=E2=80=99
../../../src/libgcc/../gcc/config/i386/freebsd-unwind.h:87: error: =E2=80=
=98struct sigcontext=E2=80=99 has no member named =E2=80=98sc_ebx=E2=80=99
../../../src/libgcc/../gcc/config/i386/freebsd-unwind.h:89: error: =E2=80=
=98struct sigcontext=E2=80=99 has no member named =E2=80=98sc_ecx=E2=80=99
../../../src/libgcc/../gcc/config/i386/freebsd-unwind.h:91: error: =E2=80=
=98struct sigcontext=E2=80=99 has no member named =E2=80=98sc_edx=E2=80=99
../../../src/libgcc/../gcc/config/i386/freebsd-unwind.h:93: error: =E2=80=
=98struct sigcontext=E2=80=99 has no member named =E2=80=98sc_esi=E2=80=99
../../../src/libgcc/../gcc/config/i386/freebsd-unwind.h:95: error: =E2=80=
=98struct sigcontext=E2=80=99 has no member named =E2=80=98sc_edi=E2=80=99
../../../src/libgcc/../gcc/config/i386/freebsd-unwind.h:97: error: =E2=80=
=98struct sigcontext=E2=80=99 has no member named =E2=80=98sc_ebp=E2=80=99
../../../src/libgcc/../gcc/config/i386/freebsd-unwind.h:99: error: =E2=80=
=98struct sigcontext=E2=80=99 has no member named =E2=80=98sc_eip=E2=80=99
gmake[3]: *** [unwind-dw2.o] Error 1
gmake[3]: Leaving directory `/gnat/gpl-2009/src/GNAT/obj/x86_64-unknown-f=
reebsd7.2/libgcc'
gmake[2]: *** [all-stage1-target-libgcc] Error 2
gmake[2]: Leaving directory `/gnat/gpl-2009/src/GNAT/obj'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/gnat/gpl-2009/src/GNAT/obj'
gmake: *** [all] Error 2

The actual GNAT part of the compiler appeared to compile without issue, u=
sing
the compiler from the lang/gnat-gcc44 port. The above, however, seems to =
be
a problem with the GCC core. It looks very i386 to me...

There doesn't appear to be any explicit support for FreeBSD amd64/x86_64
in those GCC sources as far as I can tell and not being very familiar wit=
h
the GCC codebase, I'm not sure how much work it'll be to add them.

Any ideas?
M



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091111175947.GA89826>