[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cross compiling or better suggestion...
From: |
John Sanabria |
Subject: |
cross compiling or better suggestion... |
Date: |
Tue, 13 Nov 2007 00:20:27 -0400 |
User-agent: |
Thunderbird 2.0.0.5 (X11/20070727) |
Hi,
I'm compiling octave for a different platforms. Minutes ago, I tried to
compile octave in that particular machine
"Linux sunyata.thaigrid.or.th 2.6.9-42.0.3.EL_lustre.1.4.9smp #1 SMP Wed
Feb 7 01:46:02 MST 2007 x86_64 x86_64 x86_64 GNU/Linux"
And I got this error:
--- short for brevity ---
/usr/bin/ld:
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/libf77blas.a(sgbmv.o):
relocation R_X86_64_32 against `a local symbol' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/libf77blas.a:
could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libcruft.so] Error 1
make[3]: Leaving directory `/home/josanabr/src/octave-2.9.9/libcruft'
make[2]: *** [libraries] Error 2
make[2]: Leaving directory `/home/josanabr/src/octave-2.9.9/libcruft'
make[1]: *** [libcruft] Error 2
make[1]: Leaving directory `/home/josanabr/src/octave-2.9.9'
make: *** [all] Error 2
------------------------------
Ok, I had compiled successfully octave in that platform
"Linux pragma001.grid.sinica.edu.tw 2.4.21-47.EL.cernsmp #1 SMP Mon Jul
24 15:33:59 CEST 2006 i686 i686 i386 GNU/Linux"
Then, I think that could be possible compile octave in pragma001 (i686)
and copy the compilation output in sunyata(x86_64).
The problem is, that I never had made a cross platform compilation.
Are there some documentation in octave about it? I read the INSTALL and
say it:
" If you are _building_ compiler tools for cross-compiling, you should
use the `--target=TYPE' option to select the type of system they will
produce code for."
What value assign to TYPE?
" If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
eventually be run) with `--host=TYPE'."
What value assign to TYPE?
Correct values, solve my problem? Thanks a lot,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- cross compiling or better suggestion...,
John Sanabria <=