Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-3043

ld: -rpath can only be used when targeting Mac OS X 10.5 or later collect2: ld returned 1 exit status

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Won't Fix
    • Affects Version/s: 5.28/00
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Mac OS

      Description

      Hi,
      I received advice how to solve compilation error, however the system probably ignore export MACOSX_DEPLOYMENT_TARGET=10.5
      I received the same error message
      However I used
      ./configure macosx64 -disable python

      h-3.2# gcc -v
      Using built-in specs.
      Target: i686-apple-darwin9
      Configured with: /var/tmp/gcc_42/gcc_42-5564~1/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/usr/share/man --enable-languages=c,objc,c+,obj-c+ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-gxx-include-dir=/usr/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --host=i686-apple-darwin9 --target=i686-apple-darwin9
      Thread model: posix
      gcc version 4.2.1 (Apple Inc. build 5564)

      and recommended root v5-27-02

      Posted by: Fons Rademakers <rdm>
      Related to: [ROOT bugs #65732 ld: -rpath can only be used when targeting Mac
      OS X 10.5 or later
      URL: <http://savannah.cern.ch/bugs/?65732>

      Status: Need Info -> Fixed
      Open/Closed: Open -> Closed

      Submitted by:
      Originator Email: jcernak@kosice.upjs.sk
      Bug / Feature: Bug report
      Category: Other
      Priority: 5 - Normal
      Severity: 3 - Normal
      Status: Fixed
      Privacy: Public
      Assigned to: rdm
      Open/Closed: Closed
      Release: v5-26-00b
      Discussion Lock:
      Operating System: Mac OS

      ----Reply from Fons Rademakers <rdm> on 2010-05-17 16:46 (GMT)----
      Did you manage to solve this problem by installing the latest version of
      gfortran compatible with 10.5?

      Cheers, Fons.

      ----Reply from Fons Rademakers <rdm> on 2010-04-13 13:50 (GMT)----
      Do you have in .bash_profile or .bashrc something like:

      export MACOSX_DEPLOYMENT_TARGET=10.4

      Do

      echo $MACOSX_DEPLOYMENT_TARGET

      to see if it is set.

      if so please change it to

      export MACOSX_DEPLOYMENT_TARGET=10.5

      Cheers, Fons.

      here is error message

      gfortran -O2 -m64 -o bin/g2root main/src/g2root.o \
      -Llib lib/libminicern.so \
      /sw/lib/gcc4.2/lib/gcc/i686-apple-darwin9/4.2.2/../../../x86_64/libgfortran.dylib /sw/lib/gcc4.2/lib/gcc/i686-apple-darwin9/4.2.2/x86_64/libgfortranbegin.a -lm -Wl,-rpath,@loader_path/../lib -pthread -ldl
      ld: -rpath can only be used when targeting Mac OS X 10.5 or later
      collect2: ld returned 1 exit status
      make: *** [bin/g2root] Error 1
      rm core/utils/src/RStl_tmp.cxx core/utils/src/rootcint_tmp.cxx

        Attachments

          Activity

            People

            • Assignee:
              rdm Fons Rademakers
              Reporter:
              none None (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: