Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#56113 closed defect (fixed)

libvpx @1.7.0: Toolchain is unable to link executables due to ld: unexpected token: !tapi-tbd-v2

Reported by: korseby (korseby) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc:
Port: libvpx

Description

libvpx fails to build on macOS 10.13.3 and latest Xcode 9.2 (Build version 9C40b).

Searching the web turned an old bugreport: https://bugzilla.gnome.org/show_bug.cgi?id=756442

Might be related to XCode?

port -v install libvpx
--->  Computing dependencies for libvpx.
--->  Configuring libvpx
Executing:  cd "/opt/var/macports/build/_opt_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libvpx/libvpx/work/libvpx-1.7.0" && ./configure --prefix=/opt --enable-vp8 --enable-vp9 --enable-internal-stats --enable-pic --enable-postproc --enable-multithread --enable-runtime-cpu-detect --enable-experimental --enable-spatial-svc --enable-shared --disable-install-docs --disable-debug-libs --disable-examples --disable-unit-tests --target=x86_64-darwin-gcc 
  enabling vp8
  enabling vp9
  enabling internal_stats
  enabling pic
  enabling postproc
  enabling runtime_cpu_detect
  enabling experimental
  enabling shared
  disabling install_docs
  disabling debug_libs
  disabling examples
  disabling unit_tests
Configuring for target 'x86_64-darwin-gcc'
  enabling x86_64
  enabling mmx
  enabling sse
  enabling sse2
  enabling sse3
  enabling ssse3
  enabling sse4_1
  enabling avx
  enabling avx2
  enabling avx512
  using yasm
Toolchain is unable to link executables

Configuration failed. This could reflect a misconfiguration of your
toolchains, improper options selected, or another problem. If you
don't see any useful error messages above, the next step is to look
at the configure error log file (config.log) to determine what
configure was trying to do when it died.
Command failed:  cd "/opt/var/macports/build/_opt_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libvpx/libvpx/work/libvpx-1.7.0" && ./configure --prefix=/opt --enable-vp8 --enable-vp9 --enable-internal-stats --enable-pic --enable-postproc --enable-multithread --enable-runtime-cpu-detect --enable-experimental --enable-spatial-svc --enable-shared --disable-install-docs --disable-debug-libs --disable-examples --disable-unit-tests --target=x86_64-darwin-gcc 
Exit code: 1
Error: Failed to configure libvpx, consult /opt/var/macports/build/_opt_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libvpx/libvpx/work/libvpx-1.7.0/config.log
Error: Failed to configure libvpx: configure failure: command execution failed
Error: See /opt/var/macports/logs/_opt_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libvpx/libvpx/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port libvpx failed

Attachments (1)

config.log (50.5 KB) - added by korseby (korseby) 7 years ago.
config.log

Download all attachments as: .zip

Change History (10)

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Cc: dbevans removed
Keywords: libvpx removed
Owner: set to dbevans
Status: newassigned

comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: libvpxlibvpx @1.7.0: Toolchain is unable to link executables

Please attach the config.log file so we can see what went wrong.

comment:3 Changed 7 years ago by korseby (korseby)

Here's the output of macports again. I also attached config.log to the first comment.

# port -v install libvpx
--->  Computing dependencies for libvpx.
--->  Fetching distfiles for libvpx
Cloning into '/opt/var/macports/build/_opt_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libvpx/libvpx/work/libvpx-1.7.0'...
remote: Sending approximately 85.97 MiB ...        
remote: Counting objects: 16, done        
remote: Total 144926 (delta 110686), reused 144926 (delta 110686)        
Receiving objects: 100% (144926/144926), 85.97 MiB | 24.98 MiB/s, done.
Resolving deltas: 100% (110686/110686), done.
--->  Verifying checksums for libvpx
--->  Extracting libvpx
--->  Applying patches to libvpx
--->  Applying patch-build-make-configure.sh.diff
Executing:  cd "/opt/var/macports/build/_opt_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libvpx/libvpx/work/libvpx-1.7.0" && /usr/bin/patch -p0 < '/opt/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/multimedia/libvpx/files/patch-build-make-configure.sh.diff'
patching file build/make/configure.sh
--->  Applying patch-configure.diff
Executing:  cd "/opt/var/macports/build/_opt_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libvpx/libvpx/work/libvpx-1.7.0" && /usr/bin/patch -p0 < '/opt/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/multimedia/libvpx/files/patch-configure.diff'
patching file configure
--->  Applying patch-Makefile.diff
Executing:  cd "/opt/var/macports/build/_opt_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libvpx/libvpx/work/libvpx-1.7.0" && /usr/bin/patch -p0 < '/opt/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/multimedia/libvpx/files/patch-Makefile.diff'
patching file build/make/Makefile
--->  Configuring libvpx
Executing:  cd "/opt/var/macports/build/_opt_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libvpx/libvpx/work/libvpx-1.7.0" && ./configure --prefix=/opt --enable-vp8 --enable-vp9 --enable-internal-stats --enable-pic --enable-postproc --enable-multithread --enable-runtime-cpu-detect --enable-experimental --enable-spatial-svc --enable-shared --disable-install-docs --disable-debug-libs --disable-examples --disable-unit-tests --target=x86_64-darwin-gcc 
  enabling vp8
  enabling vp9
  enabling internal_stats
  enabling pic
  enabling postproc
  enabling runtime_cpu_detect
  enabling experimental
  enabling shared
  disabling install_docs
  disabling debug_libs
  disabling examples
  disabling unit_tests
Configuring for target 'x86_64-darwin-gcc'
  enabling x86_64
  enabling mmx
  enabling sse
  enabling sse2
  enabling sse3
  enabling ssse3
  enabling sse4_1
  enabling avx
  enabling avx2
  enabling avx512
  using yasm
Toolchain is unable to link executables

Configuration failed. This could reflect a misconfiguration of your
toolchains, improper options selected, or another problem. If you
don't see any useful error messages above, the next step is to look
at the configure error log file (config.log) to determine what
configure was trying to do when it died.
Command failed:  cd "/opt/var/macports/build/_opt_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libvpx/libvpx/work/libvpx-1.7.0" && ./configure --prefix=/opt --enable-vp8 --enable-vp9 --enable-internal-stats --enable-pic --enable-postproc --enable-multithread --enable-runtime-cpu-detect --enable-experimental --enable-spatial-svc --enable-shared --disable-install-docs --disable-debug-libs --disable-examples --disable-unit-tests --target=x86_64-darwin-gcc 
Exit code: 1
Error: Failed to configure libvpx, consult /opt/var/macports/build/_opt_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libvpx/libvpx/work/libvpx-1.7.0/config.log
Error: Failed to configure libvpx: configure failure: command execution failed
Error: See /opt/var/macports/logs/_opt_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libvpx/libvpx/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port libvpx failed

Changed 7 years ago by korseby (korseby)

Attachment: config.log added

config.log

comment:4 Changed 7 years ago by kencu (Ken)

It would appear you may have run into this bug: 53784.

WHY you are running into this is less clear, but for some reason I notice your port is trying to build with macports-clang-3.9 instead of the Xcode version.

The recommended fix by the MacPorts guru is to do this:

sudo port -v install ld64 +ld64_xcode 

By the way, I see you have installed MacPorts into a custom prefix, /opt instead of /opt/local. Certainly your option to do that, but in doing so, you are missing out on all the premade binaries that MacPorts offers, that are set up for a prefix of /opt/local. Something to ponder.

comment:5 Changed 7 years ago by kencu (Ken)

Summary: libvpx @1.7.0: Toolchain is unable to link executableslibvpx @1.7.0: Toolchain is unable to link executables due to ld: unexpected token: !tapi-tbd-v2

comment:6 Changed 7 years ago by korseby (korseby)

It works when I cd into "/opt/var/macports/build/_opt_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libvpx/libvpx/work/libvpx-1.7.0" and

run configure manually ("./configure --prefix=/opt --enable-vp8 --enable-vp9 --enable-internal-stats --enable-pic --enable-postproc --enable-multithread --enable-runtime-cpu-detect --enable-experimental --enable-spatial-svc --enable-shared --disable-install-docs --disable-debug-libs --disable-examples --disable-unit-tests --target=x86_64-darwin-gcc ").

port -v install ld64 +ld64_xcode fixed the problem.

Does port see other PATHs and LDPATHs when compared to me in the terminal?

comment:7 Changed 7 years ago by kencu (Ken)

yes it does. Notice that isysroot option in your original config....

comment:8 Changed 6 years ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

this has been fixed by various upgrades to ld64

comment:9 Changed 6 years ago by jmroot (Joshua Root)

Worked around anyway. #53784 is still open pending an actual fix.

Note: See TracTickets for help on using tickets.