[MacPorts] #53072: chromaprint @1.4.0: default build fails on 10.8 and earlier due to inclusion of C++11 header <cstdint>

MacPorts noreply at macports.org
Thu Dec 15 00:00:45 CET 2016


#53072: chromaprint @1.4.0: default build fails on 10.8 and earlier due to
inclusion of C++11 header <cstdint>
---------------------+----------------------------
 Reporter:  dbevans  |      Owner:  kurthindenburg
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:
 Keywords:           |       Port:  chromaprint
---------------------+----------------------------
 Build on 10.8 fails as follows (using default libstdc++)
 {{{
 :info:build [ 50%] Building CXX object
 src/CMakeFiles/chromaprint_objs.dir/image_builder.cpp.o
 :info:build cd /opt/local/var/macports/build/_Volumes_MiniHD_opt_github
 .com_macports_macports-ports_audio_chromaprint/chromaprint/work/build/src
 && /usr/bin/clang++   -DHAVE_CONFIG_H -D_SCL_SECURE_NO_WARNINGS
 -D_USE_MATH_DEFINES -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS
 -I/opt/local/var/macports/build/_Volumes_MiniHD_opt_github
 .com_macports_macports-ports_audio_chromaprint/chromaprint/work/build
 -I/opt/local/var/macports/build/_Volumes_MiniHD_opt_github
 .com_macports_macports-
 ports_audio_chromaprint/chromaprint/work/chromaprint-1.4/src
 -I/opt/local/include  -pipe -Os -stdlib=libstdc++ -std=c++11 -DNDEBUG
 -arch x86_64 -mmacosx-version-min=10.8 -fPIC   -o
 CMakeFiles/chromaprint_objs.dir/image_builder.cpp.o -c
 /opt/local/var/macports/build/_Volumes_MiniHD_opt_github
 .com_macports_macports-
 ports_audio_chromaprint/chromaprint/work/chromaprint-1.4/src/image_builder.cpp
 :info:build In file included from
 /opt/local/var/macports/build/_Volumes_MiniHD_opt_github
 .com_macports_macports-
 ports_audio_chromaprint/chromaprint/work/chromaprint-1.4/src/fingerprinter.cpp:9:
 :info:build In file included from
 /opt/local/var/macports/build/_Volumes_MiniHD_opt_github
 .com_macports_macports-
 ports_audio_chromaprint/chromaprint/work/chromaprint-1.4/src/fft.h:13:
 :info:build /opt/local/var/macports/build/_Volumes_MiniHD_opt_github
 .com_macports_macports-
 ports_audio_chromaprint/chromaprint/work/chromaprint-1.4/src/audio/audio_slicer.h:8:10:
 fatal error: 'cstdint' file not found
 :info:build #include <cstdint>
 :info:build          ^
 :info:build 1 error generated.
 }}}

 Because of the inclusion of this C++11 header libc++ is required instead
 and, in fact, -std=c++11 is declared as a build argument.

 Suggest using PortGroup cxx11 to clarify this issue and to point to the
 solution on the earlier platforms.

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


More information about the macports-tickets mailing list