#60117 closed defect (duplicate)
Failed to build clang-3.7 (and any other versions clang).
Reported by: | cave-canem | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.2 |
Keywords: | Cc: | cave-canem0@…, larryv (Lawrence Velázquez), kencu (Ken), cave-canem | |
Port: | clang-3.7 |
Description (last modified by cave-canem)
Hi ALL!
My computer:
uname -srm Darwin 13.4.0 x86_64
My Xcode:
spctl --assess --verbose /Applications/Xcode.app /Applications/Xcode.app: accepted source=Apple System override=security disabled
My SDK:
xcrun --sdk macosx --show-sdk-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk xcrun --sdk macosx.internal --show-sdk-path xcodebuild: error: SDK "macosx.internal" cannot be located. xcodebuild: error: SDK "macosx.internal" cannot be located. xcrun: error: unable to lookup item 'Path' in SDK 'macosx.internal' xcodebuild -sdk macosx -version MacOSX10.10.sdk - OS X 10.10 (macosx10.10) SDKVersion: 10.10 Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk PlatformVersion: 1.1 PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform ProductBuildVersion: 14A383 ProductCopyright: 1983-2014 Apple Inc. ProductName: Mac OS X ProductUserVisibleVersion: 10.10 ProductVersion: 10.10 which -a xcrun /usr/bin/xcrun ls -le@O /usr/bin/xcrun -rwxr-xr-x 1 root wheel compressed 13968 6 дек 2015 /usr/bin/xcrun stat -x /usr/bin/xcrun | grep -Ei "(acc|modi|cha)" Access: Tue Apr 2 14:35:33 2019 Modify: Sun Dec 6 02:34:58 2015 Change: Fri May 25 08:43:23 2018
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!
Attachments (2)
Change History (17)
Changed 5 years ago by cave-canem
Attachment: | main.log.tar.gz added |
---|
comment:1 follow-up: 3 Changed 5 years ago by kencu (Ken)
comment:2 Changed 5 years ago by cave-canem
Thanks a lot for the answer!
I look forward to your instruction!
comment:3 follow-up: 4 Changed 5 years ago by cave-canem
Replying to kencu:
This a problem with base. See <https://trac.macports.org/ticket/59157>.
Sorry.
I will see if I can post up some instructions you might use to get around this issue.
Hi kency (Ken).
A small addition:
xcodebuild -sdk macosx -version MacOSX10.10.sdk - OS X 10.10 (macosx10.10) SDKVersion: 10.10 Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk PlatformVersion: 1.1 PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform ProductBuildVersion: 14A383 ProductCopyright: 1983-2014 Apple Inc. ProductName: Mac OS X ProductUserVisibleVersion: 10.10 ProductVersion: 10.10
spctl --assess --verbose /Applications/Xcode.app /Applications/Xcode.app: accepted source=Apple System override=security disabled
Thanks a lot for the answer!
I look forward to your instruction!
comment:4 Changed 5 years ago by cave-canem
Replying to cave-canem:
Replying to kencu:
This a problem with base. See <https://trac.macports.org/ticket/59157>.
Sorry.
I will see if I can post up some instructions you might use to get around this issue.
Hi kency (Ken).
A small addition:
xcodebuild -sdk macosx -version MacOSX10.10.sdk - OS X 10.10 (macosx10.10) SDKVersion: 10.10 Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk PlatformVersion: 1.1 PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform ProductBuildVersion: 14A383 ProductCopyright: 1983-2014 Apple Inc. ProductName: Mac OS X ProductUserVisibleVersion: 10.10 ProductVersion: 10.10spctl --assess --verbose /Applications/Xcode.app /Applications/Xcode.app: accepted source=Apple System override=security disabledThanks a lot for the answer!
I look forward to your instruction!
A thousand apologies to Kencu! I spelled your name wrong!
Mille excuses à Kencu! J'ai mal orthographié ton nom!
Kencu, тысяча извинений! Я неправильно написал Ваше имя!
comment:5 Changed 5 years ago by mf2k (Frank Schima)
The Priority field is for use by Macports team members only, please do not set it.
comment:6 Changed 5 years ago by mf2k (Frank Schima)
In the future, please add the port maintainer(s) to Cc (port info --maintainers clang-3.7
), if any.
comment:7 Changed 5 years ago by mf2k (Frank Schima)
Cc: | larryv kencu added |
---|---|
Keywords: | clang make bug removed |
Owner: | set to jeremyhu |
Priority: | High → Normal |
Status: | new → assigned |
comment:8 Changed 5 years ago by cave-canem
Cc: | cave-canem added |
---|---|
Description: | modified (diff) |
comment:9 Changed 5 years ago by cave-canem
Description: | modified (diff) |
---|
Changed 5 years ago by cave-canem
Attachment: | Main_log+Make.tar.gz added |
---|
Main.log and ../runtime/compiler-rt/Makefile
comment:10 Changed 5 years ago by cave-canem
Hi kencu (Ken)!
I uninstalled MacPorts, and installed the second copy again, but this time v2.6.99.
And again I can not build clang-3.7!
It seems to me that the bug is in
/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
I attach this file and the general log.
I also added in the main post additional information about my Xcode and SDK.
Please help me solve this problem!
comment:12 Changed 5 years ago by kencu (Ken)
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
this is #59157
comment:13 Changed 5 years ago by kencu (Ken)
So I just fixed a couple of clang versions to start with. It might turn out that every clang port needs this, not sure yet. I don't really have the time to test this on every version of clang and on every OS system that we build clang for, so ...
comment:14 Changed 5 years ago by cave-canem
Now it works, anyway for clang-3.7 (10.9)
Tre dankema, multan dankon!
Admodum gratus, gratias tibi valde!
Весьма признателен, большое спасибо!
Very grateful, thank you very much!
Très reconnaissant, merci beaucoup!
Sehr dankbar, vielen Dank!
Muy agradecido, muchas gracias!
非常に感謝します、どうもありがとう!
非常感謝,非常感謝!
אסיר תודה, תודה רבה!
This a problem with base. See <https://trac.macports.org/ticket/59157>.
Sorry.
I will see if I can post up some instructions you might use to get around this issue.