#46038 closed defect (fixed)
flac @1.3.1_1: Undefined symbols ___cpuid ___cpuid_count
Reported by: | coolplanet3000@… | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | Cc: | andrew.long@…, m214089, pwilkins@…, ryandesign (Ryan Carsten Schmidt), wylee337@…, rainer+macports@…, larryv (Lawrence Velázquez), dgonyier (Dwaine Gonyier), mrlamb@…, matt.gildenhorn@… | |
Port: | flac |
Description (last modified by larryv (Lawrence Velázquez))
---> Computing dependencies for flac. ---> Building flac make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1' /usr/bin/make all-recursive make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1' Making all in doc make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/doc' Making all in . make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/doc' make[3]: Nothing to be done for `all-am'. 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.3.1/doc' Making all in html make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/doc/html' Making all in images make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/doc/html/images' make[4]: Nothing to be done for `all'. 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.3.1/doc/html/images' make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/doc/html' make[4]: Nothing to be done for `all-am'. 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.3.1/doc/html' 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.3.1/doc/html' 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.3.1/doc' Making all in include make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/include' Making all in FLAC make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/include/FLAC' make[3]: Nothing to be done for `all'. 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.3.1/include/FLAC' Making all in FLAC++ make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/include/FLAC++' make[3]: Nothing to be done for `all'. 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.3.1/include/FLAC++' Making all in share make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/include/share' Making all in grabbag make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/include/share/grabbag' make[4]: Nothing to be done for `all'. 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.3.1/include/share/grabbag' make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/include/share' make[4]: Nothing to be done for `all-am'. 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.3.1/include/share' 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.3.1/include/share' Making all in test_libs_common make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/include/test_libs_common' make[3]: Nothing to be done for `all'. 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.3.1/include/test_libs_common' make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/include' make[3]: Nothing to be done for `all-am'. 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.3.1/include' 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.3.1/include' Making all in m4 make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/m4' make[2]: Nothing to be done for `all'. 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.3.1/m4' Making all in man make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/man' make[2]: Nothing to be done for `all'. 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.3.1/man' Making all in src make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/src' Making all in share make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/src/share' make[3]: Nothing to be done for `all'. 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.3.1/src/share' Making all in libFLAC make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/src/libFLAC' Making all in include make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/src/libFLAC/include' Making all in private make[5]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/src/libFLAC/include/private' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/src/libFLAC/include/private' Making all in protected make[5]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/src/libFLAC/include/protected' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/src/libFLAC/include/protected' make[5]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/src/libFLAC/include' make[5]: Nothing to be done for `all-am'. make[5]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/src/libFLAC/include' 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.3.1/src/libFLAC/include' Making all in . make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/src/libFLAC' /bin/sh ../../libtool --tag=CC --mode=link /usr/bin/clang -I/opt/local/include -O3 -funroll-loops -pipe -Os -std=gnu89 -arch x86_64 -Wextra -no-undefined -version-info 11:0:3 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -o libFLAC.la -rpath /opt/local/lib bitmath.lo bitreader.lo bitwriter.lo cpu.lo crc.lo fixed.lo fixed_intrin_sse2.lo fixed_intrin_ssse3.lo float.lo format.lo lpc.lo lpc_intrin_sse.lo lpc_intrin_sse2.lo lpc_intrin_sse41.lo lpc_intrin_avx2.lo md5.lo memory.lo metadata_iterators.lo metadata_object.lo stream_decoder.lo stream_encoder.lo stream_encoder_intrin_sse2.lo stream_encoder_intrin_ssse3.lo stream_encoder_intrin_avx2.lo stream_encoder_framing.lo window.lo ogg_decoder_aspect.lo ogg_encoder_aspect.lo ogg_helper.lo ogg_mapping.lo -L/opt/local/lib -logg -lm libtool: link: /usr/bin/clang -dynamiclib -o .libs/libFLAC.8.dylib .libs/bitmath.o .libs/bitreader.o .libs/bitwriter.o .libs/cpu.o .libs/crc.o .libs/fixed.o .libs/fixed_intrin_sse2.o .libs/fixed_intrin_ssse3.o .libs/float.o .libs/format.o .libs/lpc.o .libs/lpc_intrin_sse.o .libs/lpc_intrin_sse2.o .libs/lpc_intrin_sse41.o .libs/lpc_intrin_avx2.o .libs/md5.o .libs/memory.o .libs/metadata_iterators.o .libs/metadata_object.o .libs/stream_decoder.o .libs/stream_encoder.o .libs/stream_encoder_intrin_sse2.o .libs/stream_encoder_intrin_ssse3.o .libs/stream_encoder_intrin_avx2.o .libs/stream_encoder_framing.o .libs/window.o .libs/ogg_decoder_aspect.o .libs/ogg_encoder_aspect.o .libs/ogg_helper.o .libs/ogg_mapping.o -L/opt/local/lib /opt/local/lib/libogg.dylib -lm -O3 -Os -arch x86_64 -Wl,-headerpad_max_install_names -arch x86_64 -install_name /opt/local/lib/libFLAC.8.dylib -compatibility_version 12 -current_version 12.0 -Wl,-single_module Undefined symbols for architecture x86_64: "___cpuid", referenced from: _FLAC__cpu_info_x86 in cpu.o "___cpuid_count", referenced from: _FLAC__cpu_info_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]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/work/flac-1.3.1/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.3.1/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.3.1/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.3.1' 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.3.1' 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.3.1" && /usr/bin/make -j3 -w all OBJ_FORMAT=macho Exit code: 2 Warning: targets not executed for flac: org.macports.install org.macports.build org.macports.destroot Please see the log file for port flac for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_flac/flac/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets
Attachments (4)
Change History (38)
comment:1 Changed 10 years ago by larryv (Lawrence Velázquez)
Description: | modified (diff) |
---|---|
Keywords: | flac upgrade build_failed removed |
Owner: | changed from macports-tickets@… to larryv@… |
Status: | new → assigned |
Changed 10 years ago by coolplanet3000@…
main.log flac upgrade build failed
comment:2 Changed 10 years ago by larryv (Lawrence Velázquez)
Cc: | andrew.long@… added |
---|
Has duplicate #46067.
Changed 10 years ago by pwilkins@…
Attachment: | main.2.log added |
---|
log file containing flac install failure
comment:5 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Summary: | flac upgrade failed → flac @1.3.1_1: Undefined symbols ___cpuid ___cpuid_count |
Same here with:
$ sw_vers ProductName: Mac OS X ProductVersion: 10.7.5 BuildVersion: 11G63 $ xcodebuild -version Xcode 4.6.3 Build version 4H1503 $ clang -v Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) Target: x86_64-apple-darwin11.4.2 Thread model: posix $
comment:9 Changed 10 years ago by larryv (Lawrence Velázquez)
Cc: | jeremyhu@… added |
---|
Jeremy pushed a change in r129076, but I don’t know if it was meant to address this. Does it help?
Changed 10 years ago by coolplanet4000@…
main.log flac upgrade build failure
comment:10 Changed 10 years ago by coolplanet4000@…
Still not working. Attached latest log. Appears to be the same as before at first glance.
comment:11 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Is this only failing on Lion?
comment:12 Changed 10 years ago by coolplanet4000@…
It's failing on Mountain Lion too. I can provide a main.log for that if you'd like.
comment:15 Changed 10 years ago by larryv (Lawrence Velázquez)
Cc: | matt.gildenhorn@… added |
---|
Has duplicate #46151.
comment:16 follow-up: 17 Changed 10 years ago by jmalone@…
Can build on MountainLion (10.8.5) with Xcode 5.1.1 by blacklisting *clang*:
compiler.blacklist *clang*
Resulting binary seems to work fine
comment:17 Changed 10 years ago by larryv (Lawrence Velázquez)
Thanks for the data point, but blacklisting Clang is not an option at this point.
comment:18 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Can you please attach a pre-processed source file for cpu.c? Copy/paste the compilation line in the correct directory and change the -c to -E and -o /path/to/cpu.o to -o ~/Desktop/cpu.pp.c and attach the cpu.pp.c file from your desktop.
comment:19 Changed 10 years ago by entwicklung@…
cmd line was
/usr/bin/clang -DHAVE_CONFIG_H -I. -I../.. -I../.. -I./include -I../../include -DNDEBUG -I/opt/local/include -I/opt/local/include -pipe -Os -std=gnu89 -arch x86_64 -Wextra -MT cpu.lo -MD -MP -MF .deps/cpu.Tpo -E cpu.c -fno-common -DPIC -o .libs/cpu.o
comment:20 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Yeah, it looks fine to me. I did some digging, and it turns out that support was added between clang 3.3 and clang 3.4. I'm not sure what Xcode version added support. You said you saw this happening on Mountain Lion, right? What is the version of clang you were using there? (clang --version)
comment:21 Changed 10 years ago by pwilkins@…
I have the problem in Mountain Lion (as I reported above) and my clang version is 4.1.
comment:22 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
r129219, but we should followup with a better version for the clang blacklist. Please let me know what clang versions you were seeing the failure with.
comment:23 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
@pwilkins, that is not the version number I need. Please report the output of 'clang --version' ... also, you probably should upgrade to a newer version of Xcode on Mountain Lion.
comment:24 follow-ups: 26 27 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
See r129221. I used the wrong version in the first commit.
I'm primarily curious about anyone with Xcode 5.0 to know if that version of clang is an issue. Older versions are already blacklisted, and I know clang in Xcode 5.1.1 is good.
comment:25 Changed 10 years ago by pwilkins@…
Sorry, Jeremy. Here is the complete output. (And yes, updating my OS is a good idea.)
$ clang --version Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) Target: x86_64-apple-darwin12.5.0 Thread model: posix
comment:26 Changed 10 years ago by ctreleaven (Craig Treleaven)
Replying to jeremyhu@…:
See r129221. I used the wrong version in the first commit.
I'm primarily curious about anyone with Xcode 5.0 to know if that version of clang is an issue. Older versions are already blacklisted, and I know clang in Xcode 5.1.1 is good.
The wiki has a list of XCode versions:
comment:27 Changed 10 years ago by pwilkins@…
Replying to jeremyhu@…:
See r129221. I used the wrong version in the first commit.
I'm primarily curious about anyone with Xcode 5.0 to know if that version of clang is an issue. Older versions are already blacklisted, and I know clang in Xcode 5.1.1 is good.
I successfully installed flac 1.3.1_2 after updating my XCode command line tools. (I had thought they were up-to-date, but no.) I'm running 10.8.5 and here is the output of clang --version
$ clang --version Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin12.5.0 Thread model: posix
comment:28 Changed 10 years ago by coolplanet4000@…
I have XCode 4.6.3 and XCode 3.2.6 installed (they moved the install location between these two versions incase anyone doesn't know). I Completely forgot I'm behind on XCode because there's a weird bug that prevents me from getting updates via the app store
comment:29 Changed 10 years ago by andrew.long@…
Flac has installed in 'port upgrade outdated' as an archive under Lion 10.7.5.
Regards, Andy
comment:30 follow-up: 31 Changed 10 years ago by coolplanet4000@…
I can confirm that it is now working for me too. On both Lion and Mountain Lion. Thanks for the fix.
comment:31 follow-up: 32 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Replying to coolplanet4000@…:
I can confirm that it is now working for me too. On both Lion and Mountain Lion. Thanks for the fix.
The issue isn't based on OS version. It has to do with the version of the compiler being used.
Replying to ctreleaven@…:
Replying to jeremyhu@…:
See r129221. I used the wrong version in the first commit.
I'm primarily curious about anyone with Xcode 5.0 to know if that version of clang is an issue. Older versions are already blacklisted, and I know clang in Xcode 5.1.1 is good.
The wiki has a list of XCode versions:
Yes, that lists Xcode versions. That's not the information I need. I need a report from someone who has Xcode 5.0 to know if Xcode 5.0's clang works or not.
The only data point I need from someone is whether or not the issue exists with Xcode 5.0. If nobody responds, I'll just close this as fixed and assume clang 500.2.76 works fine.
comment:32 Changed 10 years ago by larryv (Lawrence Velázquez)
Cc: | larryv@… added; jeremyhu@… removed |
---|---|
Owner: | changed from larryv@… to jeremyhu@… |
Status: | assigned → new |
Replying to jeremyhu@…:
The only data point I need from someone is whether or not the issue exists with Xcode 5.0. If nobody responds, I'll just close this as fixed and assume clang 500.2.76 works fine.
The problem occurs with clang 500.2.76 and 500.2.79 but not 503.0.38.
comment:33 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Excellent, thanks. I've updated the blacklisting in r129385.
This wasn’t complete, nor was it the log. Please clean, try installing again, and attach the
main.log
mentioned in the error message.