CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > 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 Search this Thread Display Modes
Old   January 27, 2014, 10:54
Default OpenFoam Extend-3.0 - libscotch 6.0 compilation Problem
  #1
Member
 
Krishna
Join Date: Jun 2012
Posts: 33
Blog Entries: 1
Rep Power: 13
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, 11:17
Default
  #2
Member
 
Krishna
Join Date: Jun 2012
Posts: 33
Blog Entries: 1
Rep Power: 13
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, 11:30
Default
  #3
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan 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.
chegdan is offline   Reply With Quote

Old   January 30, 2014, 11:09
Smile Finally Compilation Sucess
  #4
Member
 
Krishna
Join Date: Jun 2012
Posts: 33
Blog Entries: 1
Rep Power: 13
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, 14:21
Default
  #5
Member
 
Krishna
Join Date: Jun 2012
Posts: 33
Blog Entries: 1
Rep Power: 13
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 Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[blockMesh] could anyone post a simple cylinder mesh guilherme OpenFOAM Meshing & Mesh Conversion 46 October 23, 2020 17:18
[Commercial meshers] Handling cyclic BC from gambit to openfoam for a cascade airfoil problem - OF 1.6 maverick OpenFOAM Meshing & Mesh Conversion 2 June 18, 2011 04:36
!!! UDF - Compilation problem !!! Everest FLUENT 1 January 12, 2009 17: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 02:35.