|
[Sponsors] |
[foam-extend.org] Building from source Foam-extended 3.1 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 9, 2015, 07:15 |
Building from source Foam-extended 3.1
|
#1 |
New Member
Michal
Join Date: Jul 2013
Location: Warsaw
Posts: 8
Rep Power: 13 |
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 |
|
January 11, 2015, 13:51 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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:
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 16:45. Reason: see "edit:" |
||
January 12, 2015, 04:26 |
|
#3 |
New Member
Michal
Join Date: Jul 2013
Location: Warsaw
Posts: 8
Rep Power: 13 |
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. |
|
January 18, 2015, 15:45 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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 Best regards, Bruno |
|
January 19, 2015, 03:02 |
|
#5 |
New Member
Michal
Join Date: Jul 2013
Location: Warsaw
Posts: 8
Rep Power: 13 |
Hi Bruno,
Yes, it does. Code:
/etc/alternatives/ld -> /usr/bin/ld.bfd this from rpm package) and outputs are exactly the same. Best regards Michal |
|
January 19, 2015, 15:44 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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) Best regards, Bruno |
|
January 19, 2015, 16:21 |
|
#7 |
New Member
Michal
Join Date: Jul 2013
Location: Warsaw
Posts: 8
Rep Power: 13 |
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, |
|
January 26, 2015, 02:40 |
|
#9 |
New Member
Michal
Join Date: Jul 2013
Location: Warsaw
Posts: 8
Rep Power: 13 |
Dear Bruno,
I think yes. I perform every update instantly when OS gives me notification about. Best regards Michal |
|
January 31, 2015, 08:00 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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 Code:
split -b 500K regExp.E regExp.E_ gzip regExp.E_* pwd Then attach to your next post the files "regExp.E_aa.gz", "regExp.E_ab.gz" and other similar ones. Best regards, Bruno
__________________
|
|
Tags |
building, foam-extend-3.1 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 09:06 |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 10:07 |
[Other] How to use finite area method in official OpenFOAM 2.2.0? | Detian Liu | OpenFOAM Meshing & Mesh Conversion | 4 | November 3, 2015 04:04 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 10:17 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 11:57 |