[MacPorts] #58917: llvm-8.0 fails to build (link errors?)

MacPorts noreply at macports.org
Tue Sep 3 14:50:20 UTC 2019


#58917: llvm-8.0 fails to build (link errors?)
--------------------+----------------------
 Reporter:  iEFdev  |      Owner:  jeremyhu
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.5.4
 Keywords:          |       Port:  llvm-8.0
--------------------+----------------------
 A few weeks ago, when gcc9 dropped in a new version when I was updating my
 ports. So it started to download and build llvm-7.0, and it failed. Left
 it there hoping it was fixing it self over the next days or so. But then
 all my installed clang/llvm's showed up and needed an update - and now it
 wants to start building with llvm-8.0. And it fails to. So, I can't get
 anywhere from now. I guess you've made a bigger change somewhere.

 Logfile says:

 {{{
 :info:build # command-line-arguments
 :info:build /opt/local/lib/go/pkg/tool/darwin_amd64/link: running
 /opt/local/bin/clang-mp-5.0 failed: exit status 1
 :info:build Undefined symbols for architecture x86_64:
 :info:build   "_fstatat64", referenced from:
 :info:build       syscall.libc_fstatat64_trampoline in go.o
 :info:build   "_openat", referenced from:
 :info:build       syscall.libc_openat_trampoline in go.o
 :info:build   "_unlinkat", referenced from:
 :info:build       syscall.libc_unlinkat_trampoline in go.o
 :info:build ld: symbol(s) not found for architecture x86_64
 :info:build clang: error: linker command failed with exit code 1 (use -v
 to see invocation)
 :info:build make[2]: *** [bin/llvm-go] Error 2
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-8.0/llvm-8.0/work/build'
 :info:build make[1]: *** [tools/llvm-go/CMakeFiles/llvm-go.dir/all] Error
 2
 :info:build make[1]: *** Waiting for unfinished jobs....

 // ... //

 :error:build Failed to build llvm-8.0: command execution failed
 :debug:build Error code: CHILDSTATUS 8539 2
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-8.0/llvm-8.0/main.log
 for details.
 }}}


 I see that `go` is involved. I just noticed the other week it was possible
 to install in Lion again, so I did. Perhaps that's was causing it?

 ---

 I use the
 [https://trac.macports.org/wiki/LibcxxOnOlderSystems#LionandMountainLion
 LibcxxOnOlderSystems#LionandMountainLion], with clang-5.0 as the default.

 {{{
 cxx_stdlib         libc++

 default_compilers   macports-clang-5.0 macports-clang-4.0 macports-
 clang-3.9 macports-clang-3.7 gcc-4.2 llvm-gcc-4.2 apple-gcc-4.2
 }}}

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


More information about the macports-tickets mailing list