|
[Sponsors] |
OpenFoam Extend-3.0 - libscotch 6.0 compilation Problem |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 27, 2014, 11:54 |
OpenFoam Extend-3.0 - libscotch 6.0 compilation Problem
|
#1 |
Member
|
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' 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 |
|
January 28, 2014, 12:17 |
|
#2 |
Member
|
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 |
|
January 28, 2014, 12:30 |
|
#3 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
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 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. |
|
January 30, 2014, 12:09 |
Finally Compilation Sucess
|
#4 |
Member
|
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. |
|
January 31, 2014, 15:21 |
|
#5 |
Member
|
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 18: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 05: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 13:03 |
OpenFOAM 14 compilation problem | zaferleylek | OpenFOAM Installation | 4 | May 8, 2007 15:52 |