libtool
[Top][All Lists]
Advanced

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

Re: Libtool attempts to link 64-bit lib on a -m32 compile (using Pathsca


From: Ethan Mallove
Subject: Re: Libtool attempts to link 64-bit lib on a -m32 compile (using Pathscale C++)
Date: Tue, 22 Sep 2009 18:05:46 -0400
User-agent: Mutt/1.5.17 (2007-11-01)

I'm running into a similar problem, but the -L/usr/lib workaround
doesn't help in this case. Same pathCC, but on SuSE 10 (not SuSE 9).
The error is basically this:

  $ make
  ...
  libtool: link: pathCC ... -lpscrt 
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/libstdc++.so -m32 ...
  /usr/lib64/gcc/x86_64-suse-linux/4.1.2/libstdc++.so: could not read symbols: 
File in wrong format
  collect2: ld returned 1 exit status
  $ file -L /usr/lib64/gcc/x86_64-suse-linux/4.1.2/libstdc++.so
  /usr/lib64/gcc/x86_64-suse-linux/4.1.2/libstdc++.so: ELF 64-bit LSB shared 
object, AMD x86-64, version 1 (SYSV), stripped

I'm considering this LDFLAGS setting as a workaround, but overriding
LDFLAGS seems like too big a hammer:

  LDFLAGS="-L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/32"

Any suggestions?

Thanks,
Ethan




reply via email to

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