On 01/18/2011 07:40 PM, David Fang wrote:
> Relevant log exceprt below (note the link command):
>
> /bin/sh ./libtool --tag=CXX --mode=link g++ -O2 -pedantic -m64
> -mtune=core2 -march=core2 -version-info 6:1:2 -L/sw-fresh/lib/x86_64
> -L/sw-fresh/lib -o libgmpxx.la -rpath /sw-fresh/lib/x86_64/gmp5
Hi,
It looks like the libtool script is dropping the -m64 during link.
Recall that path-prefix-10.6's g++ (compiler_wrapper) is set to i386
(32b). This is why libgmpxx.4.dylib-master.o is built for i386, which
causes subsequent links to libgmpxx.dylib (x86_64) to fail.
Peter (our
If you examine the build log (ours should match), the failure is happening
when a .libs/libgmpxx.4.dylib-master.o is being linked, which happens to
be the only object that is i386, while all others are x86_64 (using file
*.o). the i386 intermediate step causes x86_64 symbols to be lost
somehow
Fang,
You have to be extra careful with gmp because upstream doesn't
use the standard config.guess (which would make configuration much
more bullet proof).
Jack
--
Protect Your Site and Customers from Malwar
On 17/01/11 12:59 , Alexander Hansen wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 1/17/11 4:34 AM, Martin Costabel wrote:
>> On 17/01/11 01:48 , Alexander Hansen wrote:
>> []
>>> $ fink -V
>>> Package manager version: 0.29.99.cvs
>>> Distribution version: selfupdate-cvs Wed Jan 1
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 1/17/11 4:34 AM, Martin Costabel wrote:
> On 17/01/11 01:48 , Alexander Hansen wrote:
> []
>> $ fink -V
>> Package manager version: 0.29.99.cvs
>> Distribution version: selfupdate-cvs Wed Jan 12 09:20:24 2011, 10.6,
>> x86_64
> []
>> g++ -DHAVE_CONF
On 17/01/11 01:48 , Alexander Hansen wrote:
[]
> $ fink -V
> Package manager version: 0.29.99.cvs
> Distribution version: selfupdate-cvs Wed Jan 12 09:20:24 2011, 10.6, x86_64
[]
> g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../tests -fexceptions
> - -I/sw32/include -O2 -pedantic -m64 -mtune=cor
I was finally able to reproduce this on a fresh bootstrap, but never on my
primary fink, even after removing as many gmp* packages as possible.
Anyhow, it looks like this is due to some architecture mismatch during
compile or link earlier in the build. Will look into it further...
Fang
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On a clean install of the package, with the following system parameters:
$ fink -V
Package manager version: 0.29.99.cvs
Distribution version: selfupdate-cvs Wed Jan 12 09:20:24 2011, 10.6, x86_64
Trees: stable/main stable/crypto unstable/main unstable