|
[Sponsors] |
July 21, 2016, 05:04 |
undefined reference
|
#1 |
New Member
DANG
Join Date: Apr 2016
Location: Lyon 1, France
Posts: 26
Rep Power: 10 |
Hi Foamers
I tried to develop a new library, but some strange linking errors appeared: /platformsnux64GccDPInt64OptbbPBE.so: undefined reference to `Foam::messageStream::masterStream(int)' /platformsnux64GccDPInt64OptbbPBE.so: undefined reference to `Foam::reduce(double&, Foam::minOp<double> const&, int, int)' /platformsnux64GccDPInt64OptbbPBE.so: undefined reference to `Foam::HashTableCore::canonicalSize(int)' /platformsnux64GccDPInt64OptbbPBE.so: undefined reference to `Foam::PstreamBuffers::PstreamBuffers(Foam::UPstre am::commsTypes, int, int, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)' /platformsnux64GccDPInt64OptbbPBE.so: undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&, int, int)' /platformsnux64GccDPInt64OptbbPBE.so: undefined reference to `Foam::UIPstream::read(Foam::UPstream::commsTypes, int, char*, long, int, int)' /platformsnux64GccDPInt64OptbbPBE.so: undefined reference to `Foam::UPstream::waitRequests(int)' platformsnux64GccDPInt64OptbbPBE.so: undefined reference to `Foam::UOPstream::write(Foam::UPstream::commsTypes , int, char const*, long, int, int)' collect2: error: ld returned 1 exit status I am exhausted. I really appreciate your input and help. Best regards, |
|
July 21, 2016, 07:27 |
|
#2 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17 |
I am afraid, it is not easy for anyone here to help you without giving more details about your code. The problem is basically linking issue or problem with your OpenFOAM installation.
|
|
July 21, 2016, 09:34 |
|
#3 |
New Member
DANG
Join Date: Apr 2016
Location: Lyon 1, France
Posts: 26
Rep Power: 10 |
Hi Hassan,
Glad to have you here. Basically, I was trying to use a PBE solver that was released at Github: https://github.com/robertsawko/OpenPBE These errors happend when I was installing (compiling and linking) it. I have trying hard to solve it, but still failed. I was curious what kind of reasons lead to the errors. I reported the errors to the developer, but got no responses yet. Could you please have a look at your convenience and give some help? Best regards, |
|
July 21, 2016, 10:43 |
|
#4 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17 |
Hello,
I installed on my machine and I run the validation case using ``PBEFoam``. It worked fine. When exactly does this error appear? |
|
July 21, 2016, 10:56 |
|
#5 |
New Member
DANG
Join Date: Apr 2016
Location: Lyon 1, France
Posts: 26
Rep Power: 10 |
Hello Hassan,
I have posted my compiling and linking processes at: https://github.com/robertsawko/OpenPBE/issues/18 Could you take a look and see if you can find my origin of errors? By the way, could you please share your installing steps? Really appreciate! Best regards, |
|
July 21, 2016, 10:59 |
interFoam
|
#6 |
New Member
youssef morghi
Join Date: Jul 2016
Posts: 2
Rep Power: 0 |
Hi
i hun interFoam solver and i have this result and stay going like this doesnt converge if some one know why Phase-1 volume fraction = 1.2403e-06 Min(alpha1) = 0 Max(alpha1) =1 ,,,,, Phase-1 volume fraction = 2.62429e-06 Min(alpha1) = 0 Max(alpha1) = 1 Phase-1 volume fraction = 4.17437e-06 Min(alpha1) = 0 Max(alpha1) = 1 Phase-1 volume fraction = 4.17437e-06 Min(alpha1) = -3.41753e-06 Max(alpha1) = 1 Phase-1 volume fraction = 5.87017e-06 Min(alpha1) = -2.97194e-06 Max(alpha1) = 1 Phase-1 volume fraction = 5.87016e-06 Min(alpha1) = -4.20485e-06 Max(alpha1) = 1 Phase-1 volume fraction = 7.58627e-06 Min(alpha1) = -3.92262e-06 Max(alpha1) = 1 Phase-1 volume fraction = 7.58627e-06 Min(alpha1) = -0.000100555 Max(alpha1) = 1 |
|
July 21, 2016, 11:23 |
|
#7 | |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17 |
Quote:
|
||
July 21, 2016, 11:25 |
|
#8 | |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17 |
Quote:
|
||
July 21, 2016, 11:45 |
|
#9 | ||
New Member
DANG
Join Date: Apr 2016
Location: Lyon 1, France
Posts: 26
Rep Power: 10 |
Hello Hassan
Yes, I have recompiled the openfoam. But still failed... Could you mind telling me which verion of OF do you use? I have three versions of OF installed on my machine (don't know if this spoils). The OS of my computer is Ubuntu LTS 16.04. Best regards, Quote:
Quote:
|
|||
July 21, 2016, 11:54 |
|
#10 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17 |
I tested it on Ubuntu 14.04LTS and OpenFOAM-3.0 (pre-compiled version). There is no problem to have multiply versions of OF if your are sourcing the right version. Apart from OpenPBE, is your installation working fine?
|
|
July 21, 2016, 12:03 |
|
#11 |
New Member
DANG
Join Date: Apr 2016
Location: Lyon 1, France
Posts: 26
Rep Power: 10 |
My openfoam installation works fine for all the other applications.
What do you mean by "pre-compiled" version? Do you mean it is unpacked OF source code folder? The problem struggled me over almost 2 weeks. I really exhausted. Do you have any ideas or suggestions as to work around the problem in my case? Really Appreciate your input! |
|
July 21, 2016, 13:41 |
|
#12 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
In the github you provided it seems OF version 3.0 is needed. OpenFOAM had some fundamental changes in some of the version and most of the utilities will not be compatible if you use the wrong generation of OF.
Also you need Eigen 3 but the errors seem to be from OF. |
|
July 22, 2016, 04:28 |
|
#13 | |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17 |
Quote:
Based on your report in Github, you managed to install all the prerequisites successfully, that is why I though it is maybe related to OF installation. |
||
July 22, 2016, 06:01 |
|
#14 | |
New Member
DANG
Join Date: Apr 2016
Location: Lyon 1, France
Posts: 26
Rep Power: 10 |
Quote:
I have OF3.0.1 on my laptop. So, I feel strange why it fails on my workstation. Do you have any suggestions to get the reasons why it sucks on my workstation? Best regards, |
||
July 22, 2016, 06:09 |
|
#15 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17 |
Maybe it is related to Ubuntu 16.04 LTS, because I think pre-compiled OF-3 does not support Ubuntu 16.04
|
|
July 22, 2016, 10:57 |
|
#16 | |
New Member
DANG
Join Date: Apr 2016
Location: Lyon 1, France
Posts: 26
Rep Power: 10 |
Quote:
I came to agree with you that is is possibly casued by Ubuntu sys. By the way, could you hint how to run the validation case? I have just install PyFoam. But I have no idea as to how to use pyFoam. Best regards, |
||
July 22, 2016, 11:04 |
|
#17 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17 |
There is a code called setupCass.py in galinat just run it. This code creates few cases and it uses pyFoam
|
|
July 22, 2016, 11:49 |
|
#18 | |
New Member
DANG
Join Date: Apr 2016
Location: Lyon 1, France
Posts: 26
Rep Power: 10 |
Quote:
How could i run the cases such as re6400NC10 re6400NC20 ... I tried to use pyFoamRunner.py, but failed. Do I need to write pyFoam script to run them? Thanks! Best regards, |
||
July 22, 2016, 12:26 |
|
#19 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17 |
I run blockMesh then the solver as any OpenFOAM case. Personally, I don't use pyFoam
|
|
July 24, 2016, 10:00 |
|
#20 |
New Member
DANG
Join Date: Apr 2016
Location: Lyon 1, France
Posts: 26
Rep Power: 10 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Second Derivative Zero - Boundary Condition | fu-ki-pa | OpenFOAM | 11 | March 27, 2021 04:28 |
LEMOS InflowGenerator | r_gordon | OpenFOAM Running, Solving & CFD | 103 | December 18, 2018 00:58 |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 12:38 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 19:08 |
G95 + CGNS | Bruno | Main CFD Forum | 1 | January 30, 2007 00:34 |