[Trilinos-Users] Problems configuring on OS X

John R. Cary cary at colorado.edu
Thu Oct 29 08:09:19 MDT 2009


Upon further review, it may not be the fortran at all, as the objects 
are both in /usr/lib.

This is Snow Leopard:

cavity.cary$ uname -a
Darwin cavity.txcorp.com 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31 
22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386

John

John R. Cary wrote:
> The trilinos configuration error is
>
>     [100%] Building CXX object CMakeFiles/VerifyFortranC.dir/VerifyCXX.cxx.o
>     /usr/bin/c++   -DVERIFY_CXX -mmacosx-version-min=10.6 
> -I/Users/cary/projects/vpall/builds/trilinos/ser/CMakeFiles/FortranCInterface/VerifyCXX   
> -o CMakeFiles/VerifyFortranC.dir/VerifyCXX.cxx.o -c 
> /usr/local/contrib/cmake-2.8.0-rc3-ser/share/cmake-2.8/Modules/FortranCInterface/Verify/VerifyCXX.cxx
>     Linking CXX executable VerifyFortranC
>     /usr/local/contrib/cmake-2.8.0-rc3-ser/bin/cmake -E 
> cmake_link_script CMakeFiles/VerifyFortranC.dir/link.txt --verbose=1
>     /usr/bin/c++    -mmacosx-version-min=10.6 -Wl,-search_paths_first 
> -headerpad_max_install_names  CMakeFiles/VerifyFortranC.dir/main.c.o 
> CMakeFiles/VerifyFortranC.dir/VerifyC.c.o 
> CMakeFiles/VerifyFortranC.dir/VerifyFortran.f.o 
> CMakeFiles/VerifyFortranC.dir/VerifyCXX.cxx.o  -o VerifyFortranC  
> -L/usr/local/lib/gcc/x86_64-apple-darwin10/4.5.0 -L/usr/local/lib 
> -lcrt1.10.5.o -lgfortran -lgcc_s.10.5
>     ld: duplicate symbol start in /usr/lib/crt1.10.5.o and 
> /usr/lib/crt1.10.6.o
>     collect2: ld returned 1 exit status
>     make[2]: *** [VerifyFortranC] Error 1
>     make[1]: *** [CMakeFiles/VerifyFortranC.dir/all] Error 2
>     make: *** [all] Error 2
>
> The error is seen to come from the inclusion of 10.5 and 10.6 versions of
> crt1.  The probable reason is that for gcc we use the system, but since we
> need a more recent version of gfortran, we use 4.5 from hpc.sourceforge.net.
>
> Making this consistent, i.e., installing gcc from hpc, has caused other
> problems with dynamic libs, so we prefer not to go that route.
>
> With this identical setup, trilinos-9.0.3 works fine.
>
> John Cary
>
> _______________________________________________
> 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