[MacPorts] #53600: clang-4.0 @4.0-r292772_1: cannot build executables on OS X 10.10.5

MacPorts noreply at macports.org
Mon Feb 20 00:40:14 UTC 2017


#53600: clang-4.0 @4.0-r292772_1: cannot build executables on OS X 10.10.5
------------------------+-----------------
  Reporter:  mopihopi   |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  clang-4.0  |
------------------------+-----------------

Comment (by mopihopi):

 {{{
 $ clang-mp-4.0 -v test.c
 clang version 4.0.0 (branches/release_40 292772)
 Target: x86_64-apple-darwin14.5.0
 Thread model: posix
 InstalledDir: /opt/local/libexec/llvm-4.0/bin
  "/opt/local/libexec/llvm-4.0/bin/clang" -cc1 -triple x86_64-apple-
 macosx10.10.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-
 usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-
 value-names -main-file-name test.c -mrelocation-model pic -pic-level 2
 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables
 -target-cpu core2 -target-linker-version 274.1 -v -dwarf-column-info
 -debugger-tuning=lldb -resource-dir
 /opt/local/libexec/llvm-4.0/bin/../lib/clang/4.0.0 -fdebug-compilation-dir
 /Users/markh/tmp -ferror-limit 19 -fmessage-length 90 -stack-protector 1
 -fblocks -fobjc-runtime=macosx-10.10.0 -fencode-extended-block-signature
 -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o
 /var/folders/pm/6qxfxkcj3bz9k7zpcv82g86h0000gn/T/test-fadeac.o -x c test.c
 clang -cc1 version 4.0.0 based upon LLVM 4.0.0 default target x86_64
 -apple-darwin14.5.0
 #include "..." search starts here:
 #include <...> search starts here:
  /usr/local/include
  /opt/local/libexec/llvm-4.0/bin/../lib/clang/4.0.0/include
  /usr/include
  /System/Library/Frameworks (framework directory)
  /Library/Frameworks (framework directory)
 End of search list.
  "/opt/local/libexec/llvm-4.0/bin/ld" -demangle -lto_library
 /opt/local/libexec/llvm-4.0/lib/libLTO.dylib -no_deduplicate -dynamic
 -arch x86_64 -macosx_version_min 10.10.0 -o a.out
 /var/folders/pm/6qxfxkcj3bz9k7zpcv82g86h0000gn/T/test-fadeac.o -lSystem
 /opt/local/libexec/llvm-4.0/bin/../lib/clang/4.0.0/lib/darwin/libclang_rt.osx.a
 ld: unknown option: -no_deduplicate
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 $
 $ ls -l /opt/local/libexec/llvm-4.0/bin/ld
 lrwxr-xr-x  1 root  admin  26 Feb  3 05:23
 /opt/local/libexec/llvm-4.0/bin/ld@ -> /opt/local/libexec/ld64/ld
 $ ls -l /opt/local/libexec/ld64/ld
 lrwxr-xr-x  1 root  admin  8 Dec 27 10:03 /opt/local/libexec/ld64/ld@ ->
 ld-xcode
 $ ls -l /opt/local/libexec/ld64/ld-xcode
 -rwxr-xr-x  1 root  admin  169 Dec 19 03:38 /opt/local/libexec/ld64/ld-
 xcode*
 $
 $ port installed 'ld*' and active
 The following ports are currently installed:
   ld64 @3_0+ld64_xcode (active)
   ld64-latest @274.1_1+llvmdev (active)
   ld64-xcode @2_0 (active)
 $ uname -v
 Darwin Kernel Version 14.5.0: Sun Sep 25 22:07:15 PDT 2016;
 root:xnu-2782.50.9~1/RELEASE_X86_64
 $ xcodebuild -version
 Xcode 7.2.1
 Build version 7C1002
 $
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53600#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list