[Bug ada/40288] New: undefined reference to `__gnat_begin_handler' for -mabi=32 on mips64el-linux

laurent at guerby dot net gcc-bugzilla@gcc.gnu.org
Fri May 29 11:01:00 GMT 2009


As shown below all gnat.dg tests that need to link are failing for -mabi=32
(they do work for abi=n32 and abi=64).

http://gcc.gnu.org/ml/gcc-testresults/2009-05/msg02405.html

Executing on host: /home/guerby/build/gcc/gnatmake
--GCC=/home/guerby/build/gcc/xgcc --GNATBIND=/home/guerby/build/gcc/gnatbind
--GNATLINK=/home/guerby/build/gcc/gnatlink -cargs -B/home/guerby/build/gcc -la\
rgs --XCC=/home/guerby/build/gcc/xgcc -B/home/guerby/build/gcc -margs
--RTS=/home/guerby/build/mips64el-unknown-linux-gnu/32/libada -q -f
/n/51/guerby/trunk/gcc/testsuite/gnat.dg/abstract_with_anonymous_res\
ult.adb     -lm   -mabi=32 -o ./abstract_with_anonymous_result.exe    (timeout
= 300)
/home/guerby/build/mips64el-unknown-linux-gnu/32/libada/adalib/s-finroo.o:/home/guerby/build/gcc/ada/rts_32/s-finroo.ads:53:
undefined reference to `__gnat_begin_handler'^M
/home/guerby/build/mips64el-unknown-linux-gnu/32/libada/adalib/s-finroo.o:/home/guerby/build/gcc/ada/rts_32/s-finroo.ads:53:
undefined reference to `__gnat_end_handler'^M
/home/guerby/build/mips64el-unknown-linux-gnu/32/libada/adalib/s-finroo.o:/home/guerby/build/gcc/ada/rts_32/s-finroo.ads:50:
undefined reference to `__gnat_begin_handler'^M
/home/guerby/build/mips64el-unknown-linux-gnu/32/libada/adalib/s-finroo.o:/home/guerby/build/gcc/ada/rts_32/s-finroo.ads:50:
undefined reference to `__gnat_end_handler'^M
/home/guerby/build/mips64el-unknown-linux-gnu/32/libada/adalib/s-finroo.o:(.gcc_except_table+0x20):
undefined reference to `__gnat_others_value'^M
/home/guerby/build/mips64el-unknown-linux-gnu/32/libada/adalib/s-finroo.o:(.gcc_except_table+0x44):
undefined reference to `__gnat_others_value'^M
/home/guerby/build/mips64el-unknown-linux-gnu/32/libada/adalib/s-finimp.o: In
function `system__finalization_implementation__raise_from_finalize':^M
/home/guerby/build/gcc/ada/rts_32/s-finimp.adb:518: undefined reference to
`__gnat_begin_handler'^M
/home/guerby/build/gcc/ada/rts_32/s-finimp.adb:518: undefined reference to
`__gnat_end_handler'^M
/home/guerby/build/gcc/ada/rts_32/s-finimp.adb:518: undefined reference to
`__gnat_end_handler'^M

This is not due to gnatmake or the test harness as it reproduces once the
compiler installed.

Investigating.


-- 
           Summary: undefined reference to `__gnat_begin_handler' for -
                    mabi=32 on mips64el-linux
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: link-failure
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: laurent at guerby dot net
        ReportedBy: laurent at guerby dot net
 GCC build triplet: mips64el-linux-gnu
  GCC host triplet: mips64el-linux-gnu
GCC target triplet: mips64el-linux-gnu


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



More information about the Gcc-bugs mailing list