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

Failure to compile redistributeMeshPar

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 22, 2007, 16:49
Default Compilation of redistributeMes
  #1
Member
 
David P. Schmidt
Join Date: Mar 2009
Posts: 70
Rep Power: 7
schmidt_d is on a distinguished road
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
schmidt_d is offline   Reply With Quote

Old   August 22, 2007, 16:52
Default Quoting from Mattijs in an ear
  #2
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 697
Rep Power: 10
msrinath80 is on a distinguished road
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
msrinath80 is offline   Reply With Quote

Old   August 23, 2007, 05:48
Default Srinath, Thanks for the sugge
  #3
Member
 
David P. Schmidt
Join Date: Mar 2009
Posts: 70
Rep Power: 7
schmidt_d is on a distinguished road
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
schmidt_d is offline   Reply With Quote

Old   August 23, 2007, 06:56
Default Looks like a metis related iss
  #4
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 15
mattijs is on a distinguished road
Looks like a metis related issue. 'ldd $FOAM_LIBBIN/*' throws up libGKlib only in libmetis.so.
mattijs is offline   Reply With Quote

Old   August 27, 2007, 10:36
Default Mattijs, You are probably cor
  #5
Member
 
David P. Schmidt
Join Date: Mar 2009
Posts: 70
Rep Power: 7
schmidt_d is on a distinguished road
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
schmidt_d is offline   Reply With Quote

Old   August 28, 2007, 15:29
Default Closure: After spending four
  #6
Member
 
David P. Schmidt
Join Date: Mar 2009
Posts: 70
Rep Power: 7
schmidt_d is on a distinguished road
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
schmidt_d is offline   Reply With Quote

Old   August 28, 2007, 17:44
Default 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: 697
Rep Power: 10
msrinath80 is on a distinguished road
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.
msrinath80 is offline   Reply With Quote

Old   August 28, 2007, 20:48
Default It can be done with a little t
  #8
Member
 
David P. Schmidt
Join Date: Mar 2009
Posts: 70
Rep Power: 7
schmidt_d is on a distinguished road
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
schmidt_d is offline   Reply With Quote

Old   August 29, 2007, 10:50
Default Has anybody experience in comp
  #9
Senior Member
 
Jens Klostermann
Join Date: Mar 2009
Posts: 117
Rep Power: 7
jens_klostermann is on a distinguished road
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
jens_klostermann is offline   Reply With Quote

Old   August 29, 2007, 11:34
Default I have successfully compiled a
  #10
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 12
henry is on a distinguished road
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
henry is offline   Reply With Quote

Old   August 31, 2007, 07:00
Default And Done! I just finished comp
  #11
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 697
Rep Power: 10
msrinath80 is on a distinguished road
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
msrinath80 is offline   Reply With Quote

Old   February 20, 2008, 18:01
Default 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: 7
isabelle is on a distinguished road
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
isabelle is offline   Reply With Quote

Old   February 20, 2008, 23:44
Default If you google search for the p
  #13
Senior Member
 
Michael Jaworski
Join Date: Mar 2009
Location: Champaign, IL, USA
Posts: 126
Rep Power: 7
mike_jaworski is on a distinguished road
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
mike_jaworski 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
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


All times are GMT -4. The time now is 19:34.