CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Linking Problem of libOSspecific

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 27, 2011, 06:00
Default Linking Problem of libOSspecific
  #1
New Member
 
Join Date: May 2009
Posts: 8
Rep Power: 16
wilmbas is on a distinguished road
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 is offline   Reply With Quote

Old   May 27, 2011, 08:39
Default Issue solved: 32-bit DEBIAN installed on 64-bit CPU
  #2
New Member
 
Join Date: May 2009
Posts: 8
Rep Power: 16
wilmbas is on a distinguished road
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
wilmbas is offline   Reply With Quote

Reply

Tags
compile error, debian, linker


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
area does not match neighbour by ... % -- possible face ordering problem St.Pacholak OpenFOAM 10 February 7, 2024 21:50
problem loading UDF library in parallel cluster Veera Gutti FLUENT 8 July 26, 2016 07:24
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13


All times are GMT -4. The time now is 18:44.