OpenFoam Extend-3.0 - libscotch 6.0 compilation Problem
1 Attachment(s)
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 Attachment 28291 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 |
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 |
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 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. |
Finally Compilation Sucess
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. |
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 |
All times are GMT -4. The time now is 02:35. |