[Trilinos-Users] Mac install problem

Littlewood, David John djlittl at sandia.gov
Fri Oct 23 15:41:14 MDT 2009


Hi Amit,

The problem is a conflict between crt1.o and crt1.10.5.o, which are system libraries for OS 10.4 and OS 10.5 (both are present on 10.5 machines to allow for the creation of binaries that will run on 10.4).  I think you can fix the problem by adding

-D CMAKE_OSX_DEPLOYMENT_TARGET=10.4

to your do-configure script.

Dave


On 10/23/09 3:32 PM, "Amit Joshi" <amitj at bcm.edu> wrote:

Hello Folks,
  I am trying to install trilinos on an apple macbook pro running leopard (10.5.8). I have gcc 4.2 and gfortran 4.2 installed and working correctly for other programs.
When call the do-configure script, I get the following error:
*********************************************
    Linking CXX executable VerifyFortranC
    "/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/VerifyFortranC.dir/link.txt --verbose=1
    /usr/bin/g++    -mmacosx-version-min=10.5 -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/i686-apple-darwin8/4.2.3 -L/usr/local/lib -lcrt1.o -lgfortranbegin -lgfortran
    ld: duplicate symbol start in /usr/lib/crt1.o and /usr/lib/crt1.10.5.o
   collect2: ld returned 1 exit status
    make[2]: *** [VerifyFortranC] Error 1
    make[1]: *** [CMakeFiles/VerifyFortranC.dir/all] Error 2
    make: *** [all] Error 2

Call Stack (most recent call first):
  cmake/TrilinosFortranMangling.cmake:11 (FortranCInterface_VERIFY)
  cmake/TrilinosProbeEnv.cmake:60 (INCLUDE)
  CMakeLists.txt:336 (INCLUDE)
**********************************************************
Maybe other mac users would have encountered a similar problem. Any help will be much appreciated.
Thanks
Amit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20091023/f7ddf1c9/attachment.html 


More information about the Trilinos-Users mailing list