[Trilinos-Users] Fwd: configuring teuchos on Mac OS X 10.5

James Willenbring jmwille at sandia.gov
Wed May 14 10:42:59 MDT 2008



You need to have the version of gfortran that matches the version of your
g++ and gcc compilers.  In most cases, downloading the latest will not work.
We are working to improve support for OSX users because of the separate
fortran compiler download, but for now users just have to get the right
version of the gfortran compiler.  The ___gxx_personality_ output is a
common sign of mismatched compiler versions.  Occasionally users are able to
build with compilers from different versions of GCC, but I believe it is
just easier to install a new gfortran compiler.


If you want to make sure you are using the g++ and gcc compilers you intend
to use, you can simply add CXX=g++ and CC=gcc to your list of configure






From: trilinos-users-bounces at software.sandia.gov
[mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of Joshua
Sent: Wednesday, May 14, 2008 11:10 AM
To: trilinos-users at software.sandia.gov
Cc: Joy Ko
Subject: [Trilinos-Users] Fwd: configuring teuchos on Mac OS X 10.5


Hi Trilinos-users,


I'm new to the list and I'm having trouble building Trilinos on Mac OS X
10.5. I sent the email below to hkthorn at sandia.gov last week, but have not
yet heard back. Anyone have any ideas?





P.S. Since I sent the below, I noticed the line


configure:9390: CC -o conftest -g   conftest.cpp  >&5


instead of "CC", I would have expected "g++" (which is what I get when I
successfully build on Linux). Not sure what's causing this though.



Begin forwarded message:

From: Joshua Bronson <jabronson at gmail.com>

Date: May 5, 2008 5:43:55 PM EDT

To: hkthorn at sandia.gov

Cc: Joy Ko <joyko at math.brown.edu>

Subject: configuring teuchos on Mac OS X 10.5



I just downloaded the latest Trilinos source and ran its configure script,
and had some trouble when it got to configuring the Teuchos package. I saw a
note in the output to report bugs to your email address, so I hope it's okay
that I'm emailing you.

I noticed this in the output:

configure: error: Error encountered when checking for math library.

always this error is caused by a typo in the list of configure arguments

that is not related to the math library.  Look especially for missing

quotes or hyphens in any value related to compiler flags or libraries.

For an error message that may assist in finding the problem grep for

"checking for library containing pow" in the file

packages/teuchos/config.log and read the next several lines.

configure: error: ./configure failed for packages/teuchos

Here is what appears in config.log near the string "checking for library
containing pow":

configure:9081: cc -o conftest -g -O2   conftest.c cfortran_test.o
-lgfortranbegin -lgfortran

ld: warning, duplicate dylib /usr/local/gfortran/lib/libgcc_s.1.dylib

configure:9087: $? = 0

configure:9166: cc -o conftest -g -O2   conftest.c cfortran_test.o
-lgfortranbegin -lgfortran

ld: warning, duplicate dylib /usr/local/gfortran/lib/libgcc_s.1.dylib

configure:9172: $? = 0

configure:9229: result: lower case, underscore, no extra underscore

configure:9339: checking for library containing pow

configure:9388: CC -o conftest -g -O2   conftest.cpp  >&5

Undefined symbols:

 "___gxx_personality_v0", referenced from:

     ___gxx_personality_v0$non_lazy_ptr in ccBz6NQZ.o

ld: symbol(s) not found

collect2: ld returned 1 exit status

configure:9394: $? = 1

I see the warning here about the duplicate dylib, but I assume that's not
the culprit. I didn't notice any missing quotes or hyphens in the CCFLAGS or
LDFLAGS, but maybe I'm missing something.

I am running OS X 10.5.2 with the latest gfortran binary installed from
http://gcc.gnu.org/wiki/GFortranBinariesMacOS. Please let me know if you
have any ideas, or if there is anymore information I can provide.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://software.sandia.gov/mailman/private/trilinos-users/attachments/20080514/ca4c7253/attachment-0001.html 

More information about the Trilinos-Users mailing list