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

OpenFOAM1.7.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2011, 03:24
Default OpenFOAM1.7.1
  #1
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
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?
pere is offline   Reply With Quote

Old   July 20, 2011, 03:42
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
Hi Pere!

OK, you better post the log file... run Allwmake like this:
Code:
./Allwmake > make.log 2>&1
Then you can pack the file like this:
Code:
tar -czf make.log.tar.gz make.log
Then attach make.log.tar.gz on your next post.

Usually the first error is the one you should be looking for.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 20, 2011, 07:04
Default
  #3
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
ok here is the log....
Attached Files
File Type: gz make.log.tar.gz (16.0 KB, 1 views)
pere is offline   Reply With Quote

Old   July 20, 2011, 07:20
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 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:
  1. The MPI version of libPstream is being sent to:
    Code:
    /prod/OPENFOAM1.7.1/OpenFOAM-1.7.1-SGI/OpenFOAM-1.7.1/mpt-2.03/lib/libPstream.so
    When it should go to:
    Code:
    /prod/OPENFOAM1.7.1/OpenFOAM-1.7.1-SGI/OpenFOAM-1.7.1/lib/linux64GccDPOpt/mpt-2.03/libPstream.so
  2. The dummy version of libPstream.so isn't being built. This might be the reason why libOpenFOAM.so isn't being built either.
OK, lets try this:
  1. Please attach your modified settings.sh file on your next post. This way it'll be easier to spot anything that might be damaging things.
  2. If possible, put Allwmake for Pstream the way it was originally.
  3. Last but not least, did you modify anything on any of the Pstream files?
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 21, 2011, 03:35
Default
  #5
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
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.
pere is offline   Reply With Quote

Old   July 21, 2011, 03:37
Default
  #6
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
sorry I attash it this time
Attached Files
File Type: gz settings.sh.tar.gz (3.1 KB, 1 views)
pere is offline   Reply With Quote

Old   July 21, 2011, 03:40
Default
  #7
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
Allwmake in /Pstream
Attached Files
File Type: gz Allwmake.tar.gz (364 Bytes, 1 views)
pere is offline   Reply With Quote

Old   July 21, 2011, 04:23
Default
  #8
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
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
pere is offline   Reply With Quote

Old   July 21, 2011, 05:10
Default
  #9
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 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:
  1. In settings.sh, in the part about SGIMPI, change it to this:
    Code:
    SGIMPI)
        
        export MPI_ARCH_PATH=/prod/OPENFOAM1.7.1/OpenFOAM-1.7.1-SGI/OpenFOAM-1.7.1/mpt-2.03
    
        _foamAddPath    $MPI_ARCH_PATH/bin
        _foamAddLib     $MPI_ARCH_PATH/lib
        _foamAddMan     $MPI_ARCH_PATH/man
    
        export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/mpt-2.03
    
        ;;
    I'm assuming you have SGIMPI installed in the folder indicated by MPI_ARCH_PATH.
  2. In that Allwmake, change it back to the way it was. I understand that it was giving you problems, but for now lets do it the way OpenFOAM needs things to be.
  3. In mplibSGIMPI, remove the option "-DOMPI_SKIP_MPICXX". This is something specific for OpenMPI and I suppose it shouldn't be used for SGIMPI.
Now run the main Allwmake again the same way as before and we'll see if it builds or not.

Good luck!
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 22, 2011, 03:24
Default
  #10
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
Ok I've compiled once again and :
Attached Files
File Type: gz make.log2.tar.gz (16.2 KB, 2 views)
pere is offline   Reply With Quote

Old   July 22, 2011, 04:01
Default
  #11
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
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
pere is offline   Reply With Quote

Old   July 22, 2011, 07:21
Default
  #12
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 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:
  1. start a new terminal and to start with a new environment;
  2. change Pstream's Allwmake back to the way it was, i.e. let it build the dummy version.
  3. run the main Allwmake once again.
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 25, 2011, 06:32
Default
  #13
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
Ok now I think I've made tha changes you tell me...but the error is the same:
Attached Files
File Type: gz make.log3.tar.gz (23.4 KB, 3 views)
pere is offline   Reply With Quote

Old   July 25, 2011, 06:37
Default
  #14
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
You changed both "wmake libso mpi" to "dummy" Only the first one should be changed...
__________________
wyldckat is offline   Reply With Quote

Old   July 26, 2011, 03:37
Default
  #15
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
Ok here it is:
Attached Files
File Type: gz make.log4.tar.gz (23.7 KB, 3 views)
pere is offline   Reply With Quote

Old   July 26, 2011, 04:02
Default
  #16
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 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:
Hopefully this will fix the problem. (Er, wait, you are using Icc, correct? If so, try the next fix.)

And if it didn't fix the problem, undo the previous change and then try this:
  1. Edit the general file at the rule folder for the compiler you've chosen;
  2. On the line that says:
    Code:
    PROJECT_LIBS = -l$(WM_PROJECT) -ldl
    Edit to also include the MPI:
    Code:
    PROJECT_LIBS = -l$(WM_PROJECT) -ldl -L/opt/sgi/mpt/mpt-2.03/lib -lmpi
    (Adapt where necessary.)
  3. Save and close.
Hopefully this will fix the problem, since the MPI library is directly indicated to be always used when linking!

Good luck!
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 26, 2011, 04:07
Default
  #17
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
no I'm using gcc...
pere is offline   Reply With Quote

Old   July 26, 2011, 04:11
Default
  #18
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
Quote:
Originally Posted by pere View Post
no I'm using gcc...
Then both possible solutions should still apply. If you were using Icc, then only the second one would apply.
__________________
wyldckat is offline   Reply With Quote

Old   July 26, 2011, 04:12
Default
  #19
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
ok thanks a lot .... I 'm gonna try...
pere is offline   Reply With Quote

Old   July 27, 2011, 07:25
Default
  #20
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
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.
pere is offline   Reply With Quote

Reply


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
reactingFoam in openfoam1.7.1 Farshad_Noravesh OpenFOAM 10 November 30, 2010 02:38
A New Model Implementation! T.D. OpenFOAM Running, Solving & CFD 12 September 13, 2010 09:09


All times are GMT -4. The time now is 11:27.