[MacPorts] #60117: Failed to build clang-3.7 (and any other versions clang).

MacPorts noreply at macports.org
Fri Feb 21 03:05:22 UTC 2020


#60117: Failed to build clang-3.7 (and any other versions clang).
------------------------------+-----------------------
 Reporter:  cave-canem        |      Owner:  (none)
     Type:  defect            |     Status:  new
 Priority:  High              |  Milestone:
Component:  ports             |    Version:  2.6.2
 Keywords:  clang, make, bug  |       Port:  clang-3.7
------------------------------+-----------------------
 == Hi ALL! ==


 My computer:
 {{{
 uname -srm
 Darwin 13.4.0 x86_64
 }}}
 My macports.conf:
 {{{
 prefix /opt/MacPorts
 build_arch x86_64
 }}}
 My MacPorts:
 {{{
 MacPorts 2.6.2
 }}}
 My **fresh secondory copy** of ports:
 {{{
 port installed
 The following ports are currently installed:
   bzip2 @1.0.8_0 (active)
   cctools @927.0.2_0+llvm37 (active)
   clang_select @2.2_0 (active)
   db48 @4.8.30_4 (active)
   dylibbundler @0.4.4_3 (active)
   expat @2.2.9_0 (active)
   gdbm @1.18.1_1 (active)
   gettext @0.19.8.1_2 (active)
   gperf @3.1_0 (active)
   icu @65.1_1 (active)
   ld64 @3_2+ld64_274 (active)
   ld64-274 @274.2_0+llvm37 (active)
   libcxx @5.0.1_4 (active)
   libedit @20191231-3.1_0 (active)
   libffi @3.2.1_0 (active)
   libiconv @1.16_0 (active)
   libmacho-headers @927.0.2_0 (active)
   libunwind-headers @5.0.1_0 (active)
   libxml2 @2.9.10_0 (active)
   llvm-3.7 @3.7.1_4 (active)
   llvm_select @2_0 (active)
   ncurses @6.2_0 (active)
   openssl @1.1.1d_0 (active)
   perl5 @5.26.1_0+perl5_28 (active)
   perl5.28 @5.28.2_2 (active)
   pkgconfig @0.29.2_0 (active)
   python2_select @0.0_3 (active)
   python27 @2.7.17_0 (active)
   python_select @0.3_8 (active)
   readline @8.0.000_0 (active)
   sqlite3 @3.31.1_0 (active)
   xz @5.2.4_0 (active)
   zlib @1.2.11_0 (active)
 }}}
 My clang:
 {{{
 clang --version
 Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
 Target: x86_64-apple-darwin13.4.0
 Thread model: posix
 }}}
 My GCC:

 {{{
 gcc --version
 Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
 --with-gxx-include-dir=/usr/include/c++/4.2.1
 Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
 Target: x86_64-apple-darwin13.4.0
 Thread model: posix
 }}}


 ----

 == Could not build clang-3.7 (and any other versions of clang), even
 though buildsarch x86_64 is prescribed in macports.conf.
 == Make is trying to install multiple RT_tools for useless OS X 10.4 ==
 == (It seems to me the problem is here): ==
 {{{
 /opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime
 /compiler-rt/Makefile
 }}}


 {{{
 ...
 # FIXME: Eventually, we want some kind of configure support for this. We
 want to
 # build/install runtime libraries for as many targets as clang was
 configured to
 # support.
 RuntimeDirs :=
 ifeq ($(OS),Darwin)
 RuntimeDirs += darwin macho_embedded
 RuntimeLibrary.darwin.Configs := \
         eprintf.a 10.4.a osx.a cc_kext.a \
         asan_osx_dynamic.dylib \
         profile_osx.a \
         ubsan_osx_dynamic.dylib

 IOS_SDK := $(shell xcrun --show-sdk-path -sdk iphoneos 2> /dev/null)
 IOSSIM_SDK := $(shell xcrun --show-sdk-path -sdk iphonesimulator 2>
 /dev/null)

 ifneq ($(IOS_SDK)$(IOSSIM_SDK),)
 RuntimeLibrary.darwin.Configs += ios.a profile_ios.a
 endif
 ...
 }}}


 == See the logs: ==


 ----

 {{{
 ...
 checking how to run the C preprocessor... /usr/bin/clang -E
 checking whether GCC or Clang is our host compiler... clang
 configure: WARNING: Unknown project (libcxx) won't be configured
 automatically
 checking build system type... x86_64-apple-darwin13
 checking host system type... x86_64-apple-darwin13
 checking target system type... x86_64-apple-darwin13
 checking type of operating system we're going to host on... Darwin
 checking type of operating system we're going to target... Darwin
 checking target architecture... x86_64
 checking whether Clang is new enough... yes
 ...
 llvm[3]: Copying runtime library darwin/10.4 to build dir

 llvm[3]: Copying runtime library darwin/eprintf to build dir

 cp
 /opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime
 /compiler-rt/clang_darwin/10.4/libcompiler_rt.a
 /opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.10.4.a
 llvm[3]: Copying runtime library darwin/osx to build dir

 cp
 /opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime
 /compiler-rt/clang_darwin/osx/libcompiler_rt.a
 /opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.osx.a

 cp
 /opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime
 /compiler-rt/clang_darwin/eprintf/libcompiler_rt.a
 /opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.eprintf.a
 llvm[3]: Copying runtime library darwin/cc_kext to build dir

 cp
 /opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime
 /compiler-rt/clang_darwin/cc_kext/libcompiler_rt.a
 /opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.cc_kext.a

 cp:
 /opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime
 /compiler-rt/clang_darwin/10.4/libcompiler_rt.a: No such file or directory

 make[3]: ***
 [/opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.10.4.a]
 Error 1
 make[3]: *** Waiting for unfinished jobs....
 cp:
 /opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime
 /compiler-rt/clang_darwin/osx/libcompiler_rt.a: No such file or directory

 make[3]: Leaving directory
 `/opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime
 /compiler-rt'

 make[2]: *** [compiler-rt/.makeall] Error 2

 make[1]: *** [all] Error 1

 make[1]: Leaving directory
 `/opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang'
 make: *** [all] Error 1
 make: Leaving directory
 `/opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build'
 Command failed:  cd
 "/opt/MacPorts/var/macports/build/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build"
 && /usr/bin/make -j4 -w clang-only
 Exit code: 2

 Error: Failed to build clang-3.7: command execution failed
 Error: See
 /opt/MacPorts/var/macports/logs/_opt_MacPorts_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.7/clang-3.7/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port clang-3.7 failed
 }}}

 ----

 = Please, help me! =

-- 
Ticket URL: <https://trac.macports.org/ticket/60117>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list