This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


An old issue, gnatlink depends on gnat.os_lib which depends
on gnat.strings so ada/Makefile.in should be updated.

On darwin-ppc I added the following patch:

--- Makefile.in	21 Apr 2004 10:10:31 -0000	1.79
+++ Makefile.in	21 Apr 2004 18:10:35 -0000
@@ -303,7 +303,7 @@
  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
+ table.o tree_io.o types.o validsw.o widechar.o g-string.o

And was able to build the Ada lib and tools (I disabled the
comparison to get past the failure).

However, I'm not sure about the procedure to update
these dependancies, in a build tree I did the following:

ada/tools$ ../../gnatls -a -d -I../rts -I$HOME/work/gcc/gcc/gcc/ada gnatlink.o
./gnatlink.o  gnatlink   
                           OK ../rts/ada.ads
                           OK ../rts/a-comlin.ads
                           OK ../rts/a-except.ads
                           OK /home/guerby/work/gcc/gcc/gcc/ada/ali.ads
                           OK /home/guerby/work/gcc/gcc/gcc/ada/alloc.ads
                           OK /home/guerby/work/gcc/gcc/gcc/ada/casing.ads
                           OK /home/guerby/work/gcc/gcc/gcc/ada/debug.ads
                           OK ../rts/gnat.ads
                           OK ../rts/g-htable.ads
                           OK ../rts/g-os_lib.ads
                           OK ../rts/g-string.ads
                           OK /home/guerby/work/gcc/gcc/gcc/ada/gnatlink.ads
                           OK /home/guerby/work/gcc/gcc/gcc/ada/gnatlink.adb
                           OK /home/guerby/work/gcc/gcc/gcc/ada/gnatvsn.ads
                           OK /home/guerby/work/gcc/gcc/gcc/ada/hostparm.ads
                           OK ../rts/interfac.ads
                           OK ../rts/i-c.ads
                           OK ../rts/i-cstrin.ads
                           OK ../rts/i-cstrea.ads
                           OK /home/guerby/work/gcc/gcc/gcc/ada/namet.ads
                           OK /home/guerby/work/gcc/gcc/gcc/ada/opt.ads
                           OK /home/guerby/work/gcc/gcc/gcc/ada/osint.ads
                           OK /home/guerby/work/gcc/gcc/gcc/ada/output.ads
                           OK /home/guerby/work/gcc/gcc/gcc/ada/rident.ads
                           OK /home/guerby/work/gcc/gcc/gcc/ada/switch.ads
                           OK ../rts/system.ads
                           OK ../rts/s-assert.ads
                           OK ../rts/s-crtl.ads
                           OK ../rts/s-exctab.ads
                           OK ../rts/s-htable.ads
                           OK ../rts/s-memory.ads
                           OK ../rts/s-parame.ads
                           OK ../rts/s-rident.ads
                           OK ../rts/s-secsta.ads
                           OK ../rts/s-soflin.ads
                           OK ../rts/s-stache.ads
                           OK ../rts/s-stalib.ads
                           OK ../rts/s-stoele.ads
                           OK ../rts/s-stoele.adb
                           OK ../rts/s-strops.ads
                           OK ../rts/s-sopco3.ads
                           OK ../rts/s-sopco4.ads
                           OK ../rts/s-sopco5.ads
                           OK ../rts/s-traent.ads
                           OK ../rts/s-unstyp.ads
                           OK ../rts/s-wchcon.ads
                           OK /home/guerby/work/gcc/gcc/gcc/ada/table.ads
                           OK /home/guerby/work/gcc/gcc/gcc/ada/table.adb
                           OK /home/guerby/work/gcc/gcc/gcc/ada/tree_io.ads
                           OK /home/guerby/work/gcc/gcc/gcc/ada/types.ads
                           OK ../rts/unchconv.ads
                           OK ../rts/unchdeal.ads

So a lot of objects are missing.

Arnaud, what is the rule used for making the list of objects of the
tools? Is it safe to include g-string.o (patch approval)?

Laurent

On Wed, 2004-04-14 at 23:21, Nathanael Nerode wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Laurent GUERBY wrote:
> | On Wed, 2004-04-14 at 22:17, Nathanael Nerode wrote:
> |
> |>I've already asked for people to try it, two weeks ago, but apparetnly
> only
> |>one person did (thanks Arnaud!) and he hasn't given me anything to fix.
> Brain fade -- I should have said "Thanks Geert!"  *checks head for holes*
> 
> Anyway, Geert Bosch said that he got undefined symbols linking on
> darwin, which I can't see any possible source for, nor can I see why it
> would differ due to my changes.  :-P  Perhaps you could help?
> 
> | ../../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
> 
> The more I look at my changes, the more I think they'll be safe to
> submit.  I'm going to submit them for review just to get more eyes on
> them than the number of people willing to check out a branch.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> 
> iD8DBQFAfatXRGZ0aC4lkIIRAlhqAJ45pQTCgH5D+Z82sHQSt9qPKZWe+gCfdPv1
> inKLikm+a//fpMeBX73Az3I=
> =POJg
> -----END PGP SIGNATURE-----
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]