Opened 3 weeks ago

Closed 3 weeks ago

Last modified 3 weeks ago

#71115 closed defect (duplicate)

libvpx: Undefined symbols due to architecture mismatch

Reported by: jpmelko Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: sequoia arm64 Cc:
Port: libvpx

Description

lDionysos:root root# port upgrade outdated
--->  Fetching archive for cctools
--->  Attempting to fetch cctools-949.0.1_3+xcode.darwin_any.noarch.tbz2 from https://packages.macports.org/cctools
--->  Attempting to fetch cctools-949.0.1_3+xcode.darwin_any.noarch.tbz2.rmd160 from https://packages.macports.org/cctools
--->  Installing cctools @949.0.1_3+xcode
--->  Activating cctools @949.0.1_3+xcode
--->  Cleaning cctools
--->  Fetching archive for lzip
--->  Attempting to fetch lzip-1.24.1_0.darwin_24.arm64.tbz2 from https://packages.macports.org/lzip
--->  Attempting to fetch lzip-1.24.1_0.darwin_24.arm64.tbz2 from https://nue.de.packages.macports.org/lzip
--->  Attempting to fetch lzip-1.24.1_0.darwin_24.arm64.tbz2 from http://mirror.fcix.net/macports/packages/lzip
--->  Fetching distfiles for lzip
--->  Attempting to fetch lzip-1.24.1.tar.gz from https://download.savannah.gnu.org/releases/lzip/
--->  Verifying checksums for lzip
--->  Extracting lzip
--->  Configuring lzip
--->  Building lzip
--->  Staging lzip into destroot                         
--->  Installing lzip @1.24.1_0
--->  Activating lzip @1.24.1_0
--->  Cleaning lzip
--->  Computing dependencies for gmake
--->  Fetching archive for gmake
--->  Attempting to fetch gmake-4.4.1_1.darwin_24.arm64.tbz2 from https://packages.macports.org/gmake
--->  Attempting to fetch gmake-4.4.1_1.darwin_24.arm64.tbz2 from https://nue.de.packages.macports.org/gmake
--->  Attempting to fetch gmake-4.4.1_1.darwin_24.arm64.tbz2 from http://mirror.fcix.net/macports/packages/gmake
--->  Fetching distfiles for gmake
--->  Attempting to fetch make-4.4.1.tar.lz from ftp://ftp.lip6.fr/pub/gnu/make
--->  Verifying checksums for gmake
--->  Extracting gmake
--->  Configuring gmake
Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:
  strchr: found in make-4.4.1/config.log
--->  Building gmake
--->  Staging gmake into destroot                        
--->  Installing gmake @4.4.1_1
--->  Activating gmake @4.4.1_1
--->  Cleaning gmake
--->  Computing dependencies for pkgconfig
--->  Fetching archive for pkgconfig
--->  Attempting to fetch pkgconfig-0.29.2_0.darwin_24.arm64.tbz2 from https://packages.macports.org/pkgconfig
--->  Attempting to fetch pkgconfig-0.29.2_0.darwin_24.arm64.tbz2 from https://nue.de.packages.macports.org/pkgconfig
--->  Attempting to fetch pkgconfig-0.29.2_0.darwin_24.arm64.tbz2 from http://mirror.fcix.net/macports/packages/pkgconfig
--->  Fetching distfiles for pkgconfig
--->  Attempting to fetch pkg-config-0.29.2.tar.gz from https://pkg-config.freedesktop.org/releases/
--->  Verifying checksums for pkgconfig                                              
--->  Extracting pkgconfig
--->  Applying patches to pkgconfig
--->  Configuring pkgconfig
Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:
  exit: found in pkg-config-0.29.2/glib/config.log
  strcmp: found in pkg-config-0.29.2/glib/config.log
  pthread_condattr_setclock: found in pkg-config-0.29.2/glib/config.log
  pthread_cond_timedwait_monotonic: found in pkg-config-0.29.2/glib/config.log
  pthread_cond_timedwait_monotonic_np: found in pkg-config-0.29.2/glib/config.log
--->  Building pkgconfig
--->  Staging pkgconfig into destroot                    
--->  Installing pkgconfig @0.29.2_0
--->  Activating pkgconfig @0.29.2_0
--->  Cleaning pkgconfig
--->  Fetching archive for libvpx
--->  Attempting to fetch libvpx-1.13.1_0.darwin_24.arm64.tbz2 from https://packages.macports.org/libvpx
--->  Attempting to fetch libvpx-1.13.1_0.darwin_24.arm64.tbz2 from https://nue.de.packages.macports.org/libvpx
--->  Attempting to fetch libvpx-1.13.1_0.darwin_24.arm64.tbz2 from http://mirror.fcix.net/macports/packages/libvpx
--->  Computing dependencies for libvpx
--->  Fetching distfiles for libvpx
--->  Verifying checksums for libvpx
--->  Extracting libvpx
--->  Applying patches to libvpx
--->  Configuring libvpx
--->  Building libvpx                                    
Error: Failed to build libvpx: command execution failed  
Error: See /opt/local/var/macports/logs/_opt_local_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 if you believe there is a bug.

Squoia, Apple silicon

Attachments (2)

libvpx-main.log (642.6 KB) - added by jpmelko 3 weeks ago.
samba3-main.log (202.9 KB) - added by jpmelko 3 weeks ago.

Download all attachments as: .zip

Change History (6)

Changed 3 weeks ago by jpmelko

Attachment: libvpx-main.log added

comment:1 Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sequoia arm64 added
Owner: set to mascguy
Status: newassigned
Summary: unable to build livvxlibvpx: Undefined symbols due to architecture mismatch

In the log I see undefined symbols due to:

:info:build /usr/bin/clang++ -L/opt/local/lib -Wl,-headerpad_max_install_names -Os -stdlib=libc++ -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.sdk -arch arm64 -o test_libvpx ivfenc.c.o md5_utils.c.o test/active_map_refresh_test.cc.o test/active_map_test.cc.o test/alt_ref_aq_segment_test.cc.o test/altref_test.cc.o test/aq_segment_test.cc.o test/bench.cc.o test/borders_test.cc.o test/byte_alignment_test.cc.o test/config_test.cc.o test/cpu_speed_test.cc.o test/cq_test.cc.o test/decode_api_test.cc.o test/decode_corrupted.cc.o test/decode_svc_test.cc.o test/decode_test_driver.cc.o test/encode_api_test.cc.o test/encode_test_driver.cc.o test/error_resilience_test.cc.o test/external_frame_buffer_test.cc.o test/frame_size_tests.cc.o test/invalid_file_test.cc.o test/keyframe_test.cc.o test/level_test.cc.o test/realtime_test.cc.o test/resize_test.cc.o test/svc_datarate_test.cc.o test/svc_end_to_end_test.cc.o test/svc_test.cc.o test/test_libvpx.cc.o test/test_vector_test.cc.o test/test_vectors.cc.o test/timestamp_test.cc.o test/user_priv_test.cc.o test/vp8_datarate_test.cc.o test/vp9_datarate_test.cc.o test/vp9_end_to_end_test.cc.o test/vp9_ethread_test.cc.o test/vp9_ext_ratectrl_test.cc.o test/vp9_lossless_test.cc.o test/vp9_motion_vector_test.cc.o test/vp9_skip_loopfilter_test.cc.o test/y4m_test.cc.o third_party/libwebm/mkvparser/mkvparser.cc.o third_party/libwebm/mkvparser/mkvreader.cc.o webmdec.cc.o y4menc.c.o y4minput.c.o -L. -lvpx -lgtest -lpthread -lm -lpthread
:info:build ld: warning: ignoring duplicate libraries: '-lpthread'
:info:build ld: warning: ignoring file '/opt/local/lib/libvpx.8.dylib': found architecture 'x86_64', required architecture 'arm64'

One question is: why is the build using the installed libvpx dylib? It should be using the just-built libvpx dylib, which will have been built for the correct architecture. It's because -L/opt/local/lib appears before -L. in the link line. That's something for Chris to sort out.

Another question is: why do you have an x86_64 libvpx dylib installed on your arm64 Mac? Did you migrate from an x86_64 Mac and not follow the migration procedure?

comment:2 Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: assignedclosed

Duplicate of #66259.

comment:3 Changed 3 weeks ago by jpmelko

i am on apple silicon, sequoia I am rein stalling all from scratch

Changed 3 weeks ago by jpmelko

Attachment: samba3-main.log added

comment:4 Changed 3 weeks ago by jpmelko

Removed /opt/local, installed MacPorts

Dionysos:root root# port install ffmpeg +darwinssl+flite+gpl2+gpl3+jack+libdc1394+librtmp+nonfree+rav1e+x11
--->  Computing dependencies for ffmpeg
The following dependencies will be installed: 
 Xft2
 aften
 aom
 cairo
 cargo-c
 curl-ca-bundle
 flac
 gd2
 gdk-pixbuf2
 ghostscript
 giflib
 git
 gnutls
 gobject-introspection
 graphviz
 groff
 harfbuzz
 jack
 kerberos5
 libLASi
 libass
 libcomerr
 libdc1394
 libheif
 librsvg
 libsamplerate
 libsdl
 libsdl2
 libsndfile
 libtasn1
 libusb
 lmdb
 mpg123
 netpbm
 nettle
 p11-kit
 p5.34-authen-sasl
 p5.34-b-cow
 p5.34-canary-stability
 p5.34-cgi
 p5.34-clone
 p5.34-common-sense
 p5.34-compress-raw-bzip2
 p5.34-compress-raw-zlib
 p5.34-data-dumper
 p5.34-devel-hide
 p5.34-digest-hmac
 p5.34-digest-sha1
 p5.34-encode
 p5.34-encode-din66003
 p5.34-encode-eucjpascii
 p5.34-encode-hanextra
 p5.34-encode-iso2022
 p5.34-encode-jisx0213
 p5.34-encode-locale
 p5.34-gssapi
 p5.34-html-parser
 p5.34-html-tagset
 p5.34-http-date
 p5.34-http-message
 p5.34-io-compress
 p5.34-io-html
 p5.34-io-socket-ssl
 p5.34-json
 p5.34-json-xs
 p5.34-locale-maketext-simple
 p5.34-lwp-mediatypes
 p5.34-mime-base32
 p5.34-mime-base64
 p5.34-mime-charset
 p5.34-module-load
 p5.34-module-load-conditional
 p5.34-net-smtp-ssl
 p5.34-net-ssleay
 p5.34-params-check
 p5.34-pod-escapes
 p5.34-pod-simple
 p5.34-pod2-base
 p5.34-regexp-ipv6
 p5.34-scalar-list-utils
 p5.34-sub-uplevel
 p5.34-term-size-any
 p5.34-term-size-perl
 p5.34-term-table
 p5.34-test-cpan-meta
 p5.34-test-cpan-meta-json
 p5.34-test-exception
 p5.34-test-nowarnings
 p5.34-test-pod
 p5.34-test-simple
 p5.34-test-warn
 p5.34-time-hires
 p5.34-time-local
 p5.34-timedate
 p5.34-types-serialiser
 p5.34-unicode-linebreak
 p5.34-uri
 p5.34-version
 p5.34-xsloader
 pango
 python311
 python3_select-311
 python_select-311
 rav1e
 rsync
 rtmpdump
 samba3
 sdl12-compat
 svt-av1
 vala
 webp
 xorg-libX11
 xorg-libXScrnSaver
 xorg-libXaw
 xorg-libXcursor
 xorg-libXext
 xorg-libXfixes
 xorg-libXi
 xorg-libXinerama
 xorg-libXmu
 xorg-libXrandr
 xorg-libXt
 xorg-libXv
 xorg-libXxf86vm
 xorg-libxcb
 xorg-xcb-proto
 xorg-xcb-util
 xpm
 xrender
 xxhashlib
 yasm
Continue? [Y/n]: y
--->  Fetching archive for samba3
--->  Attempting to fetch samba3-3.6.25_4.darwin_24.arm64.tbz2 from https://mse.uk.packages.macports.org/samba3
--->  Attempting to fetch samba3-3.6.25_4.darwin_24.arm64.tbz2 from https://fra.de.packages.macports.org/samba3
--->  Attempting to fetch samba3-3.6.25_4.darwin_24.arm64.tbz2 from https://packages.macports.org/samba3
--->  Configuring samba3
Error: Failed to configure samba3: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_samba3/samba3/work/samba-3.6.25/source3/config.log
Error: Failed to configure samba3: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_samba3/samba3/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port ffmpeg failed
Dionysos:root root# cp /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_samba3/samba3/main.log /Users/titi//Downloads/samba3-main.log
Dionysos:root root# 
Note: See TracTickets for help on using tickets.