Bug 4988 - [2.18/HEAD regression] Assertion failures in ld
Summary: [2.18/HEAD regression] Assertion failures in ld
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-01 11:16 UTC by Matthias Klose
Modified: 2007-10-26 17:59 UTC (History)
3 users (show)

See Also:
Host:
Target: mips*-linux-gnu
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Klose 2007-09-01 11:16:56 UTC
[forwarded from http://bugs.debian.org/440015]

this started to show up with 20070804. asked our port maintainers for a
testcase, build logs currently can be seen at

http://buildd.debian.org/fetch.cgi?&pkg=openh323&ver=1.18.0.dfsg-4&arch=mips&stamp=1187867576&file=log
http://buildd.debian.org/fetch.cgi?&pkg=openh323&ver=1.18.0.dfsg-4&arch=mipsel&stamp=1187890191&file=log

Retrying with binutils 2.18 instead of 2.18~cvs20070812-1 still shows
the same for opal:
make[1]: Leaving directory `/build/opal-2.2.8~dfsg1/samples/simple'
samples/simple/obj_*_n/simpleopal --help >/dev/null
samples/simple/obj_linux_mips_n/simpleopal: symbol lookup error:
samples/simple/obj_linux_mips_n/simpleopal: undefined symbol:
_ZNK49H245_MiscellaneousCommand_type_videoFastUpdateGOB7CompareERK7PObject
make: *** [build-arch-stamp] Error 127

and for openh323:
make[1]: Leaving directory `/build/openh323-1.18.0.dfsg/samples/simple'
samples/simple/obj_*_r/simph323 --help >/dev/null
samples/simple/obj_linux_mips_r/simph323: symbol lookup error:
samples/simple/obj_linux_mips_r/simph323: undefined symbol:
_ZNK18H245_FECCapability5CloneEv
make: *** [build-arch-stamp] Error 127
Comment 1 Julien BLACHE 2007-09-03 13:53:12 UTC
Hi,

> this started to show up with 20070804. asked our port maintainers for a
> testcase, build logs currently can be seen at

The testcase is up at
<http://people.debian.org/~jblache/440015/binutils-4988-deb440015-testcase.tar.bz2>

The build.sh file contains the g++ (4.1) command line used to link the test
program (main.o, output is simph323) and the ld command line generated by g++.

The g++-libs directory contains the standard libraries and object files added by
g++ to the original list of objects.

If anything is missing, please contact me.
Comment 2 Nick Clifton 2007-09-28 13:25:05 UTC
Hi Julien, Hi Matthias,

  The test case is missing a few libraries: -llber -lsasl2 -lssl -lcrypto
  -lexpat -lresolv -ldl.

  Looking at the ChangeLogs I do not see anything in particular that changed
  around 20070804 so it is hard to guess what might have caused this problem. 
  I take it that problem still exists in the current mainline sources ?

Cheers
  Nick
Comment 3 Julien BLACHE 2007-10-02 17:42:50 UTC
Hi,

>   The test case is missing a few libraries: -llber -lsasl2 -lssl -lcrypto
>   -lexpat -lresolv -ldl.

Oops, sorry I missed those. I've put the missing libraries up at
<http://people.debian.org/~jblache/440015/testcase-4988-deb440015-missinglibs.tar.bz2>

libdl is included in the original testcase tarball, it's libdl-2.6.1.so which I
didn't rename like I did for the others. libc & other standard stuff are in the
g++-libs subdir in the original testcase, too.

Thanks,

JB.
Comment 4 Nick Clifton 2007-10-04 14:27:40 UTC
Subject: Re:  [2.18/HEAD regression] Assertion failures in ld

Hi Julien,

   Thanks for the extra libraries.  My attempt to build the simph323 binary 
gets further now, but it still fails with some missing libaries (and a missing 
loader).  Note - I do not have a mips-linux system available to me so I am 
building the binary using a cross-hosted mipsel-linux-gnu toolchain on an 
x86_64 host.

   The missing files are:

  libcrypt.so.1
  libgnutls.so.13
  ld.so.1
  libz.so.1
  libasound.so.2
  libdirectfb-0.9.so.25
  libfusion-0.9.so.25
  libdirect-0.9.so.25

   Plus of course any other libraries that these libraries need. :-)

Cheers
   Nick
Comment 5 Julien BLACHE 2007-10-18 09:20:46 UTC
Hi,

Kilian Krause prepared a tarball of a full build chroot, see
<http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=52;bug=440015>

JB.
Comment 6 Martin Michlmayr 2007-10-26 09:39:06 UTC
(In reply to comment #4)
>    Plus of course any other libraries that these libraries need. :-)
> 
> Cheers
>    Nick

Nick, would you be interested in an account on a mipsel box so you could
take a look?  Unfortunately, it seems that nobody's looking into this
issue and this bug is a big problem for Debian/MIPS.  Thanks.
Comment 7 Martin Michlmayr 2007-10-26 12:29:18 UTC
Actually, it seems this problem no longer shows up on HEAD.
Comment 8 Martin Michlmayr 2007-10-26 15:56:59 UTC
(In reply to comment #7)
> Actually, it seems this problem no longer shows up on HEAD.

However, I can reproduce it with the 2.18 branch as well as with
2.18.50.20070930.  I'll try to narrow it down, but CVS makes that
a pain.  Does anyone have a SVN mirror of the CVS repo?
Comment 9 Martin Michlmayr 2007-10-26 17:55:02 UTC
The problem is fixed by http://sourceware.org/ml/binutils-cvs/2007-10/msg00087.html
which happily applies to 2.18.
Comment 10 Daniel Jacobowitz 2007-10-26 17:59:15 UTC
Thanks!  I've merged it to the branch.