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

Joshua Bronson jabronson at gmail.com
Wed May 14 13:40:49 MDT 2008


This message bounced because of the size of the attached output, so I'm
sending again with a link to it instead:
http://pastie.caboo.se/197009

Josh

On Wed, May 14, 2008 at 2:57 PM, Joshua Bronson <jabronson at gmail.com> wrote:

> On Wed, May 14, 2008 at 12:20 PM, Schiek, Richard L <rlschie at sandia.gov>
> wrote:
>
>>  Josh,
>>
>> I use a mac to build trilinos and it looks like you're hitting on the Mac
>> OS filesystem issue where it is case preserving but case insensitive.  So
>> while CC would be the C++ compiler in most cases, it looks like cc to the
>> mac file system and it invokes the c compiler.
>>
>> Here's how I invoke trilinos's configure:
>>
>> ../trilinos-8.0.5/configure \
>>  CXX=icpc \
>>  CC=icc \
>>  F77=ifort \
>>  CXXFLAGS="-O3" \
>>  CCFLAGS="-O3" \
>>  F77FLAGS="-O3"
>>
>> This specifies the intel compiler set, but if you set CXX=g++, CC=gcc and
>> F77=g95 or g77 you should be on the right path.
>>
>> Hope this helps,
>>
> Rich
>>
>
> Foiled by the case-insensitive Mac filesystem again! After configuring with
> CXX=g++, CC=gcc, and F77=gfortran, Trilinos built successfully. Thanks Rich!
>
> What I'm really after though is PyTrilinos. So I just tried building
> Trilinos again after additionally passing "--enable-pytrilinos
> --with-python=/usr/local/bin/python2.4" to configure, and unfortunately the
> build failed again. I've attached an excerpt of the output, let me know if I
> can provide any additional info. I'm also copying the pytrilinos list on
> this email, apologies if anyone gets this twice.
>
> Thanks again everyone for the quick responses.
>
> Josh
>
>
>
>> On 5/14/08 10:10 AM, "Joshua Bronson" <jabronson at gmail.com> wrote:
>>
>> 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?
>>
>> Thanks,
>> Josh
>>
>> 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
>> *
>>
>> Hello,
>>
>> 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.
>>  ***Almost
>> 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
>>   -L/usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.4.0
>> -L/usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.4.0/../../..
>> -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
>>   -L/usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.4.0
>> -L/usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.4.0/../../..
>> -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.
>>
>> Thanks!
>>
>> Josh
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://software.sandia.gov/mailman/private/trilinos-users/attachments/20080514/eba420fc/attachment.html 


More information about the Trilinos-Users mailing list