libtool
[Top][All Lists]
Advanced

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

Re: libtool, multilib and test "duplicate convenience archive names"


From: Andreas Jaeger
Subject: Re: libtool, multilib and test "duplicate convenience archive names"
Date: Fri, 21 Oct 2011 20:29:59 +0200
User-agent: KMail/1.13.7 (Linux/3.1.0-rc10-0.0.1.f6d77d4-desktop; KDE/4.6.5; x86_64; ; )

On Thursday, October 20, 2011 11:07:13 PM Roumen Petrov wrote:
> Hi Andreas and Bo,
> 
> Please could you clarify build of 64-bit system for 32 bit.

Hi Roumen,

> Roumen Petrov wrote:
> > Hello All,
> > 
> > I wonder how to build and test on a 64 bit platform a 32 bit libtool
> > version.
> > 
> > First test is to use --build=x86_64-gnu-linux --host=i386-gnu-linux
> > with CC and CXX set to 'gcc|g++ -m32', i.e. multilib .
> > 
> > The libtool regression suite fail in test case :
> > 25: duplicate convenience archive names             FAILED
> > (duplicate_conv.at:83)
> > 
> > From testsuite.log:
> > ....
> > .../libtool-2.4.2/tests/duplicate_conv.at:83: $LIBTOOL --mode=link
> > --tag=CC $CC $CFLAGS $LDFLAGS -o cee.$OBJEXT c.lo a/liba.la b/liba.la
> > stderr:
> > .../ld: Relocatable linking with relocations from format elf32-i386
> > (.libs/c.o) to format elf64-x86-64 (cee.o) is not supported
> > stdout:
> > libtool: link: .../ld -r -o cee.o  .libs/c.o   --whole-archive
> > a/.libs/liba.a b/.libs/liba.a --no-whole-archive
> > ....
> > 
> > Eric PAIRE post a patch about linker emulation mode - ref.
> > http://lists.gnu.org/archive/html/bug-libtool/2011-06/msg00001.html .
> > 
> > 
> > Based on Eric's suggestion I try to build without to set --host, i.e.
> > as native build for x86_64-gnu-linux with gcc|g++ -m32 as compilers.
> > 
> > As result -m elf_i386 is added to linker (LD) and libtool regression
> > test pass with:
> > 114 tests behaved as expected.
> > 12 tests were skipped.
> > 
> > 
> > Any thought on this ?
> 
> Traced to
> 
> 2002-11-18 Andreas Jaeger <address@hidden>, Bo Thorsen <address@hidden>
> 
> * libtool.m4: Support linking of 32-bit libraries with ld
> 
> on the x86-64, ppc64, s390x and sparc64 GNU/Linux systems.

Sorry, I don't remember that change anymore and thus cannot help,

Andreas
-- 
 Andreas Jaeger address@hidden,opensuse.org} Twitter/Identica: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126



reply via email to

[Prev in Thread] Current Thread [Next in Thread]