Opened 2 years ago
Last modified 17 months ago
#66234 assigned defect
taglib fails to build with gcc-4.2, needs cxx_standard 2011
Reported by: | barracuda156 | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.0 |
Keywords: | powerpc, leopard, snowleopard | Cc: | |
Port: | taglib |
Description
Universal build on Leopard fails almost immediately with:
g++-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags make[2]: *** [taglib/CMakeFiles/tag.dir/mpeg/mpegfile.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs....
Single-arch build fails later, with numerous errors:
In file included from /opt/local/include/cppunit/TestAssert.h:8, from /opt/local/include/cppunit/TestCase.h:6, from /opt/local/include/cppunit/TestCaller.h:5, from /opt/local/include/cppunit/extensions/HelperMacros.h:9, from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_taglib/taglib/work/taglib-1.13/tests/test_map.cpp:28: /opt/local/include/cppunit/tools/StringHelper.h:7:23: error: type_traits: No such file or directory In file included from /opt/local/include/cppunit/TestAssert.h:8, from /opt/local/include/cppunit/TestCase.h:6, from /opt/local/include/cppunit/TestCaller.h:5, from /opt/local/include/cppunit/extensions/HelperMacros.h:9, from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_taglib/taglib/work/taglib-1.13/tests/test_list.cpp:27: /opt/local/include/cppunit/tools/StringHelper.h:7:23: error: type_traits: No such file or directory In file included from /opt/local/include/cppunit/TestAssert.h:6, from /opt/local/include/cppunit/TestCase.h:6, from /opt/local/include/cppunit/TestCaller.h:5, from /opt/local/include/cppunit/extensions/HelperMacros.h:9, from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_taglib/taglib/work/taglib-1.13/tests/test_list.cpp:27: /opt/local/include/cppunit/Asserter.h:50: error: expected unqualified-id before ‘[’ token /opt/local/include/cppunit/Asserter.h:56: error: expected unqualified-id before ‘[’ token /opt/local/include/cppunit/Asserter.h:162: error: expected unqualified-id before ‘[’ token In file included from /opt/local/include/cppunit/TestAssert.h:8, from /opt/local/include/cppunit/TestCase.h:6, from /opt/local/include/cppunit/TestCaller.h:5, from /opt/local/include/cppunit/extensions/HelperMacros.h:9, from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_taglib/taglib/work/taglib-1.13/tests/test_list.cpp:27: /opt/local/include/cppunit/tools/StringHelper.h:22: error: ‘enable_if’ in namespace ‘std’ does not name a type /opt/local/include/cppunit/tools/StringHelper.h:22: error: expected unqualified-id before ‘<’ token /opt/local/include/cppunit/tools/StringHelper.h:31: error: ‘enable_if’ in namespace ‘std’ does not name a type /opt/local/include/cppunit/tools/StringHelper.h:31: error: expected unqualified-id before ‘<’ token /opt/local/include/cppunit/tools/StringHelper.h:39: error: ‘toString’ is not a template function /opt/local/include/cppunit/tools/StringHelper.h:44: error: ‘toString’ is not a template function
Attachments (2)
Change History (5)
Changed 2 years ago by barracuda156
Attachment: | taglib.log added |
---|
Changed 2 years ago by barracuda156
Attachment: | taglib_universal.log added |
---|
comment:2 Changed 2 years ago by barracuda156
Summary: | taglib fails to build with gcc-4.2 → taglib fails to build with gcc-4.2, needs cxx_standard 2011 |
---|
comment:3 Changed 17 months ago by ryandesign (Ryan Carsten Schmidt)
Note: See
TracTickets for help on using
tickets.
Looks like it uses cppunit without tests variant being chosen.
Adding
compiler.cxx_standard 2011
for a general cases fixes the build. Then, to fix universal we also needmuniversal 1.0
, or if it breaks Clang builds, then:After these two fixes made, it builds fine: