[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cannot cross compile guile 1.8.3 on Ubuntu
From: |
Igor Chudov |
Subject: |
Re: Cannot cross compile guile 1.8.3 on Ubuntu |
Date: |
Wed, 19 Nov 2008 08:46:32 -0600 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Wed, Nov 19, 2008 at 09:57:26AM +0100, Ludovic Court?s wrote:
> Hello,
>
> Igor Chudov <address@hidden> writes:
>
> > /usr/lib/libgmp.so: could not read symbols: File in wrong format
> > collect2: ld returned 1 exit status
>
> I suppose the problem is that /usr/lib/libgmp.so is 64-bit ELF.
Yep.
And the real issue is that libtool finds the 64 bit version and forces
me to link against it.
> Assuming the 32-bit version is under /usr/lib32, you can try something
> like this:
>
> CC="gcc -m32" LDFLAGS="-L/usr/lib32" ./configure
Does not work:
ap.lo libguile_la-unif.lo dynl.lo filesys.lo posix.lo net_db.lo
socket.lo regex-posix.lo -lgmp -lcrypt -lm -lltdl
gcc -m32 -shared .libs/libguile_la-load.o -L/usr/lib32
/usr/lib/libgmp.so -lcrypt -lm /usr/lib/libltdl.so -m32 -pthread
-Wl,-soname -Wl,libguile.so.17 -o .libs/libguile.so.17.1.1
/usr/lib/libgmp.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[3]: *** [libguile.la] Error 1
make[3]: Leaving directory
`/home/ichudov/smile/guile-1.xx/archive/guile-1.8.3/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/ichudov/smile/guile-1.xx/archive/guile-1.8.3/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/ichudov/smile/guile-1.xx/archive/guile-1.8.3'