[Trilinos-Users] OS 10.5 Pytrilinos build problem

Doug Reeder dlr at rain.org
Tue Sep 16 11:34:10 MDT 2008


Scott,

The architecture warnings look more like an i386 vs x86_64 issue.

Doug Reeder
On Sep 16, 2008, at 9:21 AM, Askey Scott A Capt AFIT/ENY wrote:

> When I build pytrilinos it does not like the architecture of the  
> dylib files.  My machine is i386 (core duo) and I suspect that that  
> the dylib files are of the i386 architecture however the build  
> script wants a ppc architecture dylib files.
>
>
>
> Any advice  is appreciated.
>
>
>
> Thanks
>
>
>
> Scott
>
> ***********************************************
>
> This is the standard output from near the end of the build attempt:
>
>
>
> ld: warning in ../shared/libteuchos.dylib, file is not of required  
> architecture
>
> ld: warning in ../shared/libepetra.dylib, file is not of required  
> architecture
>
> ld: warning in ../shared/libpytrilinos.dylib, file is not of  
> required architecture
>
> ld: in /sw/lib/libLAPACK.dylib, file is not of required  
> architecture for architecture ppc
>
> collect2: ld returned 1 exit status
>
> lipo: can't open input file: /var/folders/US/USCc7K-MG9SEKsNVCR+VMk+ 
> ++TI/-Tmp-//ccuUNaV4.out (No such file or directory)
>
> error: Command "g++ -Wl,-F. -bundle -undefined dynamic_lookup -arch  
> i386 -arch ppc build/temp.macosx-10.5-i386-2.5/Teuchos_wrap.o -L../ 
> shared -L/sw/lib -L/Users/blazer/src/trilinos/trilinos-8.0.8/py25/ 
> packages/teuchos/src -lteuchos -lSystem -lepetra -lpytrilinos -o  
> build/lib.macosx-10.5-i386-2.5/PyTrilinos/_Teuchos.so -I/sw/include  
> -O3 -ftree-vectorize -framework vecLib -Wl,-framework -Wl,vecLib"  
> failed with exit status 1
>
>
>
> +++++++++++++++++++++++++++++++++++++
>
> LIBRARY and PYTHON paths:
>
>
>
> blazers-macbook-pro-15:py25 blazer$ echo $DYLD_LIBRARY_PATH
>
> /Users/blazer/src/trilinos/trilinos-8.0.8/py25/lib:/Users/blazer/ 
> src/trilinos/trilinos-8.0.8/py25/packages/PyTrilinos/shared
>
> blazers-macbook-pro-15:py25 blazer$ echo $PYTHONPATH
>
> /Users/blazer/src/trilinos/trilinos-8.0.8/py25
>
>
>
>
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Build file follows: This script builds and tests well if pytrilinos  
> is disabled.
>
>
>
> ../configure \
>
>                  CC=gcc CXX=g++ F77=gfortran\
>
>                  --prefix=$TRIL8_8/py25 \
>
>                  RANLIB="ranlib -s"\
>
>                   --with-ldflags="-Wl,-multiply_defined -Wl,suppress"\
>
>                   --with-incdirs="-I/sw/include"\
>
>                   --with-ldflags="-L/sw/lib -framework vecLib"\
>
>                   --cache-file=config.cache    --with-gnumake \
>
>                   --enable-tests  \
>
>                   --enable-epetra \
>
>                   --disable-ml\
>
>                   --enable-nox\
>
>                         --enable-amesos\
>
>             --enable-pytrilinos\
>
>             --with-python=python2.5\
>
>             --with-swig=/sw/bin/swig \
>
>                   --disable-default-packages\
>
>                   CFLAGS="-O3 -ftree-vectorize" \
>
>                         CXXFLAGS="-O3 -ftree-vectorize"\
>
>                   FFLAGS="-O3 -ftree-vectorize"\
>
>                   FLIBS="-Wl,-framework -Wl,vecLib -lSystem"
>
>
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Standard output form creating pytrilinos:
>
>
>
> Extracting Makefile variables ... done
>
>
>
> creating PyTrilinos/__init__.py
>
> Enabled modules:
>
>     Teuchos
>
>     Epetra
>
>     Amesos
>
>     NOX
>
>
>
> running build
>
> running build_py
>
> creating build
>
> creating build/lib.macosx-10.5-i386-2.5
>
> creating build/lib.macosx-10.5-i386-2.5/PyTrilinos
>
> copying PyTrilinos/__init__.py -> build/lib.macosx-10.5-i386-2.5/ 
> PyTrilinos
>
> copying PyTrilinos/Amesos.py -> build/lib.macosx-10.5-i386-2.5/ 
> PyTrilinos
>
> copying PyTrilinos/Epetra.py -> build/lib.macosx-10.5-i386-2.5/ 
> PyTrilinos
>
> copying PyTrilinos/Teuchos.py -> build/lib.macosx-10.5-i386-2.5/ 
> PyTrilinos
>
> creating build/lib.macosx-10.5-i386-2.5/PyTrilinos/NOX
>
> copying PyTrilinos/NOX/__init__.py -> build/lib.macosx-10.5- 
> i386-2.5/PyTrilinos/NOX
>
> copying PyTrilinos/NOX/Abstract.py -> build/lib.macosx-10.5- 
> i386-2.5/PyTrilinos/NOX
>
> copying PyTrilinos/NOX/Solver.py -> build/lib.macosx-10.5-i386-2.5/ 
> PyTrilinos/NOX
>
> copying PyTrilinos/NOX/StatusTest.py -> build/lib.macosx-10.5- 
> i386-2.5/PyTrilinos/NOX
>
> running build_ext
>
> building 'PyTrilinos._Teuchos' extension
>
> C compiler: g++ -fno-strict-aliasing -Wno-long-double -no-cpp- 
> precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall - 
> Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE - 
> arch i386 -arch ppc -pipe
>
>
>
> creating build/temp.macosx-10.5-i386-2.5
>
> compile options: '-DHAVE_CONFIG_H=1 -DNUMPY_NOPREFIX=1 - 
> DHAVE_TEUCHOS=1 -DHAVE_EPETRA=1 -I../../../../packages/PyTrilinos/ 
> src -I/Users/blazer/src/trilinos/trilinos-8.0.8/py25/packages/ 
> teuchos/src -I/Users/blazer/src/trilinos/trilinos-8.0.8/packages/ 
> teuchos/src -I/System/Library/Frameworks/Python.framework/Versions/ 
> 2.5/Extras/lib/python/numpy/core/include -I/System/Library/ 
> Frameworks/Python.framework/Versions/2.5/include/python2.5 -c'
>
> extra options: '-I/sw/include -O3 -ftree-vectorize'
>
> g++: Teuchos_wrap.cpp
>
> cc1plus: warning: command line option "-Wstrict-prototypes" is  
> valid for C/ObjC but not for C++
>
> cc1plus: warning: -ftree-vectorize enables strict aliasing. -fno- 
> strict-aliasing is ignored when Auto Vectorization is used.
>
> cc1plus: warning: command line option "-Wstrict-prototypes" is  
> valid for C/ObjC but not for C++
>
> cc1plus: warning: -ftree-vectorize enables strict aliasing. -fno- 
> strict-aliasing is ignored when Auto Vectorization is used.
>
> g++ -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc  
> build/temp.macosx-10.5-i386-2.5/Teuchos_wrap.o -L../shared -L/sw/ 
> lib -L/Users/blazer/src/trilinos/trilinos-8.0.8/py25/packages/ 
> teuchos/src -lteuchos -lSystem -lepetra -lpytrilinos -o build/ 
> lib.macosx-10.5-i386-2.5/PyTrilinos/_Teuchos.so -I/sw/include -O3 - 
> ftree-vectorize -framework vecLib -Wl,-framework -Wl,vecLib
>
> ld: warning in ../shared/libteuchos.dylib, file is not of required  
> architecture
>
> ld: warning in ../shared/libepetra.dylib, file is not of required  
> architecture
>
> ld: warning in ../shared/libpytrilinos.dylib, file is not of  
> required architecture
>
> ld: in /sw/lib/libLAPACK.dylib, file is not of required  
> architecture for architecture ppc
>
> collect2: ld returned 1 exit status
>
> lipo: can't open input file: /var/folders/US/USCc7K-MG9SEKsNVCR+VMk+ 
> ++TI/-Tmp-//ccuUNaV4.out (No such file or directory)
>
> ld: warning in ../shared/libteuchos.dylib, file is not of required  
> architecture
>
> ld: warning in ../shared/libepetra.dylib, file is not of required  
> architecture
>
> ld: warning in ../shared/libpytrilinos.dylib, file is not of  
> required architecture
>
> ld: in /sw/lib/libLAPACK.dylib, file is not of required  
> architecture for architecture ppc
>
> collect2: ld returned 1 exit status
>
> lipo: can't open input file: /var/folders/US/USCc7K-MG9SEKsNVCR+VMk+ 
> ++TI/-Tmp-//ccuUNaV4.out (No such file or directory)
>
> error: Command "g++ -Wl,-F. -bundle -undefined dynamic_lookup -arch  
> i386 -arch ppc build/temp.macosx-10.5-i386-2.5/Teuchos_wrap.o -L../ 
> shared -L/sw/lib -L/Users/blazer/src/trilinos/trilinos-8.0.8/py25/ 
> packages/teuchos/src -lteuchos -lSystem -lepetra -lpytrilinos -o  
> build/lib.macosx-10.5-i386-2.5/PyTrilinos/_Teuchos.so -I/sw/include  
> -O3 -ftree-vectorize -framework vecLib -Wl,-framework -Wl,vecLib"  
> failed with exit status 1
>
> make[5]: *** [package] Error 1
>
> make[4]: *** [all] Error 2
>
> make[3]: *** [all-recursive] Error 1
>
> make[2]: *** [all-recursive] Error 1
>
> make[1]: *** [all-recursive] Error 1
>
> make: *** [all] Error 2
>
> blazers-macbook-pro-15:py25 blazer$
>
> blazers-macbook-pro-15:py25 blazer$ echo $DYLD_LIBRARY_PATH
>
> /Users/blazer/src/trilinos/trilinos-8.0.8/py25/lib:/Users/blazer/ 
> src/trilinos/trilinos-8.0.8/py25/packages/PyTrilinos/shared
>
> blazers-macbook-pro-15:py25 blazer$ echo $PYTHONPATH
>
> /Users/blazer/src/trilinos/trilinos-8.0.8/py25
>
> blazers-macbook-pro-15:py25 blazer$
>
> blazers-macbook-pro-15:py25 blazer$ gcc -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)
>
> blazers-macbook-pro-15:py25 blazer$
>
>
>
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users




More information about the Trilinos-Users mailing list