Building OpenSees on Mac OS X 10.8 (mountain lion)

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
stxsocswim17
Posts: 4
Joined: Tue Nov 18, 2008 6:11 pm
Location: UCSD Structural Engineering

Building OpenSees on Mac OS X 10.8 (mountain lion)

Post by stxsocswim17 »

Has anyone sucessfully built OpenSees on Mountain Lion? I get the following error after running the 'make' command:

LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
make[1]: Nothing to be done for `tcl'.
make[2]: Nothing to be done for `tcl'.
g++: error: unrecognized command line option ‘-Wl’
make[1]: *** [tcl] Error 1
make: *** [all] Error 2
stxsocswim17
Posts: 4
Joined: Tue Nov 18, 2008 6:11 pm
Location: UCSD Structural Engineering

Re: Building OpenSees on Mac OS X 10.8 (mountain lion)

Post by stxsocswim17 »

Or possibly on OS X 10.7?
userav
Posts: 7
Joined: Thu Oct 27, 2011 12:57 pm
Location: -

Re: Building OpenSees on Mac OS X 10.8 (mountain lion)

Post by userav »

The error message is the same I got on OpenSuse Linux (http://opensees.berkeley.edu/community/ ... =3&t=56335).
The work-around was to edit Makefile.def and change the linkflags options. The compilation succeeded once the option -Wl was commented out (#):
LINKFLAGS = -rdynamic #-Wl
stxsocswim17
Posts: 4
Joined: Tue Nov 18, 2008 6:11 pm
Location: UCSD Structural Engineering

Re: Building OpenSees on Mac OS X 10.8 (mountain lion)

Post by stxsocswim17 »

If I comment out the -Wl linkflag then I get the following errors instead. I have installed gfortran from a number of sources... but can't seem to get it to work.

LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
make[1]: Nothing to be done for `tcl'.
make[2]: Nothing to be done for `tcl'.
Undefined symbols for architecture x86_64:
"_quadmath_snprintf", referenced from:
_write_float in libgfortran.a(write.o)
"_strtoflt128", referenced from:
__gfortrani_convert_real in libgfortran.a(read.o)
__gfortrani_convert_infnan in libgfortran.a(read.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[1]: *** [tcl] Error 1
make: *** [all] Error 2


Anyone been able to build on 10.7 or 10.8 yet?
mi.damato
Posts: 3
Joined: Tue Apr 01, 2008 7:57 am
Location: university of basilicata

Re: Building OpenSees on Mac OS X 10.8 (mountain lion)

Post by mi.damato »

Please, could you show your make file?
It seems a problem in linking with fortran libraries.

mida
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Building OpenSees on Mac OS X 10.8 (mountain lion)

Post by fmk »

i have added a Makefile.def.MacOS10.8 to the MAKES directory.

i downloaded and installed the latest version of gcc (at time i installed it) before i built OpenSees
the config options i used to build the gcc Makefile is in the Makefile.def
behrangv
Posts: 4
Joined: Tue Feb 26, 2013 5:21 am
Location: urmia university

Re: Building OpenSees on Mac OS X 10.8 (mountain lion)

Post by behrangv »

hi
can anyone say me ,what should i do to run opensees on mac os x 10.8? means which programs should i dw beside opensees and ... ??

i'm realy confused . :oops:
Post Reply