LAPACK Archives

[Lapack] failed to build 32 bit f2clib


Hello Edwin,

I am forwarding the answer of Peng Du that worked on the problem.
You probably have a problem with one of your system lib that is 32-bit.
For example glibc. Here are some relevant discussions.

http://groups.google.com/group/comp.emulators.ms-windows.wine/browse_thread/thread/14dc737d64d660a/c6a0418f8bb469a5?hl=en&lnk=st&q=ld+elf32-i386+to+format+elf64-x86-64++is+not+s
upported#c6a0418f8bb469a5

Peng did a quick sample on a 64-bit debian machine, just call printf and
print something. At linking time gcc complained:

=========
[dpo-deb4-64:/home/pdu/tryout]299 % gcc -m32 -c foo.c
[dpo-deb4-64:/home/pdu/tryout]302 % gcc foo.o -o foo
/hub/Linux/glibc-2.3.6/x86_64/apps/gcc-4.1.1/bin/ld: warning: i386
architecture of input file `foo.o' is incompatible with i386:x86-64 output
[dpo-deb4-64:/home/pdu/tryout]304 % ./foo
Segmentation fault
===========

So you could try to make this kind of example work when looking for what 
is really missing in the process before moving on to deal with libf2c.

In any case, the problem does not seem to come from us.

Julien.
(Thanks Peng.)



On Mon, 14 Jul 2008, Edwin Sarkissian wrote:

Hello,

I tried to compile CLAPACK on a 64 bit architecture as a 32 bit library.
To do so, I renamed make.inc.example to make.inc and replaced the line
       CC        = gcc
with
       CC        = gcc -m32
I was able to create blas_linux.a library, but building f2clib failed.  The
following shows the error messages that I got.


[esarkiss at vostok CLAPACK-3.1.1]$ make f2clib
( cd F2CLIBS/libf2c; make )
make[1]: Entering directory
`/home/esarkiss/lapack_blas/CLAPACK-3.1.1/F2CLIBS/libf2c'
cp signal1.h0 signal1.h
cp sysdep1.h0 sysdep1.h
gcc -m32 -c f77vers.c
gcc -m32 -c i77vers.c
gcc -m32 -c -DSkip_f2c_Undefs -O3 main.c
ld -r -x -o main.xxx main.o
ld: Relocatable linking with relocations from format elf32-i386
(main.o) to format elf64-x86-64 (main.xxx) is not supported
make[1]: *** [main.o] Error 1
make[1]: Leaving directory
`/home/esarkiss/lapack_blas/CLAPACK-3.1.1/F2CLIBS/libf2c'
make: *** [f2clib] Error 2



Thank you in advance,
Edwin
_______________________________________________
Lapack mailing list
Lapack@Domain.Removed
http://lists.cs.utk.edu/listinfo/lapack


<Prev in Thread] Current Thread [Next in Thread>


For additional information you may use the LAPACK/ScaLAPACK Forum.
Or one of the mailing lists, or