Mac OS install

44 views
Skip to first unread message

Scott Calabrese Barton

unread,
Jan 4, 2016, 7:14:33 PM1/4/16
to OpenFCST User Forum
I ran into an issue installing OpenFCST on the Mac.  I'm using El Capitan 10.11.2 with all supporting libraries already installed. I build open-mpi using Homebrew gcc 5.3. Here's my build command for OpenFCST:

./openFCST_install --boost-dir=/usr/local/opt/boost/ --p4est-dir=/usr/local/opt/p4est/ --metis-dir=/usr/local/opt/metis/ --petsc-dir=/usr/local/opt/petsc/ --trilinos-dir=/usr/local/opt/trilinos/ --deal-dir=/usr/local/opt/dealii/

I encounter an error when building OpenFCST_2D:

Installing OpenFCST_2D

-----------------------------------
[ 69%] Creating directories for 'OpenFCST_2D'
[ 70%] No download step for 'OpenFCST_2D'
[ 72%] No patch step for 'OpenFCST_2D'
[ 74%] No update step for 'OpenFCST_2D'
[ 76%] Performing configure step for 'OpenFCST_2D'
-- OpenFCST_2D configure command succeeded.  See also /Users/scott/Downloads/OpenFCST_r02/Build/fcst/stamp/OpenFCST_2D-configure-*.log
[ 78%] Performing build step for 'OpenFCST_2D'
CMake Error at /Users/scott/Downloads/OpenFCST_r02/Build/fcst/stamp/OpenFCST_2D-build-.cmake:16 (message):
  Command failed: 2

   '/Applications/Xcode.app/Contents/Developer/usr/bin/make'

  See also

    /Users/scott/Downloads/OpenFCST_r02/Build/fcst/stamp/OpenFCST_2D-build-*.log

Where the file `OpenFCST_2D-build-err.log' reads:

g++: error: unrecognized command line option '-Qunused-arguments'
make[5]: *** [source/CMakeFiles/fuel_cell-2d.bin.dir/main.cc.o] Error 1
make[4]: *** [source/CMakeFiles/fuel_cell-2d.bin.dir/all] Error 2
make[3]: *** [all] Error 2
 
Somewhere that option is added, probably because MAKE thinks I'm using CLANG instead of GCC.  Any suggestions of how to fix this?
 

Marc Secanell Gallart

unread,
Jan 4, 2016, 11:42:27 PM1/4/16
to Scott Calabrese Barton, OpenFCST User Forum
Hi Scott,

I am sorry but we do not have any experience with Mac OS X compilation. OpenFCST build and execution is tested nightly on OpenSUSE 13.1 and 13.2 (it also works with Leap), and Ubuntu, but we do not use Macs at this point. My first suggestion would be to try to install a VirtualBox on your Mac running OpenSUSE.

If you want to help us get OpenFCST running on a Mac OS X we can try to help as much as possible. For now the first question I have is:
a) You write: 
--boost-dir=/usr/local/opt/boost/ --p4est-dir=/usr/local/opt/p4est/ --metis-dir=/usr/local/opt/metis/ --petsc-dir=/usr/local/opt/petsc/ --trilinos-dir=/usr/local/opt/trilinos/ --deal-dir=/usr/local/opt/dealii/
Do you actually have boost, p4est, and all the other packages installed in the specified location?

I would suggest that you try installing the program first with:
./openFCST_install

It will most likely not work, but the .log file might provide more information. In this case, the script will first run the CMakeList file in openfces/contribs/deal.II which has a lot of checkpoint to see what might be the issue. This might provide us with more info regarding debugging.

I hope this helps. Best,

Marc

--
You received this message because you are subscribed to the Google Groups "OpenFCST User Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openfcst+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.
Visit this group at https://groups.google.com/group/openfcst.
To view this discussion on the web visit https://groups.google.com/d/msgid/openfcst/257bd25c-91aa-4187-9bcd-ef02568178fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

--------------------------------------------------------------------------------------------------------------------

Marc Secanell, Ph.D., P.Eng.

Associate Professor

Energy Systems Design Laboratory ( http://www.esdlab.mece.ualberta.ca/ )

Department of Mechanical Engineering

University of Alberta

10-358 Donadeo Innovation Centre for Engineering,
9211-116 Street NW,
Edmonton, AB, Canada T6G 1H9

Phone: (780) 490 8808 (cell) <-- Preferred while on sabbatical

            (780) 492-6961 (office)

E-mail: seca...@ualberta.ca

Confidentiality notice: Emails sent to seca...@ualberta.ca are forwarded to a Google-supported email account. Emails, attachments, documents and calendaring data, stored, received and sent through this University account may be transmitted to and stored on servers outside of the University, Alberta or Canada. The University of Alberta cannot and does not guarantee protection against the possible disclosure of your data including, without limitation, against possible secret disclosures of data to a foreign authority as a consequence of foreign laws.

--------------------------------------------------------------------------------------------------------------------

Reply all
Reply to author
Forward
0 new messages