[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#540192: marked as done (gnat-4.4: error during linking when passing -static to linker)

Your message dated Thu, 06 Aug 2009 18:04:52 +0200
with message-id <87zladhqsb.fsf@ludovic-brenta.org>
and subject line Re: Bug#540192: gnat-4.4: error during linking when passing -static to linker
has caused the Debian Bug report #540192,
regarding gnat-4.4: error during linking when passing -static to linker
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org

540192: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540192
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: gnat-4.4
Version: 4.4.1-1
Severity: normal

> gnatmake foo -largs -static
gnatbind -x foo.ali
gnatlink foo.ali -static
/usr/bin/ld: cannot find -lgnat-4.4
collect2: ld returned 1 exit status
gnatlink: error when calling /usr/bin/gcc-4.4
gnatmake: *** link failed.

The same works for me using a self compiled gcc -4.3.0.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gnat-4.4 depends on:
ii  gcc-4.4                   4.4.1-1        The GNU C compiler
ii  gnat-4.4-base             4.4.1-1        The GNU Compiler Collection (gnat 
ii  libc6                     2.9-23         GNU C Library: Shared libraries
ii  libc6-dev                 2.9-23         GNU C Library: Development Librari
ii  libcloog-ppl0             0.15-1         the Chunky Loop Generator (runtime
ii  libgcc1                   1:4.4.1-1      GCC support library
ii  libgmp3c2                 2:4.3.1+dfsg-2 Multiprecision arithmetic library
ii  libgmpxx4ldbl             2:4.3.1+dfsg-2 Multiprecision arithmetic library 
ii  libgnat-4.4               4.4.1-1        Runtime library for GNU Ada applic
ii  libgnatprj4.4             4.4.1-1        GNU Ada Project Manager
ii  libgnatvsn4.4             4.4.1-1        GNU Ada compiler version library
ii  libmpfr1ldbl              2.4.1-2        multiple precision floating-point 
ii  libppl-c2                 0.10.2-2       Parma Polyhedra Library (C interfa
ii  libppl7                   0.10.2-2       Parma Polyhedra Library (runtime l

gnat-4.4 recommends no packages.

Versions of packages gnat-4.4 suggests:
pn  ada-reference-manual          <none>     (no description available)
pn  gnat-4.4-doc                  <none>     (no description available)

-- no debconf information
procedure Foo

--- End Message ---
--- Begin Message ---
This is a user error; -static is a binder, not a linker argument.
Please try again with

gnatmake foo -bargs -static

I've had success with:

$ gnatmake discrim -bargs -static -largs -v
gcc-4.4 -c discrim.adb
gnatbind -static -x discrim.ali
gnatlink discrim.ali -v

Copyright (C) 1995-2008, Free Software Foundation, Inc.
gcc-4 -c -gnatA -gnatWb -gnatiw -gnatws /home/lbrenta/src/ada/b~discrim.adb
/usr/bin/gcc-4.4 b~discrim.o ./discrim.o -o discrim \
          -L./ -L/usr/lib/gcc/x86_64-linux-gnu/4.4.1/adalib/ \
          /usr/lib/gcc/x86_64-linux-gnu/4.4.1/adalib/libgnat.a \

Ludovic Brenta.

--- End Message ---

Reply to: