Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

need 32bit version to compile

Brian_A_
Novice
1,838 Views

Why is it when I specify ia32 on my 64bit Linux, IFC still compiles in 64bit.

This is in my bash file

PATH="/opt/intel/composer_xe_2015.3.187/bin/ia32:$PATH"
export PATH
LD_LIBRARY_PATH="/opt/intel/composer_xe_2015.3.187/bin/ia32:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH

 

This is what the beginning of my look file shows.

ifort -logo
Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 15.0.3.187 Build 20150407
Copyright (C) 1985-2015 Intel Corporation.  All rights reserved.

0 Kudos
13 Replies
Steven_L_Intel1
Employee
1,838 Views

Instead of setting PATH explicitly, you should instead be using "source" on ifortvars.sh with "ia32" as an argument.

0 Kudos
Brian_A_
Novice
1,838 Views

I used "source" with ia32 at the end and it still is compiling in 64bit

0 Kudos
Steven_L_Intel1
Employee
1,838 Views

It may be that you didn't install the IA-32 version or that you don't have the gcc 32-bit libraries installed.

What does "which ifort" say?

0 Kudos
Brian_A_
Novice
1,838 Views

I have the ia32 installed.   There are 32bit folders in the INTEL instalation folder.

Which IFORT produces this

/opt/intel/composer_xe_2015.3.187/bin/ia32/ifort

 

0 Kudos
Steven_L_Intel1
Employee
1,838 Views

Ok, what is the exact size in bytes of ifort and fortcom in both the ia32 and intel64 subdirectories of bin?

0 Kudos
Brian_A_
Novice
1,838 Views

IA32

fortcom = 34,330,012 bytes

ifort = 3,388,696 bytes

 

intel64

fortcom = 44,840,248 bytes

ifort = 4,192,136 bytes

0 Kudos
Steven_L_Intel1
Employee
1,838 Views

Ok, that seems right.  Now try this experiment. Termporarily rename the ifort in the intel64 folder and try the compile again. Please show the complete log of the attempt.

0 Kudos
Brian_A_
Novice
1,838 Views
I renamed ifort in the INTEL64 folder and here is what i get
ifort -traceback -o auxx/select.x auxx/select.f
make: ifort: Command not found
make: [auxx/select.x] Error 127 (ignored)
ifort -traceback -o auxx/cnv32.x auxx/cnv32.f
make: ifort: Command not found
make: [auxx/cnv32.x] Error 127 (ignored)
/bin/sh: 1: auxx/select.x: not found
make: [auxx/builderm.x] Error 127 (ignored)
ifort -auto -ansi_alias- -pad_source -traceback \
	-O0 -g -debug-parameters -o auxx/builderm.x builderm.for
make: ifort: Command not found
make: [auxx/builderm.x] Error 127 (ignored)
ifort -traceback -o auxx/setdattim.x auxx/setdattim.f
make: ifort: Command not found
make: [auxx/setdattim.x] Error 127 (ignored)
ifort -logo
make: ifort: Command not found
make: [all] Error 127 (ignored)
if [ ! -d "o" ]; then mkdir "o"; fi
cd envrl ; ls *.hh >filedoth ; ls *.ff >filedotf ; rm -f *.tch
cd matpro ; ls *.hh >filedoth ; ls *.ff >filedotf ; rm -f *.tch
cd relap ; ls *.hh >filedoth ; ls *.ff >filedotf ; rm -f *.tch
cd scdap ; ls *.hh >filedoth ; ls *.ff >filedotf ; rm -f *.tch
auxx/setdattim.x
make: auxx/setdattim.x: Command not found
make: [all] Error 127 (ignored)
rm -f relap/blddattim.o ; rm -f o/blddattim.mod
auxx/builderm.x makerlxp
make: auxx/builderm.x: Command not found
make: [all] Error 127 (ignored)
cd steam ; make -f steamlnx.mak
make[1]: Entering directory `/home/brianallison/issrs/rs40/rs40fa.x32.09.14 .2015/steam'
ifort -c -O0 -g -auto -ansi_alias- -pad_source -o auxpk.obj auxpk.for
make[1]: ifort: Command not found
make[1]: [auxpk.obj] Error 127 (ignored)
ifort -c -O0 -g -auto -ansi_alias- -pad_source -o eospk.obj eospk.for
make[1]: ifort: Command not found
make[1]: [eospk.obj] Error 127 (ignored)
ifort -c -O0 -g -auto -ansi_alias- -pad_source -o intpk.obj intpk.for
make[1]: ifort: Command not found
make[1]: [intpk.obj] Error 127 (ignored)
ifort -c -O0 -g -auto -ansi_alias- -pad_source -o proppk.obj proppk.for
make[1]: ifort: Command not found
make[1]: [proppk.obj] Error 127 (ignored)
ifort -c -O0 -g -auto -ansi_alias- -pad_source -o solvpk.obj solvpk.for
make[1]: ifort: Command not found
make[1]: [solvpk.obj] Error 127 (ignored)
ar rsv steam.a auxpk.obj eospk.obj intpk.obj proppk.obj solvpk.obj
ar: creating steam.a
ar: auxpk.obj: No such file or directory
make[1]: [steam.a] Error 1 (ignored)
make[1]: Leaving directory `/home/brianallison/issrs/rs40/rs40fa.x32.09.14 .2015/steam'
cd ..
make -f makrelap NM=o FFLAGS="-O2 -g -debug-parameters" FPSTOP= \
	CONTMN= RK3D= O=o cpl=
make[1]: Entering directory `/home/brianallison/issrs/rs40/rs40fa.x32.09.14 .2015'
make[1]: makrelap: No such file or directory
make[1]: *** No rule to make target `makrelap'.  Stop.
make[1]: Leaving directory `/home/brianallison/issrs/rs40/rs40fa.x32.09.14 .2015'
make: [all] Error 2 (ignored)

 

0 Kudos
Steven_L_Intel1
Employee
1,838 Views

I see you are doing this in a makefile. Please just try the ifort command from the command line (preceded by a "which ifort").

0 Kudos
Brian_A_
Novice
1,838 Views

~/issrs/rs40/rs40fa.x32.09.14 .2015$ifort
bash: /opt/intel/composer_xe_2015.3.187/bin/ia32/ifort: No such file or directory
~/issrs/rs40/rs40fa.x32.09.14 .2015$which ifort
/opt/intel/composer_xe_2015.3.187/bin/ia32/ifort
~/issrs/rs40/rs40fa.x32.09.14 .2015$

 

0 Kudos
Steven_L_Intel1
Employee
1,838 Views

Hmm..  I suggested renaming the ifort in the intel64 directory and now it says it can't find the ia32 version? Maybe you have disk corruption?

Perhaps try an uninstall and reinstall. (And try a newer version if you can. The 2015 series is now at Update 6 and there's 2016 Update 1.)

0 Kudos
Brian_A_
Novice
1,838 Views

How do you uninstall IFC on Linux?

0 Kudos
Steven_L_Intel1
Employee
1,838 Views

To uninstall on Linux*, removing the product should be done by the same user who installed it
(root or a non-root user). If sudo was used to install, it must be used to uninstall as well. It is not
possible to remove the compilers while leaving any of the performance libraries installed.
1. Open a terminal window and set default (cd) to any folder outside [install-dir]
2. Type the command: [installdir]/parallel_studio_xe_2016..[pkg]/uninstall.sh
for a commandline
uninstall or [installdir]/parallel_studio_xe_2016..[pkg]/uninstall-GUI.sh
for a GUI
uninstall.
3. Follow the prompts
4. Repeat steps 2 and 3 to remove additional platforms or versions

0 Kudos
Reply