|
[Sponsors] |
August 22, 2007, 16:49 |
Compilation of redistributeMes
|
#1 |
Member
David P. Schmidt
Join Date: Mar 2009
Posts: 71
Rep Power: 17 |
Compilation of redistributeMeshPar failed due to an unresolved reference.
The failure occured with the following: SUSE 8.1 OF 1.4.1 Architecture: Itanium 2 (IA64) gcc version 4.1.2 + wmake redistributeMeshPar Making dependency list for source file redistributeMeshPar.C SOURCE=redistributeMeshPar.C ; g++ -DlinuxIA64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/ac/dschmidt/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/parallelProce ssing/decompositionMethods/decompositionMethods/lnInclude -I/home/ac/dschmidt/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/home/ac/dschmidt/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -I/home/ac/dschmidt/OpenFOAM/OpenFOAM-1.4.1/src/dynamicMesh/lnInclude -IlnInclude -I. -I/home/ac/dschmidt/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linuxIA64GccDPOpt/redistributeMeshPar.o g++ -DlinuxIA64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/ac/dschmidt/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/parallelProce ssing/decompositionMethods/decompositionMethods/lnInclude -I/home/ac/dschmidt/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/home/ac/dschmidt/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -I/home/ac/dschmidt/OpenFOAM/OpenFOAM-1.4.1/src/dynamicMesh/lnInclude -IlnInclude -I. -I/home/ac/dschmidt/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC Make/linuxIA64GccDPOpt/redistributeMeshPar.o -L/home/ac/dschmidt/OpenFOAM/OpenFOAM-1.4.1/lib/linuxIA64GccDPOpt \ -lfiniteVolume -ldecompositionMethods -lmeshTools -ldynamicMesh -lparMetisDecompositionMethod -lOpenFOAM -liberty -ldl -lm -o /home/ac/dschmidt/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxIA64GccDPOpt/red istributeMeshPar /home/ac/dschmidt/OpenFOAM/OpenFOAM-1.4.1/lib/linuxIA64GccDPOpt/libGKlib.so: undefined reference to `__tls_get_addr' collect2: ld returned 1 exit status make: *** [/home/ac/dschmidt/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxIA64GccDPOpt/re distributeMeshPar] Error 1 |
|
August 22, 2007, 16:52 |
Quoting from Mattijs in an ear
|
#2 |
Senior Member
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21 |
Quoting from Mattijs in an earlier post[1]:
Looks like your C++ compiler does not compile correctly (undefined reference to `___tls_get_addr' ) Try recompiling gcc from sources and see if you can compile&/link any (non-Foam) c++ program. [1] http://www.cfd-online.com/OpenFOAM_D...es/1/2860.html |
|
August 23, 2007, 05:48 |
Srinath,
Thanks for the sugge
|
#3 |
Member
David P. Schmidt
Join Date: Mar 2009
Posts: 71
Rep Power: 17 |
Srinath,
Thanks for the suggestion. However, I don't think that it is this simple, for several reasons. 1) I did compile this g++ from sources a few months ago and used it to install OF1.4 previously. 2) I have successfully compiled OF1.4.1 up to this point. 3) Compiling a non-Foam (hello world) C++ test works fine. I'll keep digging. I wonder if it has to do with METIS ? I think that is where libGKlib comes from. Could be a ./configure problem. -David |
|
August 23, 2007, 06:56 |
Looks like a metis related iss
|
#4 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
Looks like a metis related issue. 'ldd $FOAM_LIBBIN/*' throws up libGKlib only in libmetis.so.
|
|
August 27, 2007, 10:36 |
Mattijs,
You are probably cor
|
#5 |
Member
David P. Schmidt
Join Date: Mar 2009
Posts: 71
Rep Power: 17 |
Mattijs,
You are probably correct. Note that I upgraded to gcc 4.2.1 (compiled from sources) and I am still seeing the same problem. David |
|
August 28, 2007, 15:29 |
Closure:
After spending four
|
#6 |
Member
David P. Schmidt
Join Date: Mar 2009
Posts: 71
Rep Power: 17 |
Closure:
After spending four whole days trying to get the full code (OF and Metis) to compile on the Itanium 2 with any of: gcc 4.2 gcc 4.1 gcc 3.2 Intel v. 8 Intel v. 9 ...I am going back to OF 1.3. Compilation failed for different reasons with each compiler. The OF distribution has just gotten harder and harder to compile from sources. -David |
|
August 28, 2007, 17:44 |
It has been a while since I've
|
#7 |
Senior Member
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21 |
It has been a while since I've built OpenFOAM from sources. I was planning on doing it next week. I'll give it a try this weekend. Let's see how it goes.
|
|
August 28, 2007, 20:48 |
It can be done with a little t
|
#8 |
Member
David P. Schmidt
Join Date: Mar 2009
Posts: 71
Rep Power: 17 |
It can be done with a little trying on an Intel architecture machine or a machine where you are root (or where you can at least tell Mr. root what to do). If you are a remote non-Intel site where the sysadmin is not going to upgrade the OS or compilers, life gets more frustrating.
David |
|
August 29, 2007, 10:50 |
Has anybody experience in comp
|
#9 |
Senior Member
Jens Klostermann
Join Date: Mar 2009
Posts: 117
Rep Power: 17 |
Has anybody experience in compiling OpenFOAM-1.4.1 with Intel compiler v 9.0? Especially the metis-5.0pre2 libs? I always get errors like
trunk/error.c(20): error: identifier "__thread" is undefined __thread jmp_buf gk_return_to_entry; .... With the gnu c-compiler this works all fine but not with the intel compiler?! Any hints? Thanks! Jens |
|
August 29, 2007, 11:34 |
I have successfully compiled a
|
#10 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
I have successfully compiled and run OpenFOAM-1.4.1 with the Intel C++ compiler version 10.0 on a dual core, dual processor Xeon 5160 machine. Also I have compiled and runOpenFOAM-1.4 with Intel C++ compiler version 9.1 but neither with 9.0 which has too many problems.
To compile OpenFOAM-1.4.1 with Intel C++ version 10.0 you will need to apply the patch I posted in thread http://www.cfd-online.com/cgi-bin/Op...w.cgi?126/5122 |
|
August 31, 2007, 07:00 |
And Done! I just finished comp
|
#11 |
Senior Member
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21 |
And Done! I just finished compiling OF 1.4.1 from scratch on Ubuntu Feisty Fawn 64-bit edition. I built binutils, then gcc and then paraview and finally OpenFOAM. Went very nicely. Hardware is my laptop Intel Core 2 duo - 2 GB RAM - Intel GMA 950 Graphics. This would not have been possible without the beautiful HOWTO on the wiki page[1]. Many thanks to the author!
[1] http://openfoamwiki.net/index.php/Ho...mpile_OpenFOAM |
|
February 20, 2008, 18:01 |
Hi,
I need to access the do
|
#12 |
New Member
isabelle choquet
Join Date: Mar 2009
Location: trollhättan, västra götaland, sweden
Posts: 3
Rep Power: 17 |
Hi,
I need to access the document "How to compile OpenFOAM". As the wiki server is now down, is there another place to find it ? Thanks, Isabelle |
|
February 20, 2008, 23:44 |
If you google search for the p
|
#13 |
Senior Member
Michael Jaworski
Join Date: Mar 2009
Location: Champaign, IL, USA
Posts: 126
Rep Power: 17 |
If you google search for the page and click:cached copy, you'll get something like this:
http://72.14.205.104/search?q=cache:K9Hgdkq7GbYJ:openfoamwiki.net/index.php/Howt o_compile_OpenFOAM+http://openfoamwiki.net/index.php/Ho..._OpenFOAM&hl=e n&gl=us&strip=1 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
NEW failure to compile redistributeMeshPar | pasinari | OpenFOAM Bugs | 2 | December 31, 2007 04:56 |
Compiling redistributeMeshPar | ueno | OpenFOAM Bugs | 3 | June 11, 2007 08:56 |
help me power failure!!! | haiduc | FLUENT | 4 | May 24, 2007 08:06 |
Non slip failure | Harish | Main CFD Forum | 0 | March 25, 2006 23:28 |
Failure of CFD ? | Lim | Main CFD Forum | 2 | February 5, 2003 10:56 |