[Bug bootstrap/15156] New: gnatlink does not link due to undefined symbol _gnat__strings_E

awreynolds at mac dot com gcc-bugzilla@gcc.gnu.org
Mon Apr 26 22:26:00 GMT 2004


../../xgcc -B../../ -DIN_GCC   `echo -O2 -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -fno-common |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`   -o ../../
gnatlink b_gnatl.o gnatlink.o a-except.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o 
gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o namet.o opt.o osint.o output.o rident.o s-exctab.o s-
secsta.o s-stalib.o s-stoele.o sdefault.o stylesw.o switch.o system.o table.o tree_io.o types.o validsw.o 
widechar.o \
      ../rts/libgnat.a  ../../prefix.o ../../version.o link.o ../../../libiberty/libiberty.a  
/usr/bin/ld: Undefined symbols:
_gnat__strings_E
collect2: ld returned 1 exit status
make[4]: *** [../../gnatlink] Error 1
make[3]: *** [gnattools1] Error 2
make[2]: *** [gnattools-native] Error 2
make[1]: *** [all-target-libada] Error 2
make: *** [bootstrap] Error 2

[pbg4:gcc/ada/tools] drew% nm b_gnatl.o | grep _gnat__strings_E
         U _gnat__strings_E

[pbg4:gcc/ada/rts] drew% nm g-string.o | grep _gnat__strings_E
00000001 C _gnat__strings_E

[pbg4:gcc/ada/rts] drew% ar t libgnat.a | grep g-string.o
g-string.o

When I add ../g-string.o to the command and the program links correctly (see below). The remainder of 
the build continues without error.

pbg4:~/Developer/Compiler/fsf-gcc-obj/gcc/ada/tools drew$ ../../xgcc -B../../ -DIN_GCC   `echo 
-O2 -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fno-common |sed 
-e 's/-pedantic//g' -e 's/-Wtraditional//g'`   -o ../../gnatlink b_gnatl.o gnatlink.o a-except.o ali.o 
alloc.o butil.o casing.o csets.o debug.o fmap.o fname.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o 
namet.o opt.o osint.o output.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o sdefault.o stylesw.o 
switch.o system.o table.o tree_io.o types.o validsw.o widechar.o ../g-string.o ../rts/libgnat.a  ../../
prefix.o ../../version.o link.o ../../../libiberty/libiberty.a
pbg4:~/Developer/Compiler/fsf-gcc-obj/gcc/ada/tools drew$

-- 
           Summary: gnatlink does not link due to undefined symbol
                    _gnat__strings_E
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: awreynolds at mac dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin7.3.0
  GCC host triplet: powerpc-apple-darwin7.3.0
GCC target triplet: powerpc-apple-darwin7.3.0


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



More information about the Gcc-bugs mailing list