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

[foam-extend.org] Building from source Foam-extended 3.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2015, 06:15
Default Building from source Foam-extended 3.1
  #1
New Member
 
Michal
Join Date: Jul 2013
Location: Warsaw
Posts: 8
Rep Power: 12
kotu is on a distinguished road
Dear Community,
I'm trying to build from sources foam-extended 3.1.
Platform: Fedora 20, x86_64
ThirdParties were properly downloaded by Allwmake.firstinstall but I had to set up all env-vars and compile them manually.
I'm stuck with such an error:
...
Code:
+ wmake libso multiSolver
+ wmake libso solidModels
+ wmake libso dbns
+ wmake all solvers
/home/kotu/OpenFOAM/foam-extend-3.1/lib/linux64GccDPOpt/libfoam.so: undefined reference to `regcompA'
/home/kotu/OpenFOAM/foam-extend-3.1/lib/linux64GccDPOpt/libfoam.so: undefined reference to `regexecA'
/home/kotu/OpenFOAM/foam-extend-3.1/lib/linux64GccDPOpt/libfoam.so: undefined reference to `regfreeA'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/kotu/OpenFOAM/foam-extend-3.1/applications/bin/linux64GccDPOpt/laplacianFoam] Error 1
make[1]: *** [laplacianFoam] Error 2
/home/kotu/OpenFOAM/foam-extend-3.1/lib/linux64GccDPOpt/libfoam.so: undefined reference to `regcompA'
/home/kotu/OpenFOAM/foam-extend-3.1/lib/linux64GccDPOpt/libfoam.so: undefined reference to `regexecA'
/home/kotu/OpenFOAM/foam-extend-3.1/lib/linux64GccDPOpt/libfoam.so: undefined reference to `regfreeA'
collect2: error: ld returned 1 exit status
full log file in attachments. Can anyone send me a clue how to solve this problem ?
Attached Files
File Type: txt log.txt (71.2 KB, 2 views)
kotu is offline   Reply With Quote

Old   January 11, 2015, 12:51
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Michal,

I wanted to have a look into this myself, but I simply didn't manage to get enough time to test it.
Can you please detail the instructions you've followed and the steps you've taken to go around the problem you mentioned? Namely this one:
Quote:
Originally Posted by kotu View Post
ThirdParties were properly downloaded by Allwmake.firstinstall but I had to set up all env-vars and compile them manually.
I ask this because the error messages you're getting are really strange and my feeling is that you might have installed something that is interfering with the usual installation set-up.

edit: I've tested this now in a virtual machine with Fedora 20 and was not able to reproduce the same error.

Best regards,
Bruno
__________________

Last edited by wyldckat; January 11, 2015 at 15:45. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   January 12, 2015, 03:26
Default
  #3
New Member
 
Michal
Join Date: Jul 2013
Location: Warsaw
Posts: 8
Rep Power: 12
kotu is on a distinguished road
Greetings Bruno,
It must be something wrong with dependencies OF-ext requires installed on my Fedora 20. Maybe imcompatible version.
I have downloaded rpm package from https://openfoamwiki.net/index.php/I...oam-extend-3.1
and successfully installed it with
sudo yum localinstall foam-extend-3.1-3.1-1.fc20.x86_64.rpm.

I needed postCalc.o file, so I cd to my foam-extended dir installed with rpm package, and run ./Allwmake. Unfortunately the same problem happens as in logs above. I bet it is something wrong with version of utilities OF-ext requires, not thirdparties of OF-ext.
kotu is offline   Reply With Quote

Old   January 18, 2015, 14:45
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Michal,

This is indeed really strange. Perhaps your shell environment has loaded other OpenFOAM environments or even some other shell environment for another software toolbox?

By the way, what does the following command give you?
Code:
ls -l /etc/alternatives/ld
Does it give you a link to "/usr/bin/ld.bfd"?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   January 19, 2015, 02:02
Default
  #5
New Member
 
Michal
Join Date: Jul 2013
Location: Warsaw
Posts: 8
Rep Power: 12
kotu is on a distinguished road
Hi Bruno,
Yes, it does.
Code:
/etc/alternatives/ld -> /usr/bin/ld.bfd
I don't know whether it had any sense but I ldd both libs ( ldd libfoam.so) (this build from source and
this from rpm package) and outputs are exactly the same.
Best regards
Michal
kotu is offline   Reply With Quote

Old   January 19, 2015, 14:44
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Michal,

OK, then when in doubt, check where all pieces are coming from and which versions they are:
Code:
gcc --version
g++ --version
ld --version

which gcc
which g++
which ld

ls -l $(which gcc)
ls -l $(which g++)
ls -l $(which ld)
In addition, have you fully updated your Fedora 20 installation? I mean security updates and so on; I am not referring to an upgrade to Fedora 21 .

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   January 19, 2015, 15:21
Default
  #7
New Member
 
Michal
Join Date: Jul 2013
Location: Warsaw
Posts: 8
Rep Power: 12
kotu is on a distinguished road
Here's output:

gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-7)
g++ (GCC) 4.8.3 20140911 (Red Hat 4.8.3-7)
GNU ld version 2.23.2
which gcc: /usr/bin/gcc
which g++: /usr/bin/g++
which ld: /usr/bin/ld

-rwxr-xr-x. 2 root root 772672 Sep 11 13:24 /usr/bin/gcc
-rwxr-xr-x. 4 root root 772656 Sep 11 13:24 /usr/bin/g++
lrwxrwxrwx. 1 root root 20 Dec 12 2013 /usr/bin/ld -> /etc/alternatives/ld

Pretty standard I think.
Best Regards,
kotu is offline   Reply With Quote

Old   January 24, 2015, 13:28
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Michal,

Uhm, you didn't answer my last question, namely:
Quote:
Originally Posted by wyldckat View Post
In addition, have you fully updated your Fedora 20 installation? I mean security updates and so on; I am not referring to an upgrade to Fedora 21 .
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   January 26, 2015, 01:40
Default
  #9
New Member
 
Michal
Join Date: Jul 2013
Location: Warsaw
Posts: 8
Rep Power: 12
kotu is on a distinguished road
Dear Bruno,
I think yes. I perform every update instantly when OS gives me notification about.
Best regards
Michal
kotu is offline   Reply With Quote

Old   January 31, 2015, 07:00
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Michal,

OK, then it's time to do some more hard-core debugging on this issue. Please run the following commands:
Code:
cd $FOAM_SRC/OSspecific/POSIX

wmake libo

SOURCE=regExp.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200  -IlnInclude -I. -I$FOAM_SRC/foam/lnInclude -I$FOAM_SRC/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o regExp.E -E
The last command will have created a new file named "regExp.E". Now the problem is how you'll get this file to me, because the one I've gotten, even when compressed with bzip2, was larger than the allowed maximum file size of 100kB for attachments here on the forum... Ah, OK, run the following commands:
Code:
split -b 500K regExp.E regExp.E_
gzip regExp.E_*

pwd
The location of the compressed files is given by the last command.
Then attach to your next post the files "regExp.E_aa.gz", "regExp.E_ab.gz" and other similar ones.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
building, foam-extend-3.1


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
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 08:06
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[Other] How to use finite area method in official OpenFOAM 2.2.0? Detian Liu OpenFOAM Meshing & Mesh Conversion 4 November 3, 2015 03:04
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57


All times are GMT -4. The time now is 03:37.