[Trilinos-Users] Mac OS 10.5 building problems

Askey Scott A Capt Lt AFIT/ENY Scott.Askey at afit.edu
Mon Feb 25 14:07:35 MST 2008


When I attempt to configure Trilinos on my OS 10.52  Powerbook I have
been failing in the Teuchos package build.  I have used Fink to  stock
/sw/lib with the libraries I believe I need, enabled the framework
vector library an tried a range of gcc compilers( Fink gcc 4.2.3 from
source and Apple binaries of gcc4.0.1 and 4.2.1).  

 

I need Epetra, Teuchos and NOX (serial) for my research. 

 

Any advice is appreciated, especially about what I need external to
Trilinos.   Two cases  follow, pow not found and library not found.

 

 

V/R

 

Scott  

 

Case one :  pow not found

 

 

../configure \

CC=gcc-4.0  \

F77=g95  \

RANLIB="ranlib -s" \

--prefix=/Users/RogerMacBookPro/bin/trilinos-8.0.5/gcc_42 \

--with-incdirs="-I/sw/include" \

--with-ldflags="-L/sw/lib -framework vecLib" \

--with-libs="-lumfpack -lamd -lexpat -lhdf5" \

--with-libdirs="-L/sw/lib " \

--cache-file=config.cache \

--with-gnumake \

--enable-didasko \

--enable-epetra \

--enable-nox \

--enable-nox-epetra \

--enable-teuchos 

 

 

configure:9166: gcc-4.0 -o conftest -g -O2 -I/sw/include  -L/sw/lib
-L/sw/lib -framework vecLib  conftest.c cfortran_test.o -lumfpack -lamd
-lexpat -lhdf5   -L/sw/lib
-L/sw/bin/../lib/gcc-lib/i386-apple-darwin9/4.0.3/
-L/sw/bin/../lib/gcc-lib/i386-apple-darwin9/4.0.3
-L/sw/lib/gcc-lib/i386-apple-darwin9/4.0.3/ -L/usr/lib/gcc//
-L/sw/bin/../lib/gcc-lib/i386-apple-darwin9/4.0.3///
-L/sw/lib/gcc-lib/i386-apple-darwin9/4.0.3/// -L/usr/lib// -lumfpack
-lamd -lexpat -lhdf5 -lf95 -lm -lSystemStubs -lmx >&5

configure:9172: $? = 0

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

configure:9339: checking for library containing pow

configure:9388: CC -o conftest -g -O2 -I/sw/include  -L/sw/lib
-L/sw/lib -framework vecLib  conftest.cpp -lumfpack -lamd -lexpat -lhdf5
>&5

Undefined symbols:

  "___gxx_personality_v0", referenced from:

      ___gxx_personality_v0$non_lazy_ptr in cc3uTJUT.o

ld: symbol(s) not found

collect2: ld returned 1 exit status

configure:9394: $? = 1

configure: failed program was:

| /* confdefs.h.  */

| #define PACKAGE_NAME "teuchos"

| #define PACKAGE_TARNAME "teuchos"

 

Roger-Greenways-MacBookPro:gcc_42 RogerMacBookPro$ gcc-4.0 -v

Using built-in specs.

Target: i686-apple-darwin9

Configured with: /var/tmp/gcc/gcc-5465~16/src/configure
--disable-checking -enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=i686-apple-darwin9 --with-arch=apple --with-tune=generic
--host=i686-apple-darwin9 --target=i686-apple-darwin9

Thread model: posix

gcc version 4.0.1 (Apple Inc. build 5465)

 

 

 

 

Case 2 explicitly declared libraries not found

 

../configure \

CC=/usr/bin/gcc-4.2  \

F77=g95  \

RANLIB="ranlib -s" \

--prefix=/Users/RogerMacBookPro/bin/trilinos-8.0.5/gcc_42 \

--with-incdirs="-I/sw/include" \

--with-libdirs=-L/sw/lib \

--with-ldflags='-L/sw/lib -framework vecLib' \

--with-libs=' -lumfpack -lamd -lexpat -lhdf5' \

--cache-file=config.cache \

--with-gnumake \

--enable-amesos \

--enable-anasazi \

--disable-belos \

--enable-aztecoo \

--disable-claps \

--enable-didasko \

--enable-epetra \

--enable-epetraext \

--enable-galeri \

--enable-ifpack \

--disable-ifpack-thyra \

--disable-kokkos \

--disable-komplex \

--disable-loca \

--with-loca-anasazi \

--enable-ml \

--with-ml-64bit-integer="long long" \

--disable-new_package \

--disable-new_swahili \

--enable-nox \

--enable-nox-epetra \

--enable-pytrilinos \

--disable-rythmos \

--enable-teuchos \

--enable-teuchos-extended \

--enable-teuchos-expat \

--disable-thyra \

--disable-tpetra \

--enable-triutils

 

 

 

 

checking whether to use teuchos-gmp... no

checking whether to use teuchos-expat... yes

checking for Expat headers (expat.h) ... yes

checking for Expat library (libexpat.a) ... no

-----

Cannot find Expat library.

Use --with-ldflags to specify Expat library directory.

Use --with-libs to specify Expat library (-lexpat).

-----

configure: error: Expat test cannot link

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

Roger-Greenways-MacBookPro:gcc_42 RogerMacBookPro$ 

 

 

 

checking whether to use libcheck... yes

checking whether additional library search paths defined... -L/sw/lib

checking whether additional include search paths defined...
-I/sw/include

checking for library specification errors ... no errors detected

checking whether to use teuchos-abc... no

checking whether to use teuchos-complex... yes

checking whether to use teuchos-extended... yes

checking whether to use teuchos-arprec... no

checking whether to use teuchos-blasfloat... yes

checking whether to use teuchos-gmp... no

checking whether to use teuchos-expat... yes

checking for Expat headers (expat.h) ... yes

checking for Expat library (libexpat.a) ... no

-----

Cannot find Expat library.

Use --with-ldflags to specify Expat library directory.

Use --with-libs to specify Expat library (-lexpat).

-----

configure: error: Expat test cannot link

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

 

 

****************  

RogerMacBookPro$ ls -l  /sw/lib/*expat*

-rwxr-xr-x  1 root  admin  164116 Feb 22 22:59
/sw/lib/libexpat.0.5.0.dylib

lrwxr-xr-x  1 root  admin      20 Feb 22 22:59 /sw/lib/libexpat.0.dylib
-> libexpat.0.5.0.dylib

-rwxr-xr-x  1 root  admin  168488 Feb 23 00:14
/sw/lib/libexpat.1.5.2.dylib

lrwxr-xr-x  1 root  admin      20 Feb 23 00:14 /sw/lib/libexpat.1.dylib
-> libexpat.1.5.2.dylib

-rw-r--r--  1 root  admin  499024 Feb 22 22:59 /sw/lib/libexpat.a

lrwxr-xr-x  1 root  admin      20 Feb 23 14:20 /sw/lib/libexpat.dylib ->
libexpat.0.5.0.dylib

-rwxr-xr-x  1 root  admin     727 Feb 22 22:59 /sw/lib/libexpat.la

Roger-Greenways-MacBookPro:gcc_42 RogerMacBookPro$ 

 

 

configure:7935: checking whether to use teuchos-expat

configure:7939: result: yes

configure:7959: checking for Expat headers (expat.h) 

configure:7974: CC -E -I/sw/include  conftest.cpp

configure:7980: $? = 0

configure:7985: result: yes

configure:8008: checking for Expat library (libexpat.a) 

configure:8038: CC -o conftest -g -O2 -I/sw/include  -L/sw/lib -L/sw/lib
-framework vecLib  conftest.cpp  -lumfpack -lamd -lexpat -lhdf5  >&5

Undefined symbols:

  "___gxx_personality_v0", referenced from:

      ___gxx_personality_v0$non_lazy_ptr in cchmd1SU.o

ld: symbol(s) not found

collect2: ld returned 1 exit status

configure:8044: $? = 1

configure: failed program was:

|  /* confdefs.h.  */

| #define PACKAGE_NAME "teuchos"

 

 

 

 

 

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


More information about the Trilinos-Users mailing list