CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Announcements from Other Sources (https://www.cfd-online.com/Forums/openfoam-news-announcements-other/)
-   -   Extend Project 1.6-ext Binary Release for Mac OS X (https://www.cfd-online.com/Forums/openfoam-news-announcements-other/82587-extend-project-1-6-ext-binary-release-mac-os-x.html)

hjasak November 29, 2010 09:52

Extend Project 1.6-ext Binary Release for Mac OS X
 
Binary release for Mac OS X

I have created a sparse disk image for OpenFOAM-1.6-ext and a Mac, available on Extend Sourceforge Download section.

This is what you do to use it:

1) download the dmg file
http://sourceforge.net/projects/openfoam-extend/files/ -> OpenFOAM-1.6-ext.dmg

2) double-click on it, to mount it
3) open a terminal and do the following

cd
mkdir OpenFOAM
cd OpenFOAM
ln -s /Volumes/OpenFOAM-1.6-ex .

and you are ready. Make yourself a run directory:

mkdir -p ~/OpenFOAM/<yourName>-1.6-ext/run

source the environment

. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc

and you are ready to run.

Please report success/failure.

Compiling OpenFOAM-1.6-ext on a Mac

If you want to compile from scratch, find yourself a Mac (Yum!) and install XCode. The next steps are:

1) download and install wget
2) download and install rpm
3) download and install git
4) sort out malloc header link

cd /usr/include/
sudo ln -s malloc/malloc.h .

5) sort out gmake

cd /usr/local/
sudo ln -s /usr/bin/make gmake

6) install Paraview from dmg: we will use Paraview reader

7) Create a Casename-sensitive disk image (~10 GB, to be safe) and link it as above. Into the link image do a git checkout into it

8) cd ~/OpenFOAM/OpenFOAM-1.6-ext/etc ; cp prefs.sh-EXAMPLE prefs.sh

9) source the environment and compile all. You are in business!

Hope you'll find this useful. Happy McFoaming,

Hrv

benk November 29, 2010 12:05

Hi Hrv, this is excellent!

I've tried the Binary release for Mac OS X on my Macbook (OS X 10.6.4).

Your setup instructions work but:

Every time I try to run a solver (my custom solvers as well as tutorials), I get the error message "Abort trap". The solvers compile without any problem but they don't run.

benk November 29, 2010 12:30

A bit more info:

When I try sudo "solverName"

I get a bit longer of an error message:
dyld: Library not loaded: libPstream.dylib
Referenced from: /Users/ben/OpenFOAM/ben-1.6-ext/applications/bin/darwinIntel64DPOpt/conjugateHeatFoam
Reason: image not found
Trace/BPT trap

Although it says "image not found" my OpenFOAM-1.6-ext image is mounted.

From the research that I've done, it might be a problem with DYLD_LIBRARY_PATH. When I type echo $DYLD_LIBRARY_PATH, this is what I get:

Code:

/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/scotch-5.1.10b/platforms/darwinIntel64DPOpt/lib:
/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMGridGen-1.0/platforms/darwinIntel64DPOpt/lib:
/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMetis-3.1.1/platforms/darwinIntel64DPOpt/lib:
/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/metis-5.0pre2/platforms/darwinIntel64DPOpt/lib:
/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/darwinIntel64DPOpt/lib:
/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/lib/darwinIntel64DPOpt/openmpi-system:-lopen-pal:-lopen-rte:-lmpi:-Wl,-multiply_defined,suppress:-Wl,-u,_munmap:
/Users/ben/OpenFOAM/ben-1.6-ext/lib/darwinIntel64DPOpt:
/Users/ben/OpenFOAM/site/1.6-ext/lib/darwinIntel64DPOpt:
/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/lib/darwinIntel64DPOpt:
/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/lib/darwinIntel64DPOpt/dummy

I'm not sure if this is the problem or not, but the part that I put in bold doesn't exist.

hjasak November 30, 2010 04:54

Heya,

Please make sure you've got an Intel Mac - I didn't do anything to support older PowerPC Macs.

Benk: do you have the correct link in your home directory? Try:

cd /Volumes/OpenFOAM-1.6-ext/src
cd ~/OpenFOAM/OpenFOAM-1.6-ext/etc
foamsrc
which icoFoam

All of this should report no errors. Re additional path in bold, I have no idea where it comes from - not one of mine. Also, do you have XCode installed? It is possible that it carries some non-standard libraries that FOAM relies on and it is on my machine.

We have ~10 reported successes on this so please don't give up. I'd like to get to the bottom of this.

Hrv

egp November 30, 2010 04:58

Ben,

What does 'which gcc' give you? If you use Hrv's package, you have to make sure to compile apps with the Xcode gcc, which is at 4.2.1.

If you have MacPorts installed with gcc 4.3, 4.4, or 4.5, you have to be careful, especially since etc/bashrc and etc/settings.sh set up some of the environment variables (e.g., WM_COMPILER) a bit differently than with 1.5-dev.

Note: my first pass at this was to copy $FOAM_TUTORIALS to $FOAM_RUN, and then test a few of the standard tutorials. Then, I compiled simpleSRFFoam, which promptly failed at runtime due to the fact that my gcc-4.3-mp was being used in preference over /usr/bin/gcc (4.2.1). After modifying my .profile, and wclean, wmake, simpleSRFFoam compiles and tutorial runs fine.

I suspect that this is your problem. Also, it is OK for the $FOAM_SITE_APPBIN and $FOAM_SITE_LIBBIN variables to point to non-existent directories. This is for site-specific libraries and applications that would be shared among a team or group.

Eric


Quote:

Originally Posted by benk (Post 285235)
A bit more info:

When I try sudo "solverName"

I get a bit longer of an error message:
dyld: Library not loaded: libPstream.dylib
Referenced from: /Users/ben/OpenFOAM/ben-1.6-ext/applications/bin/darwinIntel64DPOpt/conjugateHeatFoam
Reason: image not found
Trace/BPT trap

Although it says "image not found" my OpenFOAM-1.6-ext image is mounted.

From the research that I've done, it might be a problem with DYLD_LIBRARY_PATH. When I type echo $DYLD_LIBRARY_PATH, this is what I get:

Code:

/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/scotch-5.1.10b/platforms/darwinIntel64DPOpt/lib:
/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMGridGen-1.0/platforms/darwinIntel64DPOpt/lib:
/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMetis-3.1.1/platforms/darwinIntel64DPOpt/lib:
/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/metis-5.0pre2/platforms/darwinIntel64DPOpt/lib:
/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/darwinIntel64DPOpt/lib:
/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/lib/darwinIntel64DPOpt/openmpi-system:-lopen-pal:-lopen-rte:-lmpi:-Wl,-multiply_defined,suppress:-Wl,-u,_munmap:
/Users/ben/OpenFOAM/ben-1.6-ext/lib/darwinIntel64DPOpt:
/Users/ben/OpenFOAM/site/1.6-ext/lib/darwinIntel64DPOpt:
/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/lib/darwinIntel64DPOpt:
/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/lib/darwinIntel64DPOpt/dummy

I'm not sure if this is the problem or not, but the part that I put in bold doesn't exist.


benk November 30, 2010 08:58

Quote:

What does 'which gcc' give you? If you use Hrv's package, you have to make sure to compile apps with the Xcode gcc, which is at 4.2.1.
Aha! Everything looks to be working now.Thanks Hrv/Eric.

This was my problem. At one point I installed macports gcc.
which gcc gave: /opt/local/bin/gcc (I think normally it should be /usr/bin/gcc no?)
gcc --version gave: gcc (GCC) 4.3.4

when I changed the version: gcc_select gcc42
gcc --version now gives: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)

And my old 1.5-dev solver which uses the coupledFvScalarMatrix works in 1.6-ext!

Thanks again!

jhoepken December 3, 2010 12:06

First of all, thanks for the Mac support. I really appreciate this :)

But I have a question about the rpm support. How have you installed that package? If I try to compile that from source, configure complains
Code:

configure: error: missing required NSPR / NSS header
I have installed NSPR to /usr/local/include/nspr and if I call configure with
Code:

./configure CPPFLAGS="-I/usr/local/include/nspr"
, I still get the same error.

I really don't like the solution to install rpm via port install, since there are so many dependencies, including an old python version. Is there a work around, or have you installed the rpm package and its dependencies via macports?

Jens

bigphil December 8, 2010 10:46

Hi,


Well done on the release.

I am having trouble compiling OF-1.6-ext on my intel mac.
I am running leopard - OS X 10.5.8.

I am getting the following error when I try to compile the triSurface library:
Code:

# wmake libso

SOURCE=triSurface/interfaces/STL/readSTLASCII.L ; flex -+ -f $SOURCE ; mv lex.yy.cc Make/darwinIntel64DPOpt/readSTLASCII.C ; g++ -m64 -fPIC -DdarwinIntel64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40 -I/Users/philipcardiff/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/Users/philipcardiff/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/Users/philipcardiff/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -Ddarwin -c Make/darwinIntel64DPOpt/readSTLASCII.C -o Make/darwinIntel64DPOpt/readSTLASCII.o
SOURCE=triSurface/interfaces/OFF/writeOFF.C ;  g++ -m64 -fPIC -DdarwinIntel64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40 -I/Users/philipcardiff/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/Users/philipcardiff/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/Users/philipcardiff/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64DPOpt/writeOFF.o
In file included from /Users/philipcardiff/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/Istream.H:47,
                from /Users/philipcardiff/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/ISstream.H:41,
                from /Users/philipcardiff/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/IFstream.H:39,
                from triSurface/interfaces/STL/readSTLASCII.L:35:
/Users/philipcardiff/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/IOstream.H:61: error: ‘istream’ is already declared in this scope
lex.yy.cc: In member function ‘int STLLexer::lex()’:
lex.yy.cc:5474: error: ‘yy_current_buffer’ was not declared in this scope
lex.yy.cc:5495: warning: use of old-style cast
lex.yy.cc:5495: warning: use of old-style cast
lex.yy.cc:5511: warning: use of old-style cast
lex.yy.cc:5725: warning: use of old-style cast
lex.yy.cc:5731: error: ‘yy_current_buffer’ was not declared in this scope
lex.yy.cc:5754: error: ‘yy_current_buffer’ was not declared in this scope
triSurface/interfaces/STL/readSTLASCII.L:212: warning: unused variable ‘endPtr’
lex.yy.cc: In constructor ‘yyFlexLexer::yyFlexLexer(std::istream*, std::ostream*)’:
lex.yy.cc:5871: error: ‘yy_current_buffer’ was not declared in this scope
lex.yy.cc: In destructor ‘virtual yyFlexLexer::~yyFlexLexer()’:
lex.yy.cc:5883: error: ‘yy_current_buffer’ was not declared in this scope
lex.yy.cc: In member function ‘virtual void yyFlexLexer::switch_streams(std::istream*, std::ostream*)’:
lex.yy.cc:5890: error: ‘yy_current_buffer’ was not declared in this scope
lex.yy.cc: In member function ‘int yyFlexLexer::yy_get_next_buffer()’:
lex.yy.cc:5943: error: ‘yy_current_buffer’ was not declared in this scope
lex.yy.cc:5974: warning: use of old-style cast
lex.yy.cc:6001: warning: use of old-style cast
lex.yy.cc:6014: warning: use of old-style cast
lex.yy.cc:6015: warning: use of old-style cast
lex.yy.cc:6036: warning: use of old-style cast
lex.yy.cc: In member function ‘yy_state_type yyFlexLexer::yy_get_previous_state()’:
lex.yy.cc:6084: warning: use of old-style cast
lex.yy.cc:6084: warning: use of old-style cast
lex.yy.cc: In member function ‘void yyFlexLexer::yyunput(int, char*)’:
lex.yy.cc:6133: error: ‘yy_current_buffer’ was not declared in this scope
lex.yy.cc:6145: warning: use of old-style cast
lex.yy.cc:6146: warning: use of old-style cast
lex.yy.cc:6154: warning: use of old-style cast
lex.yy.cc: In member function ‘int yyFlexLexer::yyinput()’:
lex.yy.cc:6175: error: ‘yy_current_buffer’ was not declared in this scope
lex.yy.cc:6223: warning: use of old-style cast
lex.yy.cc: In member function ‘virtual void yyFlexLexer::yyrestart(std::istream*)’:
lex.yy.cc:6234: error: ‘yy_current_buffer’ was not declared in this scope
lex.yy.cc:6237: error: ‘yy_current_buffer’ was not declared in this scope
lex.yy.cc: In member function ‘virtual void yyFlexLexer::yy_switch_to_buffer(yy_buffer_state*)’:
lex.yy.cc:6244: error: ‘yy_current_buffer’ was not declared in this scope
lex.yy.cc:6247: error: ‘yy_current_buffer’ was not declared in this scope
lex.yy.cc:6255: error: ‘yy_current_buffer’ was not declared in this scope
lex.yy.cc: In member function ‘void yyFlexLexer::yy_load_buffer_state()’:
lex.yy.cc:6269: error: ‘yy_current_buffer’ was not declared in this scope
lex.yy.cc: In member function ‘virtual yy_buffer_state* yyFlexLexer::yy_create_buffer(std::istream*, int)’:
lex.yy.cc:6280: warning: use of old-style cast
lex.yy.cc:6289: warning: use of old-style cast
lex.yy.cc: In member function ‘virtual void yyFlexLexer::yy_delete_buffer(yy_buffer_state*)’:
lex.yy.cc:6306: error: ‘yy_current_buffer’ was not declared in this scope
lex.yy.cc:6307: warning: use of old-style cast
lex.yy.cc:6310: warning: use of old-style cast
lex.yy.cc:6312: warning: use of old-style cast
lex.yy.cc: In member function ‘void yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)’:
lex.yy.cc:6322: error: cannot convert ‘std::istream*’ to ‘istream*’ in assignment
lex.yy.cc: In member function ‘void yyFlexLexer::yy_flush_buffer(yy_buffer_state*)’:
lex.yy.cc:6348: error: ‘yy_current_buffer’ was not declared in this scope
lex.yy.cc: In member function ‘void yyFlexLexer::yy_push_state(int)’:
lex.yy.cc:6376: warning: use of old-style cast
lex.yy.cc:6380: warning: use of old-style cast
lex.yy.cc:6380: warning: use of old-style cast
lex.yy.cc: In function ‘void* yy_flex_alloc(yy_size_t)’:
lex.yy.cc:6482: warning: use of old-style cast
lex.yy.cc: In function ‘void* yy_flex_realloc(void*, yy_size_t)’:
lex.yy.cc:6500: warning: use of old-style cast
lex.yy.cc:6500: warning: use of old-style cast
lex.yy.cc: At global scope:
lex.yy.cc:5314: warning: ‘yy_start_stack_ptr’ defined but not used
lex.yy.cc:5315: warning: ‘yy_start_stack_depth’ defined but not used
lex.yy.cc:5316: warning: ‘yy_start_stack’ defined but not used
lex.yy.cc:5318: warning: ‘void yy_push_state(int)’ declared ‘static’ but never defined
lex.yy.cc:5321: warning: ‘void yy_pop_state()’ declared ‘static’ but never defined
lex.yy.cc:5324: warning: ‘int yy_top_state()’ declared ‘static’ but never defined
make: *** [Make/darwinIntel64DPOpt/readSTLASCII.o] Error 1
make: *** Waiting for unfinished jobs....

I came across the same error when I compiled OF-1.4 last year, and the answer was to change the flex to foamFlex as stated in this thread:
http://www.cfd-online.com/Forums/ope...tml#post183989
But there doesn't seem to be foamFlex in OF-1.5-dev or OF-1.6-ext, so I am unsure how to fix this...
My current flex version is: flex version 2.5.4

Any ideas are welcome.


Thanks,
Philip

jhoepken December 8, 2010 15:26

Unfortunately I am not much of a help for solving your problem, but how did you install rpm? Via macports?

Jens

bigphil December 8, 2010 18:19

Hi Jens,

I installed rpm using the dmg from here: http://rpm4darwin.sourceforge.net/.
It is rpm version "rpm (RPM) 5.1.0".

Philip

jdiorio December 12, 2010 22:12

Hi Hrv/Eric and all,

Thanks for the release. Similar problem to Ben K. Disk image mounted and linked, bashrc sourced (per Hrv's intructions). Changed the default gcc compiler:

which gcc
/usr/bin/gcc

gcc --version
i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5577)

Ran Hrv's checks, all came back clean. When I try to run a tutorial I get the following:

Quote:

diorijd1-ml1:cavity diorijd1$ icoFoam
dyld: Library not loaded: libfiniteVolume.dylib
Referenced from: /Users/diorijd1/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/darwinIntel64DPOpt/icoFoam
Reason: no suitable image found. Did find:
/Users/diorijd1/OpenFOAM/OpenFOAM-1.6-ext/lib/darwinIntel64DPOpt/libfiniteVolume.dylib: unknown required load command 0x80000022
Trace/BPT trap
Is there some other simple change that I'm missing? Eric mentioned the WM_COMPILER variable in basrc/settings (I see options for choosing the Mac-ports 4.3/4.4/4.5 over 4.2.1). Running on OS X 10.5.8.

Thanks, hope all is well.

James

egp January 28, 2011 07:57

Hrv,

How often do you plan to update this binary?

Eric

hjasak January 28, 2011 23:12

Sorry, I am working on-site with a client at the moment - and the Big Mac is out of reach.

The update is quite trivial to do but not script-automated yet. I'll do one by hand next Friday and then we'll ask one of the Script Wizzards in the community to automate it.

I think once a week would be sufficient.

Deal?

Hrv

egp January 30, 2011 06:55

Yeah, I've been pretty lazy building 1.6-ext on OSX (I have enough other machines to tend to), and have been using your dmg without issue.

However, I was thinking I should try to keep it more in sync with other installs that I'm using. Once a week would be more than adequate since there is not an easy way to automate the download and installation of the dmg.

hjasak February 9, 2011 11:07

Hi Eric,

I have uploaded the dmg to the final version for 1.6-ext. It is available on:

https://files.me.com/h.jasak/41tmca

Let's find a way to share this through the -Extend forum.

Hrv

lewisb2 July 6, 2011 14:07

Hi Hrv,

Have you uploaded a new dmg for the latest revision to OpenFOAM-1.6-ext?

Maryse Page mentioned to me that the ggi had been improved.

-Bryan

darrin July 12, 2011 23:09

I can confirm that the procedure Hrv lists below for compiling works on Mac OS 10.6.8.
However, it is important the the rpm version is not newer than 5.1.0. I couldn't get the ThirdPary applications to compile with the newer (5.2.0 rpm).

Also if you are using 10.6.8 there is a fix for compiling libccmio. See the hotfix/ThirdParty_scripts branch of the 1.6-ext git repo.


Quote:

Originally Posted by hjasak (Post 285205)
Binary release for Mac OS X

I have created a sparse disk image for OpenFOAM-1.6-ext and a Mac, available on Extend Sourceforge Download section.

This is what you do to use it:

1) download the dmg file
http://sourceforge.net/projects/openfoam-extend/files/ -> OpenFOAM-1.6-ext.dmg

2) double-click on it, to mount it
3) open a terminal and do the following

cd
mkdir OpenFOAM
cd OpenFOAM
ln -s /Volumes/OpenFOAM-1.6-ex .

and you are ready. Make yourself a run directory:

mkdir -p ~/OpenFOAM/<yourName>-1.6-ext/run

source the environment

. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc

and you are ready to run.

Please report success/failure.

Compiling OpenFOAM-1.6-ext on a Mac

If you want to compile from scratch, find yourself a Mac (Yum!) and install XCode. The next steps are:

1) download and install wget
2) download and install rpm
3) download and install git
4) sort out malloc header link

cd /usr/include/
sudo ln -s malloc/malloc.h .

5) sort out gmake

cd /usr/local/
sudo ln -s /usr/bin/make gmake

6) install Paraview from dmg: we will use Paraview reader

7) Create a Casename-sensitive disk image (~10 GB, to be safe) and link it as above. Into the link image do a git checkout into it

8) cd ~/OpenFOAM/OpenFOAM-1.6-ext/etc ; cp prefs.sh-EXAMPLE prefs.sh

9) source the environment and compile all. You are in business!

Hope you'll find this useful. Happy McFoaming,

Hrv


mbeaudoin July 13, 2011 02:40

rpm 5.2.1 on Mac OS X is fine.

Martin

Quote:

Originally Posted by darrin (Post 315906)
I can confirm that the procedure Hrv lists below for compiling works on Mac OS 10.6.8.
However, it is important the the rpm version is not newer than 5.1.0. I couldn't get the ThirdPary applications to compile with the newer (5.2.0 rpm).

Also if you are using 10.6.8 there is a fix for compiling libccmio. See the hotfix/ThirdParty_scripts branch of the 1.6-ext git repo.


benk September 19, 2011 10:32

In case anybody is trying to use the binary version with Mac OS 10.7 (Lion) you'll need to install open MPI which I gather came with 10.6 but not 10.7.

The easy way (or at least what worked for me) is to just use homebrew (which is kindof like macports) to install open-mpi:

To install homebrew:
Code:

/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
and then to install open-mpi

Code:

brew install open-mpi
That's all I had to do to get it working again when I upgraded to Lion.

bigphil October 10, 2011 07:31

Hi,


I am trying to compile OpenFOAM-1.6-ext on Mac OS X Lion, but I am stuck at Allmake.stage3. The libccmio package gets an error saying System type i386-apple-darwin11.0.0 not supported!:
Code:

This system rpm command: rpm

========================================
Starting ThirdParty AllMake: Stage3
========================================

Package name      : metis-5.0pre2
Package URL      : http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/OLD/metis-5.0pre2.tar.gz
RPM spec file name: metis-5.0pre2.spec
Additional flags  :
Updating the ThirdParty environment variables before building package metis-5.0pre2
Package metis-5.0pre2 is already installed
Done installing package

Package name      : ParMGridGen-1.0
Package URL      : http://www.mgnet.org/mgnet/Codes/parmgridgen/ParMGridGen-1.0.tar.gz
RPM spec file name: ParMGridGen-1.0.spec
Additional flags  :
Updating the ThirdParty environment variables before building package ParMGridGen-1.0
Package ParMGridGen-1.0 is already installed
Done installing package

Package name      : libccmio-2.6.1
Package URL      : http://wci.llnl.gov/codes/visit/3rd_party/libccmio-2.6.1.tar.gz
RPM spec file name: libccmio-2.6.1.spec
Additional flags  :
Updating the ThirdParty environment variables before building package libccmio-2.6.1
Making package libccmio-2.6.1 using RPM.
Building package libccmio-2.6.1 using SPEC file : libccmio-2.6.1.spec. Optional args:
Executing(%prep): /bin/sh -e /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.63308
+ umask 022
+ cd /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ rm -rf libccmio-2.6.1
+ /usr/bin/gzip -dc /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/libccmio-2.6.1.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libccmio-2.6.1
+ echo 'Patch #0 (libccmio-2.6.1.patch_0):'
Patch #0 (libccmio-2.6.1.patch_0):
+ /bin/cat /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/libccmio-2.6.1.patch_0
+ /usr/bin/patch -s -p1
+ exit 0
Executing(%build): /bin/sh -e /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.80115
+ umask 022
+ cd /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd libccmio-2.6.1
+ '[' -n gcc ']'
+ export CC=gcc
+ CC=gcc
+ '[' -n g++ ']'
+ export CXX=g++
+ CXX=g++
+ '[' -n '-m64 -fPIC' ']'
+ export 'CFLAGS=-m64 -fPIC'
+ CFLAGS='-m64 -fPIC'
+ '[' -n '-m64 -fPIC' ']'
+ export 'CXXFLAGS=-m64 -fPIC'
+ CXXFLAGS='-m64 -fPIC'
+ '[' -n -m64 ']'
+ export LDFLAGS=-m64
+ LDFLAGS=-m64
+ '[' -z 2 ']'
+ '[' '!' -d configi386-apple-darwin10 ']'
+ cp -r config/i386-apple-darwin8 config/i386-apple-darwin10
+ unset RELEASE
+ unset DEBUG
+ unset STATIC
+ unset SHARED
+ '[' -d libadf ']'
+ cd libadf
+ RELEASE=1
+ SHARED=1
+ make -f Makefile.qmake all
..//config/runqmake ../ \
          -o Makefile.adf adf.pro 2>&1 | tee qmake.vars
System type i386-apple-darwin11.0.0 not supported!
..//config/runqmake: line 47: /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libadf/..//config/unknown/qmake: No such file or directory
make[1]: *** No rule to make target `/u/xeona04/people/prewett/src/libccmio/config/linux64_2.4-x86-glibc_2.2.5/qmake.conf', needed by `Makefile.adf'.  Stop.
make: *** [all] Error 2
+ '[' -d libccmio ']'
+ cd libccmio
+ RELEASE=1
+ SHARED=1
+ make -f Makefile.qmake all
..//config/runqmake ../ \
          -o Makefile.ccmio ccmio.pro 2>&1 | tee qmake.vars
System type i386-apple-darwin11.0.0 not supported!
..//config/runqmake: line 47: /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libccmio/..//config/unknown/qmake: No such file or directory
make[1]: *** No rule to make target `/u/xeona04/people/prewett/src/libccmio/config/linux64_2.4-x86-glibc_2.2.5/qmake.conf', needed by `Makefile.ccmio'.  Stop.
make: *** [all] Error 2
+ exit 0
Executing(%install): /bin/sh -e /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.80115
+ umask 022
+ cd /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ /bin/rm -rf /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1-root
+ /bin/mkdir -p /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1-root
+ cd libccmio-2.6.1
+ mkdir -p /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1-root//Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/libccmio-2.6.1/platforms/darwinIntel64GccDPOpt/include/libccmio
+ mkdir -p /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1-root//Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/libccmio-2.6.1/platforms/darwinIntel64GccDPOpt/lib
++ find ./lib -name release-shared
find: ./lib: No such file or directory
+ libsdir=
error: Bad exit status from /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.80115 (%install)


RPM build errors:
    Bad exit status from /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.80115 (%install)
Installing package: libccmio-2.6.1
  Uninstalling libccmio-2.6.1 using RPM: libccmio-2.6.1-darwinIntel64GccDPOpt.i386
  Installing libccmio-2.6.1 using RPM file: /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i386/libccmio-2.6.1-darwinIntel64GccDPOpt.i386.rpm
error: open of /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i386/libccmio-2.6.1-darwinIntel64GccDPOpt.i386.rpm failed: No such file or directory
Done installing package

Package name      : mesquite-2.1.2
Package URL      : http://software.sandia.gov/~jakraft/mesquite-2.1.2.tar.gz
RPM spec file name: mesquite-2.1.2.spec
Additional flags  :
Updating the ThirdParty environment variables before building package mesquite-2.1.2
Making package mesquite-2.1.2 using RPM.
Building package mesquite-2.1.2 using SPEC file : mesquite-2.1.2.spec. Optional args:
Executing(%prep): /bin/sh -e /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.80116
+ umask 022
+ cd /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ rm -rf mesquite-2.1.2
+ /usr/bin/gzip -dc /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/mesquite-2.1.2.tar.gz
+ /usr/bin/tar -xf -

gzip: /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/mesquite-2.1.2.tar.gz: unexpected end of file
mesquite-2.1.2/doc/user/MesquiteUI.eps: Truncated tar archive
tar: Error exit delayed from previous errors.
error: Bad exit status from /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.80116 (%prep)


RPM build errors:
    Bad exit status from /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.80116 (%prep)
Installing package: mesquite-2.1.2
  Uninstalling mesquite-2.1.2 using RPM: mesquite-2.1.2-darwinIntel64GccDPOpt.i386
  Installing mesquite-2.1.2 using RPM file: /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i386/mesquite-2.1.2-darwinIntel64GccDPOpt.i386.rpm
error: open of /Users/Patricia_Alveen/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i386/mesquite-2.1.2-darwinIntel64GccDPOpt.i386.rpm failed: No such file or directory
Done installing package

Package name      : scotch-5.1.10b
Package URL      : https://gforge.inria.fr/frs/download.php/27583/scotch-5.1.10b.tar.gz
RPM spec file name: scotch-5.1.10b.spec
Additional flags  :
Updating the ThirdParty environment variables before building package scotch-5.1.10b
Package scotch-5.1.10b is already installed
Done installing package

Package name      : ParMetis-3.1.1
Package URL      : http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/OLD/ParMetis-3.1.1.tar.gz
RPM spec file name: ParMetis-3.1.1.spec
Additional flags  :
Updating the ThirdParty environment variables before building package ParMetis-3.1.1
Package ParMetis-3.1.1 is already installed
Done installing package

========================================
Done ThirdParty AllMake: Stage3
========================================

I tried macports rpm (4.4) and also rpm from here (5.1) but they both give the same error.

Also I tried changing git branch to hotfix/ThirdParty_scripts (git checkout hotfix/ThirdParty_scripts) but I still get the same error.


All suggestions are welcome,
Philip


All times are GMT -4. The time now is 03:37.