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

SparceImage v1.7.x Issue on MAC OS X

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2014, 12:07
Default SparceImage v1.7.x Issue on MAC OS X
  #1
New Member
 
Remi Carmi
Join Date: Jul 2014
Posts: 15
Rep Power: 11
rcarmi is on a distinguished road
Hi,

I tried to compile OpenFOAM v1.7.x that I downloaded here

http://sourceforge.net/projects/macopenfoam/files/

After downloading it I copied it in my main directory ~/carmi.

I mounted the disk (double click on it).

I use the following command in my terminal :
ln -sf /Volumes/Mac-OF-1.7.x OpenFOAM
cd OpenFOAM
ln -sf ~/Documents/OF-User `whoami`-1.7.x


I edited my profile : by adding
source . ~/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc

I close the terminal app

Nothing happens.

I try then to do :
cd OpenFOAM/OpenFOAM-1.7.x/
wcleanAll
source ./etc/bashrc

then
./Allwmake
Did not work. I try to recompile a second time and still this error at the end
"make: Target `application' not remade because of errors."

The first error in the log file is :
"ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [/Users/Carmi/OpenFOAM/OpenFOAM-1.7.x/applications/bin/darwinIntel64DPOpt/compressibleInterFoam] Error 1"


The output is in the txt file.


Please help!

Thank you a lot
Attached Files
File Type: txt CR.txt (56.2 KB, 0 views)
rcarmi is offline   Reply With Quote

Old   August 12, 2014, 14:59
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by rcarmi View Post
Hi,

I tried to compile OpenFOAM v1.7.x that I downloaded here

http://sourceforge.net/projects/macopenfoam/files/

After downloading it I copied it in my main directory ~/carmi.

I mounted the disk (double click on it).

I use the following command in my terminal :
ln -sf /Volumes/Mac-OF-1.7.x OpenFOAM
cd OpenFOAM
ln -sf ~/Documents/OF-User `whoami`-1.7.x


I edited my profile : by adding
source . ~/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc

I close the terminal app

Nothing happens.

I try then to do :
cd OpenFOAM/OpenFOAM-1.7.x/
wcleanAll
source ./etc/bashrc

then
./Allwmake
Did not work. I try to recompile a second time and still this error at the end
"make: Target `application' not remade because of errors."

The first error in the log file is :
"ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [/Users/Carmi/OpenFOAM/OpenFOAM-1.7.x/applications/bin/darwinIntel64DPOpt/compressibleInterFoam] Error 1"


The output is in the txt file.


Please help!

Thank you a lot
Do you really need 1.7? I'd be very surprised if that image still works as it was probably done for a version of Mac OS X that is 2 or 3 generations away.

Plus: you're mixing the 1.7.x and the 2.0.x-version in the commands you use

The latest image of a foam-version hat I know of (there may be others) is found at https://sourceforge.net/projects/ope...am-extend-3.1/ (but I haven't used it. I compile my Foam myself)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 13, 2014, 12:19
Default SparceImage v1.7.x Issue on MAC OS X
  #3
New Member
 
Remi Carmi
Join Date: Jul 2014
Posts: 15
Rep Power: 11
rcarmi is on a distinguished road
Thanks for your quick response.

I know that there are more recent versions. I am currently using (and it works just fine) the OF.2.3

I need the version 1.7 because I am trying to use IHFOAM and it encounters some errors on OF.2.3.

For the typo in the commands, it is a copy/paste mistake. I meant 1.7.x.

Thanks again
rcarmi is offline   Reply With Quote

Old   August 13, 2014, 22:39
Default Issue with OF.2.2.2
  #4
New Member
 
Remi Carmi
Join Date: Jul 2014
Posts: 15
Rep Power: 11
rcarmi is on a distinguished road
I switch to version 2.2.2 which works fine with IHFOAM.

I am trying to compile a parallel example but it does not work.

The reason is I have some "could not open file" errors when I compile OF2.2.2


wmake libso mpi
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file UOPwrite.C
Making dependency list for source file UIPread.C
Making dependency list for source file UPstream.C
Making dependency list for source file PstreamGlobals.C
could not open file omp.h for source file UIPread.C
could not open file omp.h for source file UOPwrite.C
could not open file omp.h for source file UPstream.C
could not open file omp.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/pmpicxx.h for source file UIPread.C
could not open file ompi/mpi/cxx/constants.h for source file UIPread.C
could not open file ompi/mpi/cxx/functions.h for source file UIPread.C
could not open file ompi/mpi/cxx/pmpicxx.h for source file UPstream.C
could not open file ompi/mpi/cxx/datatype.h for source file UIPread.C
could not open file ompi/mpi/cxx/constants.h for source file UPstream.C
could not open file ompi/mpi/cxx/functions.h for source file UPstream.C
could not open file ompi/mpi/cxx/datatype.h for source file UPstream.C
could not open file ompi/mpi/cxx/pmpicxx.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/constants.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/functions.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/pmpicxx.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/datatype.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/constants.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/functions.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/datatype.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/exception.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/exception.h for source file UPstream.C
could not open file ompi/mpi/cxx/op.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/exception.h for source file UIPread.C
could not open file ompi/mpi/cxx/op.h for source file UPstream.C
could not open file ompi/mpi/cxx/status.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/op.h for source file UIPread.C
could not open file ompi/mpi/cxx/request.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/status.h for source file UIPread.C
could not open file ompi/mpi/cxx/status.h for source file UPstream.C
could not open file ompi/mpi/cxx/group.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/request.h for source file UIPread.C
could not open file ompi/mpi/cxx/request.h for source file UPstream.C
could not open file ompi/mpi/cxx/comm.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/win.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/group.h for source file UPstream.C
could not open file ompi/mpi/cxx/file.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/comm.h for source file UPstream.C
could not open file ompi/mpi/cxx/errhandler.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/win.h for source file UPstream.C
could not open file ompi/mpi/cxx/intracomm.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/file.h for source file UPstream.C
could not open file ompi/mpi/cxx/topology.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/errhandler.h for source file UPstream.C
could not open file ompi/mpi/cxx/intercomm.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/intracomm.h for source file UPstream.C
could not open file ompi/mpi/cxx/info.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/topology.h for source file UPstream.C
could not open file ompi/mpi/cxx/intercomm.h for source file UPstream.C
could not open file ompi/mpi/cxx/info.h for source file UPstream.C
could not open file ompi/mpi/cxx/group.h for source file UIPread.C
could not open file ompi/mpi/cxx/comm.h for source file UIPread.C
could not open file ompi/mpi/cxx/win.h for source file UIPread.C
could not open file ompi/mpi/cxx/file.h for source file UIPread.C
could not open file ompi/mpi/cxx/exception.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/errhandler.h for source file UIPread.C
could not open file ompi/mpi/cxx/op.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/status.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/request.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/intracomm.h for source file UIPread.C
could not open file ompi/mpi/cxx/group.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/topology.h for source file UIPread.C
could not open file ompi/mpi/cxx/comm.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/win.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/intercomm.h for source file UIPread.C
could not open file ompi/mpi/cxx/info.h for source file UIPread.C
could not open file ompi/mpi/cxx/file.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/errhandler.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/intracomm.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/topology.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/intercomm.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/info.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/pop_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/pgroup_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/pop_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/pstatus_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/pgroup_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/pstatus_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/prequest_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/datatype_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/functions_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/pop_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/request_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/pgroup_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/comm_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/pstatus_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/intracomm_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/prequest_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/topology_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/datatype_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/intercomm_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/group_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/functions_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/op_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/request_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/comm_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/errhandler_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/intracomm_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/status_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/topology_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/info_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/intercomm_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/win_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/file_inln.h for source file UPstream.C
could not open file ompi/mpi/cxx/group_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/op_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/errhandler_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/prequest_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/status_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/datatype_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/functions_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/info_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/request_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/win_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/comm_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/pop_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/file_inln.h for source file UIPread.C
could not open file ompi/mpi/cxx/intracomm_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/topology_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/intercomm_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/group_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/op_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/errhandler_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/status_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/info_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/win_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/pgroup_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/file_inln.h for source file PstreamGlobals.C
could not open file ompi/mpi/cxx/pstatus_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/prequest_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/datatype_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/functions_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/request_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/comm_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/intracomm_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/topology_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/intercomm_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/group_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/op_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/errhandler_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/status_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/info_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/win_inln.h for source file UOPwrite.C
could not open file ompi/mpi/cxx/file_inln.h for source file UOPwrite.C



And further :


wmake libso ptscotchDecomp
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file ptscotchDecomp.C
could not open file omp.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/pmpicxx.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/constants.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/functions.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/datatype.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/exception.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/op.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/status.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/request.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/group.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/comm.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/win.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/file.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/errhandler.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/intracomm.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/topology.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/intercomm.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/info.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/pop_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/pgroup_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/pstatus_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/prequest_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/datatype_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/functions_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/request_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/comm_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/intracomm_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/topology_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/intercomm_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/group_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/op_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/errhandler_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/status_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/info_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/win_inln.h for source file ptscotchDecomp.C
could not open file ompi/mpi/cxx/file_inln.h for source file ptscotchDecomp.C
could not open file ptscotch.h for source file ptscotchDecomp.C
SOURCE=ptscotchDecomp.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -I/usr/local/include -I/include -I/Users/Carmi/OpenFOAM/ThirdParty-2.2.2/platforms/darwinIntel64Gcc46/scotch_6.0.0/include/openmpi-system -I/usr/include/scotch -I../decompositionMethods/lnInclude -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOptSYSTEMOPENMPI/ptscotchDecomp.o
ptscotchDecomp.C: In member function 'Foam::label Foam:tscotchDecomp::decompose(const Foam::fileName&, int, const int*, int, const int*, const scalarField&, Foam::List<int>&) const':
ptscotchDecomp.C:551:39: warning: use of old-style cast [-Wold-style-cast]
ptscotchDecomp.C:551:39: warning: use of old-style cast [-Wold-style-cast]
ld: warning: directory not found for option '-L/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/platforms/darwinIntel64Gcc46DPOptSYSTEMOPENMPI/lib'
ld: warning: directory not found for option '-L/lib'
ld: library not found for -lptscotch
collect2: ld returned 1 exit status
make: *** [/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-system/libptscotchDecomp.dylib] Error 1
+ wmake libso decompositionMethods


This is the function I try to use to parallel.


Can somebody help me fix that?

Thank you a lot.

I tried increasing the number ulimit but and recompile the error persisted.

Thanks

Remi
rcarmi is offline   Reply With Quote

Old   August 14, 2014, 06:42
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by rcarmi View Post
I switch to version 2.2.2 which works fine with IHFOAM.

I am trying to compile a parallel example but it does not work.

The reason is I have some "could not open file" errors when I compile OF2.2.2



This is the function I try to use to parallel.


Can somebody help me fix that?

Thank you a lot.

I tried increasing the number ulimit but and recompile the error persisted.

Thanks

Remi
Which steps from http://openfoamwiki.net/index.php/In...OpenFOAM_2.2.2 did you already successfully apply? Or which instructions/patches are you using?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider 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
Extend Project 1.6-ext Binary Release for Mac OS X hjasak OpenFOAM Announcements from Other Sources 26 November 5, 2013 16:50
Is it a good idea to use OpenFoam on a Mac (OS 10.7.5) or on Windows7? bzz77 OpenFOAM Installation 4 November 21, 2012 17:06
2.0.x on Mac OSX niklas OpenFOAM Installation 74 March 28, 2012 16:46
Meshing related issue in Flow EFD appu FloEFD, FloWorks & FloTHERM 1 May 22, 2011 08:27
OpenFOAM-1.7.x MAC OS X foamToTecplot360 issue haewon OpenFOAM Installation 0 November 14, 2010 02:05


All times are GMT -4. The time now is 18:08.