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

compiler problem?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 25, 2009, 10:39
Default compiler problem?
  #1
New Member
 
Join Date: May 2009
Posts: 21
Rep Power: 8
thomasduerr is on a distinguished road
Hi folks,

I have a quick question about the recompilation of OF solvers:

I have all OF-1.5 installed and everything is running perfectly. However now I wanted/had to change some pieces of the code, when I want to recompile the solver using the wclean/wmake combination I receive an error message

>wclean
>wmake

Making dependency list for source file tractionDisplacement/tractionDisplacement FvPatchVectorField.C
Making dependency list for source file solidDisplacementFoam.C
SOURCE=tractionDisplacement/tractionDisplacementFvPatchVectorField.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-s tyle-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/acrobat /OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -ItractionDisplacement /lnInclude -IlnInclude -I. -I/home/acrobat/OpenFOAM/OpenFOAM-1.5/src/Ope nFOAM/lnInclude -I/home/acrobat/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Uni x/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/tractionDisplacementFvPat chVectorField.o
SOURCE=solidDisplacementFoam.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/acrobat/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -Itr actionDisplacement/lnInclude -IlnInclude -I. -I/home/acrobat/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/acrobat/we be_ol/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/solidDisplacementFoam.o
readSolidDisplacementFoamControls.H: In function ‘int main(int, char**)’:
readSolidDisplacementFoamControls.H:3: warning: unused variable ‘nCorr’
readSolidDisplacementFoamControls.H:4: warning: unused variable ‘convergenceTolerance’
g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/acrobat/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -ItractionDisplacement/lnInclude -IlnInclude -I. -I/home/acrobat/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/acrobat/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC Make/linux64GccDPOpt/tractionDisplacementFvPatchVectorField.o Make/linux64GccDPOpt/solidDisplacementFoam.o -L/home/acrobat/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt \
-lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/acrobat/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/solidDisplacementFoam
/home/acrobat/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.1/../../../../lib64/libstdc++.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make: *** [/home/acrobat/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/solidDisplacementFoam] Error 1

Can someone please help me here? I also tried to recompile the full code from source files but also get errors.....

Thanks a lot for your help,
Regards,
Thomas
thomasduerr is offline   Reply With Quote

Old   May 27, 2009, 03:43
Default
  #2
Senior Member
 
Rishi .
Join Date: Mar 2009
Posts: 138
Rep Power: 8
hellorishi is on a distinguished road
Hi Thomas,

Can you post the output of foamInstallationTest ?

Did you download correct binaries-- i.e. 32 or 64 bit according to your machine?

Rishi
hellorishi is offline   Reply With Quote

Old   May 28, 2009, 02:39
Default
  #3
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 9
gwierink is on a distinguished road
Hi Thomas,

Does the solver without any changes (re)compile? Try to compile the original solver to see if it is a compiler or lib issue. If not, it looks like there are some code lines incorrect or incomplete. In the latter case, can you share what you are trying to do, just to check the code?

Regards,

Gijsbert
gwierink is offline   Reply With Quote

Old   May 28, 2009, 08:24
Default
  #4
New Member
 
Join Date: May 2009
Posts: 21
Rep Power: 8
thomasduerr is on a distinguished road
Hi guys,

thanks a lot for your posts!
I managed to solve it by downloading precomiled binaries of gcc-4.2.1 from the web.
Then I adjusted the folders 100% as in the ThirdParty gcc-4-3-1 and changed the settings.sh to source gcc 421 and it works....!

I don't have a clue why it does not work with 4.3.1 on workstations but 4.2.1 solves it!

Thanks a lot again
Thomas
thomasduerr is offline   Reply With Quote

Reply

Tags
compiler, installation, recompilation

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 32 May 8, 2015 06:05
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
Problem in Tutorial problem of fluent Phanindra FLUENT 5 April 17, 2007 09:57
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


All times are GMT -4. The time now is 14:21.