Opened 12 months ago

Last modified 10 months ago

#61280 assigned defect

clang-3.4: error: invalid version number in '-mlinker-version=6.'

Reported by: pulsiferpe Owned by: kencu (Ken)
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 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)

main.log.gz (159.9 KB) - added by pulsiferpe 12 months ago.
/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

Download all attachments as: .zip

Change History (9)

Changed 12 months ago by pulsiferpe

Attachment: main.log.gz added

/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

comment:1 Changed 12 months ago by jmroot (Joshua Root)

Cc: larryv kencu added
Owner: set to jeremyhu
Status: newassigned

comment:2 Changed 12 months 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 12 months 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'
Last edited 12 months ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:4 Changed 12 months 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 12 months 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 12 months ago by kencu (Ken)

well, heck -- now to see how we sort our way out of this one... thanks!

comment:7 Changed 12 months ago by ryandesign (Ryan Schmidt)

Description: modified (diff)
Keywords: mountainlion added
Summary: port upgrade clang-3.4 fails on Mountain Lionclang-3.4: error: invalid version number in '-mlinker-version=6.'

comment:8 Changed 10 months ago by kencu (Ken)

Cc: jeremyhu added; kencu removed
Owner: changed from jeremyhu to kencu
Note: See TracTickets for help on using tickets.