|
[Sponsors] |
July 20, 2011, 04:24 |
OpenFOAM1.7.1
|
#1 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 |
I'm trying to compile Openfoam 1.7.1 in a Altix UV with gcc 4.5.3 and this error appears and the end of the compilation:
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lOpenFOAM collect2: ld returned 1 exit status make[2]: *** [/prod/OPENFOAM1.7.1/OpenFOAM-1.7.1-SGI/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT] Error 1 make[2]: Leaving directory `/prod/OPENFOAM1.7.1/OpenFOAM-1.7.1-SGI/OpenFOAM-1.7.1/applications/utilities/thermophysical/mixtureAdiabaticFlameT' make[1]: *** [mixtureAdiabaticFlameT] Error 2 make[1]: Target `application' not remade because of errors. make[1]: Leaving directory `/prod/OPENFOAM1.7.1/OpenFOAM-1.7.1-SGI/OpenFOAM-1.7.1/applications/utilities/thermophysical' make: *** [thermophysical] Error 2 make: Target `application' not remade because of errors. and in applications/bin/linux.../ there is nothing... Does anyone can help me? |
|
July 20, 2011, 04:42 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Pere!
OK, you better post the log file... run Allwmake like this: Code:
./Allwmake > make.log 2>&1 Code:
tar -czf make.log.tar.gz make.log Usually the first error is the one you should be looking for. Best regards, Bruno
__________________
|
|
July 20, 2011, 08:04 |
|
#3 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 |
ok here is the log....
|
|
July 20, 2011, 08:20 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Pere,
OK, you've done a few modifications to Allwmake and settings.sh that sort-of damaged the normal build process of OpenFOAM. In other words:
Bruno
__________________
|
|
July 21, 2011, 04:35 |
|
#5 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 |
Hi,
1..... settings.sh is attached... 2......I've modified Allwmake in Pstream ....I attach it... This was because I want to use mpt-2.03 and an error appears before that says dummy libraries can't be used in parallel mode. 3...No I don't modified nothing in Pstream lines. |
|
July 21, 2011, 04:37 |
|
#6 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 |
sorry I attash it this time
|
|
July 21, 2011, 04:40 |
|
#7 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 |
Allwmake in /Pstream
|
|
July 21, 2011, 05:23 |
|
#8 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 |
in
/prod/OPENFOAM1.7.1/OpenFOAM-1.7.1-SGI/OpenFOAM-1.7.1/wmake/rules/linux64Gcc/mplibSGIMPI I've put PFLAGS = -DOMPI_SKIP_MPICXX PINC = -I$(MPI_ARCH_PATH)/include PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi |
|
July 21, 2011, 06:10 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Pere,
There are some minor details to be fixed, but this way we'll get closer to the real problem. So here are the fixes I propose:
Good luck! Bruno
__________________
|
|
July 22, 2011, 04:24 |
|
#10 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 |
Ok I've compiled once again and :
|
|
July 22, 2011, 05:01 |
|
#11 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 |
if I made wmake libso OpenFOAM :
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lPstream collect2: ld returned 1 exit status make: *** [/prod/OPENFOAM1.7.1/OpenFOAM-1.7.1-SGI/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so] Error 1 |
|
July 22, 2011, 08:21 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Pere,
According to the log, you've only done part of the changes I wrote about But I also forgot to write down an important step: start a new terminal! Otherwise, most things will still be the same as before. So:
Bruno
__________________
|
|
July 25, 2011, 07:32 |
|
#13 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 |
Ok now I think I've made tha changes you tell me...but the error is the same:
|
|
July 25, 2011, 07:37 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
You changed both "wmake libso mpi" to "dummy" Only the first one should be changed...
__________________
|
|
July 26, 2011, 04:37 |
|
#15 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 |
Ok here it is:
|
|
July 26, 2011, 05:02 |
|
#16 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Pere,
OK, I think now I know what the problem is, or so I hope. Update the files c++ and c at "wmake/rules/linux64Gcc/" with these ones:
And if it didn't fix the problem, undo the previous change and then try this:
Good luck! Bruno
__________________
|
|
July 26, 2011, 05:07 |
|
#17 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 |
no I'm using gcc...
|
|
July 26, 2011, 05:11 |
|
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Then both possible solutions should still apply. If you were using Icc, then only the second one would apply.
__________________
|
|
July 26, 2011, 05:12 |
|
#19 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 |
ok thanks a lot .... I 'm gonna try...
|
|
July 27, 2011, 08:25 |
|
#20 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 |
ok make5.log is chaning c and c++ and make6.log is changing general file.... I think the error is the same as it was before in the two cases.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
reactingFoam in openfoam1.7.1 | Farshad_Noravesh | OpenFOAM | 10 | November 30, 2010 03:38 |
A New Model Implementation! | T.D. | OpenFOAM Running, Solving & CFD | 12 | September 13, 2010 10:09 |