This is the mail archive of the
mailing list for the GCC project.
Re: Building GNAT: Error: undefined reference to `__gnat_rcheck_CE_Explicit_Raise' -- SOLVED
- From: Patrick Herbst <paherbst at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 14 Dec 2012 00:13:12 -0500
- Subject: Re: Building GNAT: Error: undefined reference to `__gnat_rcheck_CE_Explicit_Raise' -- SOLVED
On Wed, Dec 12, 2012 at 11:33 AM, Patrick Herbst <email@example.com> wrote:
> I'm using adacore gpl gnat 4.5.4 to build gcc gnat 4.7.2. I'm just
> trying to build it for the host system.
> ./configure --prefix=<somewhere>/gnat --enable-languages=ada,c
> once it gets to
> make: Entering directory `./gcc'
> it will attempt to run
> gcc -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings
> -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-format-attribute -pedantic -Wno-long-long
> -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition
> -Wc++-compat -fno-common -DHAVE_CONFIG_H -static-libgcc -o gnat1
> which errors out with
> ada/a-except.o: In function `ada__exceptions__exception_message':
> ./gcc/../../gcc-4.7.2/gcc/ada/a-except.adb:609: undefined reference to
> it repeats that error for multiple functions.
> anyone have any tips or suggestions??
For anyone concerned,
This problem came from trying to compile GCC/GNAT with AdaCore's GPL GNAT.
Apparently AdaCore's version uses different names for things so
symbols dont match up.
I was able to get a native GCC/GNAT working just fine... and then
cross compile using the newly built native.
Moral of the story: dont mix Adacore and GCC.