[MacPorts] #54358: texlive-bin @2017 won't build on Snow Leopard, Mac OS X 10.6.8, because "A compiler with support for C++11 language features is required"
MacPorts
noreply at macports.org
Mon Aug 28 01:40:40 UTC 2017
#54358: texlive-bin @2017 won't build on Snow Leopard, Mac OS X 10.6.8, because "A
compiler with support for C++11 language features is required"
-------------------------+-------------------------------------------------
Reporter: ballapete | Owner: drkp
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.4.1
Resolution: fixed | Keywords: mountain lion snowleopard leopard
Port: texlive- | tiger
bin |
-------------------------+-------------------------------------------------
Comment (by kencu):
These two additions
{{{
configure.cxxflags-append -std=c++11
configure.cxxflags-append -Wno-reserved-user-defined-literal
}}}
fix the build on 10.7 configured with -stdlib=libstdc++ using the cxx11
1.1 PortGroup.
{{{
$ port -v installed texlive-bin poppler
The following ports are currently installed:
poppler @0.57.0_0 (active) platform='darwin 11' archs='x86_64'
date='2017-08-27T15:27:45-0700'
texlive-bin @2017_1+x11 (active) platform='darwin 11' archs='x86_64'
date='2017-08-27T16:40:00-0700'
}}}
Of interest, it builds with -stdlib=libc++ using clang-4.0 on Sierra
without those additions, and it built on 10.6 with clang-3.9 against
libc++, so it seems we could be noticing something different using
clang-4.0 to build against gcc6's libstdc++ headers.
Just FYI, it also builds without modification on 10.5 PPC
{{{
$ port -v installed texlive-bin poppler
The following ports are currently installed:
poppler @0.57.0_0 (active) platform='darwin 9' archs='ppc'
date='2017-08-27T15:38:51-0700'
texlive-bin @2017_1+x11 (active) platform='darwin 9' archs='ppc'
date='2017-08-27T16:14:58-0700'
}}}
Now to sort out exactly which systems need the extra bit added. I suspect
we could probably add those two additions to all builds on all systems for
simplicity, if gcc6 tolerates `-Wno-reserved-user-defined-literal`. If
not, have to restrict that to clangs.
--
Ticket URL: <https://trac.macports.org/ticket/54358#comment:27>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list