[MacPorts] #66613: flac @1.4.2 fails to build on Lion - Undefined symbols ___cpuid and ___cpuid_count

MacPorts noreply at macports.org
Tue Jan 3 14:39:29 UTC 2023


#66613: flac @1.4.2 fails to build on Lion - Undefined symbols ___cpuid and
___cpuid_count
--------------------+--------------------
 Reporter:  RobK88  |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.8.0
 Keywords:  lion    |       Port:  flac
--------------------+--------------------
 The `flac` port fails to build on Lion.  Undefined symbols - `___cpuid`
 and `___cpuid_count`


 {{{
 /opt/local/bin/ranlib: file: .libs/libFLAC-static.a(float.o) has no
 symbols
 /opt/local/bin/ranlib: file: .libs/libFLAC-static.a(lpc_intrin_sse41.o)
 has no symbols
 /opt/local/bin/ranlib: file: .libs/libFLAC-static.a(lpc_intrin_avx2.o) has
 no symbols
 /opt/local/bin/ranlib: file: .libs/libFLAC-static.a(lpc_intrin_fma.o) has
 no symbols
 /opt/local/bin/ranlib: file: .libs/libFLAC-static.a(lpc_intrin_vsx.o) has
 no symbols
 /opt/local/bin/ranlib: file: .libs/libFLAC-static.a(lpc_intrin_neon.o) has
 no symbols
 /opt/local/bin/ranlib: file: .libs/libFLAC-
 static.a(stream_encoder_intrin_avx2.o) has no symbols
 libtool: link: ranlib .libs/libFLAC-static.a
 Undefined symbols for architecture x86_64:
   "___cpuid", referenced from:
       _cpuinfo_x86 in cpu.o
   "___cpuid_count", referenced from:
       _cpuinfo_x86 in cpu.o
 ld: symbol(s) not found for architecture x86_64
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 make[4]: *** [libFLAC.la] Error 1
 make[4]: *** Waiting for unfinished jobs....
 ranlib: file: .libs/libFLAC-static.a(float.o) has no symbols
 ranlib: file: .libs/libFLAC-static.a(lpc_intrin_sse41.o) has no symbols
 ranlib: file: .libs/libFLAC-static.a(lpc_intrin_avx2.o) has no symbols
 ranlib: file: .libs/libFLAC-static.a(lpc_intrin_fma.o) has no symbols
 ranlib: file: .libs/libFLAC-static.a(lpc_intrin_vsx.o) has no symbols
 ranlib: file: .libs/libFLAC-static.a(lpc_intrin_neon.o) has no symbols
 ranlib: file: .libs/libFLAC-static.a(stream_encoder_intrin_avx2.o) has no
 symbols
 libtool: link: ( cd ".libs" && rm -f "libFLAC-static.la" && ln -s
 "../libFLAC-static.la" "libFLAC-static.la" )
 make[4]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.4.2/src/libFLAC'
 make[3]: *** [all-recursive] Error 1
 make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.4.2/src/libFLAC'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.4.2/src'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.4.2'
 make: *** [all] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.4.2'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.4.2"
 && /usr/bin/make -j4 -w all
 Exit code: 2
 Error: Failed to build flac: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 bash-3.2$
 }}}

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


More information about the macports-tickets mailing list