Ada: GNATLINK_OBJS (was: Ada users: please try libada-branch -- really

Laurent GUERBY laurent@guerby.net
Thu Apr 22 10:53:00 GMT 2004


On Thu, 2004-04-22 at 10:00, Arnaud Charlet wrote:
> > An old issue, gnatlink depends on gnat.os_lib which depends
> > on gnat.strings so ada/Makefile.in should be updated.
> 
> No, because gnatlink is always linked with libgnat.a, so only non libgnat
> objects need be listed explicitely.
> 
> (in your gnatls output, it means all ../rts files should *not* be
>  listed).

I'm inclined to believe you, but then what could explain
the original error message, and why does it disappear when
g-string.o is added?

May be ranlib needs to be run on ppc-darwin? I noticed
it is run for lots of library files during the build
but not libgnat.a and libgnarl.a.

Laurent

> | ../../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 link.o ali.o alloc.o butil.o casing.o csets.o debug.o fmap.o
> | fname.o gnatvsn.o hostparm.o namet.o opt.o osint.o output.o rident.o
> | sdefault.o stylesw.o switch.o table.o tree_io.o types.o validsw.o
> | widechar.o \
> |       ../rts/libgnat.a  ../../prefix.o ../../version.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



More information about the Gcc mailing list