CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Linking Problem of libOSspecific (http://www.cfd-online.com/Forums/openfoam-installation/88836-linking-problem-libosspecific.html)

wilmbas May 27, 2011 06:00

Linking Problem of libOSspecific
 
Dear OpenFOAM users.

I have encountered problems during the compilation process. This is displayed at stderr:

+ wmake libo OSspecific/POSIX
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file signals/sigFpe.C
Making dependency list for source file signals/sigSegv.C
Making dependency list for source file signals/sigInt.C
Making dependency list for source file signals/sigQuit.C
Making dependency list for source file regExp.C
Making dependency list for source file timer.C
Making dependency list for source file fileStat.C
Making dependency list for source file POSIX.C
Making dependency list for source file cpuTime/cpuTime.C
Making dependency list for source file clockTime/clockTime.C
Making dependency list for source file printStack.C
SOURCE=signals/sigFpe.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/sigFpe.o
SOURCE=signals/sigSegv.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/sigSegv.o
SOURCE=signals/sigInt.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/sigInt.o
SOURCE=signals/sigQuit.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/sigQuit.o
SOURCE=regExp.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/regExp.o
SOURCE=timer.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/timer.o
SOURCE=fileStat.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/fileStat.o
SOURCE=POSIX.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/POSIX.o
SOURCE=cpuTime/cpuTime.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/cpuTime.o
SOURCE=clockTime/clockTime.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/clockTime.o
SOURCE=printStack.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE - o Make/linux64GccDPOpt/printStack.o
ld -r -o /scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOSspecific.o Make/linux64GccDPOpt/sigFpe.o Make/linux64GccDPOpt/sigSegv.o Make/linux64GccDPOpt/sigInt.o Make/linux64GccDPOpt/sigQuit.o Make/linux64GccDPOpt/regExp.o Make/linux64GccDPOpt/timer.o Make/linux64GccDPOpt/fileStat.o Make/linux64GccDPOpt/POSIX.o Make/ linux64GccDPOpt/cpuTime.o Make/linux64GccDPOpt/clockTime.o Make/linux64GccDPOpt/printStack.o
ld: Relocatable linking with relocations from format elf64-x86-64 (Make/linux64GccDPOpt/sigFpe.o) to format elf32-i386 (/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOSspecific.o) is not supported
make: *** [/scratch/fcuevas/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOSspecific.o] Error 1


WM_ARCH_OPTION: x86_64
WM_ARCH: linux64
CPU: AMD Opteron(tm) Processor 4180
Processors:12

I have tried compilation for these WM_ARCH_OPTIONS:
export WM_COMPILER_ARCH='-64'
export WM_CC='gcc'
export WM_CXX='g++'
export WM_CFLAGS='-m64 -fPIC'
export WM_CXXFLAGS='-m64 -fPIC'
export WM_LDFLAGS='-m64'

as well as these options:
export WM_COMPILER_ARCH='-64'
export WM_CC='gcc'
export WM_CXX='g++'
export WM_CFLAGS='-m32 -fPIC'
export WM_CXXFLAGS='-m32 -fPIC'
export WM_LDFLAGS='-m32'

Nothing has obviously changed this error. Lots of subsequent errors follow this problem thus OF is not usable. Has anyone an idea how to get rid of this problem?

Kindly regards and thanks in advance for your help.
Thore

wilmbas May 27, 2011 08:39

Issue solved: 32-bit DEBIAN installed on 64-bit CPU
 
Dear OpenFOAMers.

The answer was easy but I was blind to see it: the OS itself is 32bit and the hardware 64bit. Thus it's clear and I know what to do.
I did not change WM_ARCH_OPTION which was all the time on 64.

Kindly regards to all,
Thore Oltersdorf


All times are GMT -4. The time now is 17:43.