Opened 21 months ago
Closed 21 months ago
#67038 closed defect (fixed)
libvpx @1.13.0: requires c++11
Reported by: | kencu (Ken) | Owned by: | mascguy (Christopher Nielsen) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | libvpx |
Description (last modified by kencu (Ken))
libvpx already has various compiler blacklisting in the Portfile that approximates a c++11 standard, but it doesn't explicitly require c++11 so the proper MacPorts flags and libraries are not chosen on older systems, for example building here on Leopard Intel:
/opt/local/bin/clang-mp-7.0 -pipe -Os -isysroot/ -arch i386 -DNDEBUG -O3 -fPIC -Wall -Wdeclaration-after-statement -Wdisabled-optimization -Wextra-semi -Wfloat-conversion -Wformat=2 -Wparentheses-equality -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wmissing-declarations -Wmissing-prototypes -Wuninitialized -Wunreachable-code-loop-increment -Wunused -Wextra -Wundef -Wframe-larger-than=52000 -std=gnu89 -Wshorten-64-to-32 -I. -I"/opt/local/var/macports/build/_opt_macports-ports_multimedia_libvpx/libvpx/work/libvpx-1.13.0" -c -o md5_utils.c.o md5_utils.c In file included from vp9/ratectrl_rtc.cc:10: ./vp9/ratectrl_rtc.h:14:10: fatal error: 'cstdint' file not found #include <cstdint> ^~~~~~~~~ 1 error generated. make[1]: *** [vp9/ratectrl_rtc.cc.o] Error 1 make[1]: *** Waiting for unfinished jobs....
However, to match the current Portfile blacklisting, some extra blacklisting will still have to be retained in the Portfile.
Attachments (1)
Change History (7)
Changed 21 months ago by kencu (Ken)
Attachment: | libvpx-intel-leopard.log added |
---|
comment:1 Changed 21 months ago by kencu (Ken)
Owner: | set to mascguy |
---|---|
Status: | new → assigned |
comment:2 Changed 21 months ago by kencu (Ken)
Description: | modified (diff) |
---|
comment:3 Changed 21 months ago by kencu (Ken)
comment:4 Changed 21 months ago by kencu (Ken)
The existing Portfile blacklisting is for assembly issues and some other problems that could have been c++11 related:
# Uses newer assembly features on Intel. # Also blacklist clang 8, due to issues like: # error: use of undeclared identifier 'abs' compiler.blacklist-append {*gcc-[3-4].*} {clang < 900} {macports-clang-3.*}
but as this complements but doesn't clash with the compiler.cxx_standard 2011
settings, it's best to just leave that in the Portfile.
comment:5 Changed 21 months ago by kencu (Ken)
comment:6 Changed 21 months ago by kencu (Ken)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
This helps:
but unfortunately does not fully fix the build. Later on in the build, there is a link failure, because the required
-stdlib=macports-libstdc++
does not make it onto the link line:So that part can be fixed by modifying the patch like this:
and then we're good: