[MacPorts] #48403: clang-3.7 3.7-r241984: build failed fatal error: 'mach/x86_64/task.h' file not found when xcode-4.x on mountain lion
#48403: clang-3.7 3.7-r241984: build failed fatal error: 'mach/x86_64/task.h' file not found when xcode-4.x on mountain lion --------------------------+-------------------------------- Reporter: h.rayflood@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: haspatch | Port: clang-3.7 --------------------------+-------------------------------- Thank you for landing my patch #47729 I tried to build r241984, and I got following error on mountain lion using xcode-4.x. {{{ :info:build COMPILE: clang_darwin/asan_iossim_dynamic/x86_64: /s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt/lib/sanitizer_common/sanitizer_mac.cc :info:build /s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug+Asserts/bin/clang -std=c++11 -fno-exceptions -fPIC -funwind-tables -I/s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt/lib -I/s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt/include -arch x86_64 -fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -Werror -O3 -fomit-frame-pointer -mios-simulator-version-min=7.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -fno-builtin -gline-tables-only -stdlib=libc++ -DMAC_INTERPOSE_FUNCTIONS=1 -DASAN_DYNAMIC=1 -c -o /s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime /compiler- rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_mac.o /s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt/lib/sanitizer_common/sanitizer_mac.cc :info:build In file included from /s/macports_build/osx-10.8_xcode-4.4 /_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt/lib/sanitizer_common/sanitizer_mac.cc:43: :info:build In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/include/mach/mach.h:67: :info:build In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/include/mach/mach_interface.h:49: :info:build /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/include/mach/task.h:31:10: fatal error: 'mach/x86_64/task.h' file not found :info:build #include <mach/x86_64/task.h> :info:build ^ :info:build 1 error generated. :info:build make[4]: *** [/s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime /compiler- rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_mac.o] Error 1 :info:build make[4]: *** Waiting for unfinished jobs.... :info:build make[4]: Leaving directory `/s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt' :info:build make[3]: *** [BuildRuntimeLibraries] Error 2 }}} -- Ticket URL: <https://trac.macports.org/ticket/48403> MacPorts <https://www.macports.org/> Ports system for OS X
#48403: clang-3.7 3.7-r241984: build failed fatal error: 'mach/x86_64/task.h' file not found when xcode-4.x on mountain lion ---------------------------+-------------------------------- Reporter: h.rayflood@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: clang-3.7 | ---------------------------+-------------------------------- Comment (by h.rayflood@…): xcode-4.x don't have <mach/x86_64/task.h>. but iossim is targeting to x86_64.[[BR]] so we should avoid to build iossim when xcode-4.x on mountain lion.[[BR]] in r138590: {{{ Index: trunk/dports/lang/llvm-3.7/Portfile =================================================================== --- a/trunk/dports/lang/llvm-3.7/Portfile +++ b/trunk/dports/lang/llvm-3.7/Portfile @@ -232,5 +232,5 @@ } - if {${subport} eq "clang-${llvm_version}" && ${os.major} <= 10} { + if {${subport} eq "clang-${llvm_version}" && ${os.major} <= 11} { patchfiles-append leopard-no-asan.patch } }}} this probrem depends on xcodeversion, '''not os.major'''. -- Ticket URL: <https://trac.macports.org/ticket/48403#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#48403: clang-3.7 3.7-r241984: build failed fatal error: 'mach/x86_64/task.h' file not found when xcode-4.x on mountain lion ---------------------------+------------------------ Reporter: h.rayflood@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: clang-3.7 | ---------------------------+------------------------ Changes (by ryandesign@…): * cc: jeremyhu@… (removed) * owner: macports-tickets@… => jeremyhu@… Old description:
Thank you for landing my patch #47729
I tried to build r241984, and I got following error on mountain lion using xcode-4.x. {{{ :info:build COMPILE: clang_darwin/asan_iossim_dynamic/x86_64: /s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt/lib/sanitizer_common/sanitizer_mac.cc :info:build /s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug+Asserts/bin/clang -std=c++11 -fno-exceptions -fPIC -funwind-tables -I/s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt/lib -I/s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt/include -arch x86_64 -fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -Werror -O3 -fomit-frame-pointer -mios-simulator-version-min=7.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -fno-builtin -gline-tables-only -stdlib=libc++ -DMAC_INTERPOSE_FUNCTIONS=1 -DASAN_DYNAMIC=1 -c -o /s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime /compiler- rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_mac.o /s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt/lib/sanitizer_common/sanitizer_mac.cc :info:build In file included from /s/macports_build/osx-10.8_xcode-4.4 /_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt/lib/sanitizer_common/sanitizer_mac.cc:43: :info:build In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/include/mach/mach.h:67: :info:build In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/include/mach/mach_interface.h:49: :info:build /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/include/mach/task.h:31:10: fatal error: 'mach/x86_64/task.h' file not found :info:build #include <mach/x86_64/task.h> :info:build ^ :info:build 1 error generated. :info:build make[4]: *** [/s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime /compiler- rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_mac.o] Error 1 :info:build make[4]: *** Waiting for unfinished jobs.... :info:build make[4]: Leaving directory `/s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt' :info:build make[3]: *** [BuildRuntimeLibraries] Error 2 }}}
New description: Thank you for landing my patch #47729 I tried to build !r241984, and I got following error on mountain lion using xcode-4.x. {{{ :info:build COMPILE: clang_darwin/asan_iossim_dynamic/x86_64: /s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt/lib/sanitizer_common/sanitizer_mac.cc :info:build /s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug+Asserts/bin/clang -std=c++11 -fno-exceptions -fPIC -funwind-tables -I/s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt/lib -I/s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt/include -arch x86_64 -fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -Werror -O3 -fomit-frame-pointer -mios-simulator-version-min=7.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -fno-builtin -gline-tables-only -stdlib=libc++ -DMAC_INTERPOSE_FUNCTIONS=1 -DASAN_DYNAMIC=1 -c -o /s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime /compiler- rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_mac.o /s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt/lib/sanitizer_common/sanitizer_mac.cc :info:build In file included from /s/macports_build/osx-10.8_xcode-4.4 /_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt/lib/sanitizer_common/sanitizer_mac.cc:43: :info:build In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/include/mach/mach.h:67: :info:build In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/include/mach/mach_interface.h:49: :info:build /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/include/mach/task.h:31:10: fatal error: 'mach/x86_64/task.h' file not found :info:build #include <mach/x86_64/task.h> :info:build ^ :info:build 1 error generated. :info:build make[4]: *** [/s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime /compiler- rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_mac.o] Error 1 :info:build make[4]: *** Waiting for unfinished jobs.... :info:build make[4]: Leaving directory `/s/macports_build/osx-10.8_xcode-4.4/_opt_llvm- mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/trunk/projects /compiler-rt' :info:build make[3]: *** [BuildRuntimeLibraries] Error 2 }}} -- -- Ticket URL: <https://trac.macports.org/ticket/48403#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#48403: clang-3.7 3.7-r241984: build failed fatal error: 'mach/x86_64/task.h' file not found when xcode-4.x on mountain lion ---------------------------+------------------------ Reporter: h.rayflood@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: clang-3.7 | ---------------------------+------------------------ Comment (by jeremyhu@…): I know it's dependent on xcodeversion, but I decided to be *MORE* restrictive since I didn't want people with Xcode 4.2 on SL to use it, so I just did "<= SL" instead of "< Xcode 4" The issue you're hitting is different than the earlier issue. -- Ticket URL: <https://trac.macports.org/ticket/48403#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#48403: clang-3.7 3.7-r241984: build failed fatal error: 'mach/x86_64/task.h' file not found when xcode-4.x on mountain lion ---------------------------+------------------------ Reporter: h.rayflood@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: clang-3.7 | ---------------------------+------------------------ Comment (by jeremyhu@…): The issue here is that your iOS Simulator SDK doesn't support x86_64 (because we added support for x86_64 in iOS 7). The real thing we want to check is if your iOS Simulator SDK supportx x86_64 and if not, restrict the iossim asan dylib to i386. -- Ticket URL: <https://trac.macports.org/ticket/48403#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#48403: clang-3.7 asan_iossim dylib fails to build with Xcode 4.x due to sim SDK predating x86_64 support ---------------------------+------------------------ Reporter: h.rayflood@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: clang-3.7 | ---------------------------+------------------------ -- Ticket URL: <https://trac.macports.org/ticket/48403#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#48403: clang-3.7 asan_iossim dylib fails to build with Xcode 4.x due to sim SDK predating x86_64 support ---------------------------+------------------------ Reporter: h.rayflood@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: clang-3.7 | ---------------------------+------------------------ Comment (by jeremyhu@…): The provided patch doesn't really fix the problem in the build system. It just disables support for earlier SDKs, but I don't really care about supporting asan on such old configs anyways. If someone on ML wants it, they should update to the supported toolchain instead of sticking on Xcode 4.x, so I'll commit it. -- Ticket URL: <https://trac.macports.org/ticket/48403#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#48403: clang-3.7 asan_iossim dylib fails to build with Xcode 4.x due to sim SDK predating x86_64 support ---------------------------+------------------------ Reporter: h.rayflood@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: haspatch Port: clang-3.7 | ---------------------------+------------------------ Changes (by jeremyhu@…): * status: new => closed * resolution: => fixed Comment: r138797 If someone wants to actually fix the bug, please reopen with a patch. -- Ticket URL: <https://trac.macports.org/ticket/48403#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts