Opened 4 years ago
Last modified 3 years ago
#61280 assigned defect
clang-3.4: error: invalid version number in '-mlinker-version=6.'
Reported by: | pulsiferpe | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.3 |
Keywords: | mountainlion | Cc: | larryv (Lawrence Velázquez), jeremyhu (Jeremy Huddleston Sequoia) |
Port: | clang-3.4 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
On a MacBook Pro, OSX 10.8.5, Xtools 5.1.2, I run
sudo port upgrade outdated
immediately goes to
---> Computing dependencies for clang-3.4 ... ---> Building clang-3.4 Error: Failed to build clang-3.4: command execution failed
Looking at the log, it appears that this is the error:
:info:build clang: error: invalid version number in '-mlinker-version=6.'
I'll attach the log to the ticket.
Attachments (1)
Change History (10)
Changed 4 years ago by pulsiferpe
Attachment: | main.log.gz added |
---|
comment:1 Changed 4 years ago by jmroot (Joshua Root)
Cc: | larryv kencu added |
---|---|
Owner: | set to jeremyhu |
Status: | new → assigned |
comment:2 Changed 4 years ago by kencu (Ken)
Yeah, I've seen this too lately, on occasion:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/Release+Debug/bin/clang -arch x86_64 -dynamiclib -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/libcompiler_rt.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_allocator2.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_dll_thunk.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_fake_stack.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_globals.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_interceptors.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_linux.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_mac.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_malloc_linux.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_malloc_mac.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_malloc_win.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_new_delete.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_poisoning.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_posix.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_preinit.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_report.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_rtl.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_stack.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_stats.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_thread.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__asan/asan_win.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib/int_util.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__interception/interception_linux.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__interception/interception_mac.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__interception/interception_type_test.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__interception/interception_win.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_allocator.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_common.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_common_libcdep.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_coverage.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_flags.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_libc.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_libignore.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_linux.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_linux_libcdep.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_mac.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_platform_limits_linux.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_platform_limits_posix.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_posix.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_posix_libcdep.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_printf.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_stackdepot.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_stacktrace.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_stacktrace_libcdep.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_stoptheworld_linux_libcdep.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_suppressions.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_symbolizer.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_symbolizer_libcdep.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_symbolizer_posix_libcdep.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_symbolizer_win.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_thread_registry.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/work/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/x86_64/SubDir.lib__sanitizer_common/sanitizer_win.o -undefined dynamic_lookup -Wl,-ios_simulator_version_min,7.0.0 -mios-simulator-version-min=7.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk :info:build clang: error: invalid version number in '-mlinker-version=6.' :info:build clang: error: invalid version number in '-mlinker-version=6.'
Which version of ld64 are you using? This should tell us.
port -v installed | grep ld64
The current version of ld64 (ld64-latest) seems to be giving clang-3.4 trouble. To fix this myself, on 10.6.8, I briefly downgraded my ld64 to ld64-127 (default for 10.6.8), rebuilt clang-3.4, and then re-enabled ld64-latest.
comment:3 Changed 4 years ago by pulsiferpe
ld64 @3_3+ld64_274+universal (active) platform='darwin 12' archs='i386 x86_64' date='2020-06-12T20:14:57-0400' ld64-274 @274.2_0+llvm37+universal (active) platform='darwin 12' archs='i386 x86_64' date='2020-06-12T20:14:55-0400'
comment:4 Changed 4 years ago by kencu (Ken)
Hmmmmmm..... not making sense.
As an experiment, could you remove this extra little bit I added to the Portfile a while back, and see if it builds?
if { !${use_xcode} && ![file exists ${configure.developer_dir}/SDKs] } { use_xcode yes }
to do that, you
bbedit `port file clang-3.4`
remove that bit, and save the file. Then try rebuilding clang again.
comment:5 Changed 4 years ago by pulsiferpe
Hmm - looks like that did it! The build took about an hour, but it seems to be successful. (I'm glad it worked, because I did not succeed in installing ld64-127.) Thanks!
comment:6 Changed 4 years ago by kencu (Ken)
well, heck -- now to see how we sort our way out of this one... thanks!
comment:7 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | mountainlion added |
Summary: | port upgrade clang-3.4 fails on Mountain Lion → clang-3.4: error: invalid version number in '-mlinker-version=6.' |
comment:8 Changed 4 years ago by kencu (Ken)
Cc: | jeremyhu added; kencu removed |
---|---|
Owner: | changed from jeremyhu to kencu |
comment:9 Changed 3 years ago by kencu (Ken)
Owner: | changed from kencu to macports-tickets@… |
---|
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/clang-3.4/main.log