|
[Sponsors] |
![]() |
![]() |
#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? |
|
![]() |
![]() |
![]() |
![]() |
#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
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 ![]() |
ok here is the log....
|
|
![]() |
![]() |
![]() |
![]() |
#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
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#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. |
|
![]() |
![]() |
![]() |
![]() |
#6 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 ![]() |
sorry I attash it this time
|
|
![]() |
![]() |
![]() |
![]() |
#7 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 ![]() |
Allwmake in /Pstream
|
|
![]() |
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
![]() |
#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
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#10 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 ![]() |
Ok I've compiled once again and :
|
|
![]() |
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
![]() |
#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
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#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:
|
|
![]() |
![]() |
![]() |
![]() |
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
![]() ![]()
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#15 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 ![]() |
Ok here it is:
|
|
![]() |
![]() |
![]() |
![]() |
#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
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#17 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 ![]() |
no I'm using gcc...
|
|
![]() |
![]() |
![]() |
![]() |
#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.
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#19 |
Member
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15 ![]() |
ok thanks a lot .... I 'm gonna try...
|
|
![]() |
![]() |
![]() |
![]() |
#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.
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |