Re: Building GNAT: Error: undefined reference to `__gnat_rcheck_CE_Explicit_Raise' -- SOLVED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 12, 2012 at 11:33 AM, Patrick Herbst <paherbst@xxxxxxxxx> wrote:
>
> Hello,
>
> 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
> ./make
>
> once it gets to
> make[3]: 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
> `__gnat_rcheck_CE_Explicit_Raise'
>
> it repeats that error for multiple functions.
>
> anyone have any tips or suggestions??
>
>
> Thanks!

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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux