http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47717

           Summary: building library for arm-none-eabi causes internal
                    error
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: ada
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: lagu...@archeia.com


Created attachment 23325
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23325
Minimal library project

I have built a version of GNAT from svn trunk targetted at bare metal
arm-none-eabi. I know this isn't supported, but I've managed to do it using
some patches. The entire project can be found here:

https://github.com/Lucretia/tamp

The problem is, when building the stripped down RTS, I'm getting the following:

Creating RTS with GCC-svn-trunk for 'beagle' board
arm-none-eabi-gcc -gnatpg -c -gnat2005 -gnatg -O2 -ffunction-sections
-fdata-sections
--RTS=/home/laguest/src/mine/tamp/thirdparty/../rts/boards/beagle -I- -gnatA
/home/laguest/src/mine/tamp/rts/src/boards/beagle/system.ads
arm-none-eabi-gcc -gnatpg -c -gnat2005 -gnatg -O2 -ffunction-sections
-fdata-sections
--RTS=/home/laguest/src/mine/tamp/thirdparty/../rts/boards/beagle -I- -gnatA
/home/laguest/src/mine/tamp/rts/src/common/a-unccon.ads
arm-none-eabi-gcc -gnatpg -c -gnat2005 -gnatg -O2 -ffunction-sections
-fdata-sections
--RTS=/home/laguest/src/mine/tamp/thirdparty/../rts/boards/beagle -I- -gnatA
/home/laguest/src/mine/tamp/rts/src/common/s-maccod.ads
arm-none-eabi-gcc -gnatpg -c -gnat2005 -gnatg -O2 -ffunction-sections
-fdata-sections
--RTS=/home/laguest/src/mine/tamp/thirdparty/../rts/boards/beagle -I- -gnatA
/home/laguest/src/mine/tamp/rts/src/common/interfac.ads
arm-none-eabi-gcc -c -gnat2005 -gnatg -O2 -ffunction-sections -fdata-sections
--RTS=/home/laguest/src/mine/tamp/thirdparty/../rts/boards/beagle -I- -gnatA
/home/laguest/src/mine/tamp/rts/src/common/gnat.ads
arm-none-eabi-gcc -gnatpg -c -gnat2005 -gnatg -O2 -ffunction-sections
-fdata-sections
--RTS=/home/laguest/src/mine/tamp/thirdparty/../rts/boards/beagle -I- -gnatA
/home/laguest/src/mine/tamp/rts/src/common/a-uncdea.ads
arm-none-eabi-gcc -gnatpg -c -gnat2005 -gnatg -O2 -ffunction-sections
-fdata-sections
--RTS=/home/laguest/src/mine/tamp/thirdparty/../rts/boards/beagle -I- -gnatA
/home/laguest/src/mine/tamp/rts/src/common/s-stoele.adb
arm-none-eabi-gcc -gnatpg -c -gnat2005 -gnatg -O2 -ffunction-sections
-fdata-sections
--RTS=/home/laguest/src/mine/tamp/thirdparty/../rts/boards/beagle -I- -gnatA
/home/laguest/src/mine/tamp/rts/src/common/s-atacco.adb
arm-none-eabi-gcc -gnatpg -c -gnat2005 -gnatg -O2 -ffunction-sections
-fdata-sections
--RTS=/home/laguest/src/mine/tamp/thirdparty/../rts/boards/beagle -I- -gnatA
/home/laguest/src/mine/tamp/rts/src/common/ada.ads
arm-none-eabi-gcc -c -gnat2005 -gnatg -O2 -ffunction-sections -fdata-sections
--RTS=/home/laguest/src/mine/tamp/thirdparty/../rts/boards/beagle -I- -gnatA
/home/laguest/src/mine/tamp/rts/src/common/g-souinf.ads
Exception name: SYSTEM.ASSERTIONS.ASSERT_FAILURE
Message: namet.adb:655

arm-none-eabi-gnatmake: INTERNAL ERROR. Please report.

I've also managed to re-create the error using the attached minimal files -
extract to the tamp directory:

PATH=/opt/tamp/bin:$PATH LD_LIBRARY_PATH=/opt/tamp/lib64:$LD_LIBRARY_PATH
arm-none-eabi-gnatmake -vP2 --RTS=../rts/boards/beagle -Ptest.gpr

obviously, modify PATH & LD_LIBRARY_PATH to where-ever you compiled the cross
compilers to.

Reply via email to