Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem in installing icc (ifc) compiler
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
Trinakria
n00b
n00b


Joined: 27 Apr 2004
Posts: 10

PostPosted: Tue Apr 27, 2004 7:24 am    Post subject: Problem in installing icc (ifc) compiler Reply with quote

Dear Amd64 Gentooist,

Sorry for the "trivial" aspect of my questions.. but i am pretty new in Gentoo.
I use Gentoo (kernel 2.6.5) on an amd64 Opteron.

For some scientifical applications, i need to use the Intel compilers (icc) and (ifc) (in 32 bits mode).
I have emerged the corresponding icc ebuild (~x86) (version 8.0.055).
Everything worked perfectly... the directory /opt/intel/compiler80 is installed as the environement variables.
I installed the Intel non-commercial licences.

when i try to compile something:

~$ icc prog.cc -o a.out

i obtain the above results

/opt/intel/compiler80/bin/icc: line 4: /opt/intel/compiler80/bin/iccbin: cannot execute binary file

on line 4 of the /opt/intel/compiler80/bin/icc file the iccbin executable file is called.

the permissions are the following:

-rwxr-xr-x 1 root root 156 Apr 22 16:38 /opt/intel/compiler80/bin/icc
-rwxr-xr-x 1 root root 2467254 Apr 22 16:38 /opt/intel/compiler80/bin/iccbin

if i try to compile my prg using iccbin

~$ iccbin prog.cc -o a.out

I get this message:

-bash: /opt/intel/compiler80/bin/iccbin: cannot execute binary file

but if i try to get more informations about this executable using the "file" command, i get the following:

~$ file /opt/intel/compiler80/bin/iccbin

-->

/opt/intel/compiler80/bin/iccbin: ELF 64-bit LSB executable, IA-64 (Intel 64 bit architecture) version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), not stripped

I really don't know how to solve the problem and what is exactly the problem ?!

Please, if you feel inspired don't hesitate to give me some ideas/suggestions.

thx you,

Trinakria

ps: i have the same pb with "ifc" compiler.
at the begining i thought it was a problem with the 32-bit emulation, but everything looks fine (32-emulation librairies and 32-bit emulation enabled in the kernel...) other 32-bit applications are working.. i really don't know what is the pb.
Back to top
View user's profile Send private message
Trinakria
n00b
n00b


Joined: 27 Apr 2004
Posts: 10

PostPosted: Thu Apr 29, 2004 6:51 pm    Post subject: Reply with quote

Hello,

I turn to Intel fortran compiler (ifc)

I emerge the ifc (version: 7.0.064-r1)

iifc works....

well I can compile an object

$ ifc test.f90 -c

and if i try to link using the x86 (32-bit) emulation with

$ ifc -Wl,-m elf_i386 test.f90 -o a.out

->

Code:

....
32 Lines Compiled

ld: skipping incompatible /usr/lib/libm.so when searching for -lm
ld: skipping incompatible /usr/lib/libm.a when searching for -lm
ld: skipping incompatible /usr/lib/libc.so when searching for -lc
ld: skipping incompatible /usr/lib/libc.a when searching for -lc
ld: warning: i386:x86-64 architecture of input file `/usr/lib/crt1.o' is incompatible with i386 output
ld: warning: i386:x86-64 architecture of input file `/usr/lib/crti.o' is incompatible with i386 output
ld: warning: i386:x86-64 architecture of input file `/usr/lib/crtn.o' is incompatible with i386 output
/opt/intel/compiler70/ia32/lib/libIEPCF90.a(f90file.o)(.text+0x4746): In function `FileOpen':
: undefined reference to `errno'
/opt/intel/compiler70/ia32/lib/libIEPCF90.a(f90fioerr.o)(.text+0x6d9): In function `f_fiomess.':
: undefined reference to `errno'
/opt/intel/compiler70/ia32/lib/libIEPCF90.a(f90fioerr.o)(.text+0x76b): In function `f_seterrno':
: undefined reference to `errno'


it's better as before but still not so useful...

any idea for my compiler ?
Back to top
View user's profile Send private message
Kugelfang
Retired Dev
Retired Dev


Joined: 28 Nov 2003
Posts: 25
Location: Witten, Germany

PostPosted: Thu Apr 29, 2004 7:42 pm    Post subject: Reply with quote

You made a mistake too install a 32bit compiler into a 64bit environment. That's not good (at least not good on Gentoo/amd64).
A much better approach would be to create a 32bit chroot, to compile all applications you need there and to copy them over to your 64bit env.

There's a guide to creation of 32bit chroot on
http://amd64.gentoo.org/technotes.xml
_________________
Danny van Dyk
Gentoo Developer
Gentoo/AMD64 Project, Gentoo Scientifc Project
kugelfang@gentoo.org
Back to top
View user's profile Send private message
Trinakria
n00b
n00b


Joined: 27 Apr 2004
Posts: 10

PostPosted: Thu Apr 29, 2004 8:09 pm    Post subject: Reply with quote

Hi Kugelfang,

Kugelfang wrote:
You made a mistake too install a 32bit compiler into a 64bit environment. That's not good (at least not good on Gentoo/amd64).


Is it impossible to install 32-bit program like compiler (icc/ifc) on Gentoo/amd64 ?

If i install a chroot environement is it possible to make it "user friendly" ? many users should have the possibility to use the compilers and run the executable in the 64-bit environement.

thx for your help
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum