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

OpenFoam Extend-3.0 - libscotch 6.0 compilation Problem

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 27, 2014, 11:54
Default OpenFoam Extend-3.0 - libscotch 6.0 compilation Problem
  #1
New Member
 
Krishna
Join Date: Jun 2012
Posts: 28
Blog Entries: 1
Rep Power: 5
rkc.cfd is on a distinguished road
I was trying to compile Extend 3.0 with GCC 4.4.5 and OpenMpi 1.6.5 / OpenMP 1.4.3, I encountered this error with libScotch -

Code:
mpicc -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_PTHREAD -Drestrict=__restrict -Xlinker --no-as-needed -DSCOTCH_PTSCOTCH -shared -fPIC -c dgraph_fold_comm.c -o dgraph_fold_comm.o
/tmp/iccxUPTfC.o: In function `main':
dummysizes.c:(.text+0x51e): undefined reference to `__intel_sse2_strcpy'
Attached is the file
log.stage3.txt


I tried to search over the internet with libscotch and could not find a solution. Also looks like an intel processor directive problem, should I compile with ICC?

Cheers,

RKC
rkc.cfd is offline   Reply With Quote

Old   January 28, 2014, 12:17
Default
  #2
New Member
 
Krishna
Join Date: Jun 2012
Posts: 28
Blog Entries: 1
Rep Power: 5
rkc.cfd is on a distinguished road
I tried compiling with ICC 12.1 and the libscotch 6.0 compiled successfully. I read on a forum that the above error is generated due to cross compiling of ICC and GCC. I think some file in scotchlib-6.0 is compiled with ICC.

Cheers
rkc.cfd is offline   Reply With Quote

Old   January 28, 2014, 12:30
Default
  #3
Senior Member
 
chegdan's Avatar
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 543
Rep Power: 18
chegdan will become famous soon enough
This error is because things aren't quite linked up correctly with your ICC. Remember, when you select "system" as your compiler and "Icc"...OpenFOAM backs away with its hands up in the air and says "I will assume you have this Icc thing all set up correctly" and just set a few things for you. I believe to fix this, i needed

Code:
# Intel Compiler
export PATH=/opt/intel/composerxe/bin:$PATH
export LD_LIBRARY_PATH=/opt/intel/composerxe/lib/intel64:$LD_LIBRARY_PATH
in my .bashrc before anything OpenFOAM related was sourced. You can tell I am using Ubuntu....so this may be a little different in other OSs. I did this with the standard OpenFOAM and have not gotten around to trying foam-3 with it yet...maybe now is a good time for me to try.

Edit: My Icc version was the newest....so you may not have composerxe but some other <name-version>. There were several posts on other forums that showed how to correctly source Icc for older versions.
__________________
Dan

Find me on twitter @dancombest and LinkedIn
chegdan is offline   Reply With Quote

Old   January 30, 2014, 12:09
Smile Finally Compilation Sucess
  #4
New Member
 
Krishna
Join Date: Jun 2012
Posts: 28
Blog Entries: 1
Rep Power: 5
rkc.cfd is on a distinguished road
The compilation with GCC worked, after I found out that the system openmpi was compiled with ICC and there was cross compilation problems. When I compiled openmpi myself the problem disappeared. The settings I used are GCC4.4.5 and OpenMPI 1.4.3. The only problem was it could not find -liberty flag and I installed the binutils locally from the instructions here
http://openfoamwiki.net/index.php/In...mpile_OpenFOAM

Thanks for your suggestions for ICC, I will try soon.
rkc.cfd is offline   Reply With Quote

Old   January 31, 2014, 15:21
Default
  #5
New Member
 
Krishna
Join Date: Jun 2012
Posts: 28
Blog Entries: 1
Rep Power: 5
rkc.cfd is on a distinguished road
I compiled with ICC and intel mpi. I had few hiccups, but most had solutions were from the following link:

http://www.tfd.chalmers.se/~hani/kur...sAndTricks.htm


Thanks Again
rkc.cfd is offline   Reply With Quote

Reply

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
Help could anyone post a simple cylinder mesh guilherme OpenFOAM Native Meshers: blockMesh 30 September 13, 2013 04:34
Handling cyclic BC from gambit to openfoam for a cascade airfoil problem - OF 1.6 maverick OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 June 18, 2011 04:36
!!! UDF - Compilation problem !!! Everest FLUENT 1 January 12, 2009 18:56
Can I use OpenFOAM to solve unsteady diffusion problem yongshenglian OpenFOAM Running, Solving & CFD 1 September 17, 2008 12:03
OpenFOAM 14 compilation problem zaferleylek OpenFOAM Installation 4 May 8, 2007 14:52


All times are GMT -4. The time now is 03:30.