FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 01-19-2009, 05:32 PM
Kay Hayen
 
Default Bug#512328: gnatlink wants to use libgnat-4.3.a and libgnarl-4.3.a which don't exist

Package: gnat-4.3
Version: 4.3.2-1.1
Severity: normal


When executing gnatmake with -largs -static we get the following output:

gnatlink rendezvous_server_main.ali -fno-strict-aliasing -o /usr/users/hayen/build/artas-v7a1-ps2-acs/acs/acs-bin/bin/rendezvous_server.7.A.1.acs4 -g -static
/usr/bin/ld: cannot find -lgnarl-4.3
collect2: ld returned 1 exit status
gnatlink: error when calling /usr/bin/gcc-4.3
gnatmake: *** link failed.

We previously had similar defect for .so files. It seems either there should be a
libgnat.a as well as a libgnat-4.3.a, one of which might be a symlink. Could be
wiser though to remove the need for lib*-4.3.a files entirely.

Workaround is to create the symbolic links by hand.

Best regards,
Kay Hayen

-- System Information:
Debian Release: 5.0
APT prefers testing
APT policy: (900, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.27 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gnat-4.3 depends on:
ii gcc-4.3 4.3.2-1.1 The GNU C compiler
ii gnat-4.3-base 4.3.2-1.1 The GNU Compiler Collection (gnat
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libc6-dev 2.7-18 GNU C Library: Development Librari
ii libgcc1 1:4.3.2-1.1 GCC support library
ii libgmp3c2 2:4.2.2+dfsg-3 Multiprecision arithmetic library
ii libgnat-4.3 4.3.2-1.1 Runtime library for GNU Ada applic
ii libgnatprj4.3 4.3.2-1.1 GNU Ada Project Manager
ii libgnatvsn4.3 4.3.2-1.1 GNU Ada compiler version library
ii libmpfr1ldbl 2.3.1.dfsg.1-2 multiple precision floating-point

gnat-4.3 recommends no packages.

Versions of packages gnat-4.3 suggests:
ii ada-reference-manual 20021112web-3 The standard describing the Ada 95
ii gnat-4.3-doc 4.3.2.nf1-1 documentation for the GNU Ada 95 C

-- no debconf information



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 01-19-2009, 07:31 PM
Ludovic Brenta
 
Default Bug#512328: gnatlink wants to use libgnat-4.3.a and libgnarl-4.3.a which don't exist

I think the error is that you pass -static after -largs, thereby
restricting the scope of -static to the link stage only. This is
wrong; -static should affect all stages: compile, bind and link.

So therefore, try "gnatmake -static", not "gnatmake -largs -static",
and please tell me if that solves your problem. You should not have
to specify any libgnat.a or libgnat-4.3.so by hand; gnatmake is
supposed to do that for you.

HTH

--
Ludovic Brenta.



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 01-20-2009, 04:24 PM
Kay Hayen
 
Default Bug#512328: gnatlink wants to use libgnat-4.3.a and libgnarl-4.3.a which don't exist

Hello Ludovic,

You are absolutely right.

Puting the "-static" only after "-largs" probably only affects the final
command build by gnatlink, but not enough besides that. Puting it
outside -largs fixed the issue. I can (now) see how of course passing -static
to ld will not be enough.

So I guess that's a pure user error of mine and invite you to reject/close the
bug report.

Just as a small small side issue. The "-static" parameter is not part of what
gnatmake outputs, nor could I google it. I am assuming it is undocumented on
the gnatmake level. I did find it for gnatbind though.

Best regards,
Kay



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 12:41 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org