tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Selecting a C++ compiler



On 04/15/18 10:26, Jason Bacon wrote:
On 04/15/18 07:53, Joerg Sonnenberger wrote:
On Sun, Nov 26, 2017 at 12:09:05PM -0600, Jason Bacon wrote:
My understanding is that the aversion to mixing GCC versions is about ABI differences, mainly for C++.  I don't think there are any such differences between 48 and 49, so I would think it's reasonable to make an exception
this case.
The libstdc++ ABI is different, i.e. the implementation of regex and
IIRC thread.

Joerg

Between 4.8 and 4.9?  Interesting...

Almost irrelevant at this point from my perspective anyway.  I'm using at least 5.x as a minimum these days.

[root@centosdev ddocent]# cat /usr/pkg/etc/mk.conf
# Example /usr/pkg/etc/mk.conf file produced by bootstrap-pkgsrc
# Fri Jan 26 21:29:27 CST 2018

PKG_DEVELOPER=        yes

.ifdef BSD_PKG_MK    # begin pkgsrc settings

ABI=            64

PKG_DBDIR=        /usr/pkg/pkgdb
LOCALBASE=        /usr/pkg
VARBASE=        /usr/pkg/var
PKG_TOOLS_BIN=        /usr/pkg/sbin
PKGINFODIR=        info
PKGMANDIR=        man

X11_TYPE=        modular
PREFER_NATIVE=        no
PREFER_PKGSRC=        yes
PKGSRC_FORTRAN=        gfortran
FETCH_USING=        curl
SKIP_LICENSE_CHECK=    yes
PKG_OPTIONS.libfetch=    inet6 openssl

.if     empty(PKGPATH:Marchivers/bzip2) && \
    empty(PKGPATH:Marchivers/pax) && \
    empty(PKGPATH:Marchivers/xz) && \
    empty(PKGPATH:Mconverters/help2man) && \
    empty(PKGPATH:Mconverters/p5-Unicode-EastAsianWidth) && \
    empty(PKGPATH:Mdevel/autoconf) && \
    empty(PKGPATH:Mdevel/gettext-lib) && \
    empty(PKGPATH:Mdevel/gettext-tools) && \
    empty(PKGPATH:Mdevel/gmp) && \
    empty(PKGPATH:Mdevel/gtexinfo) && \
    empty(PKGPATH:Mdevel/libtool-base) && \
    empty(PKGPATH:Mdevel/m4) && \
    empty(PKGPATH:Mdevel/ncurses) && \
    empty(PKGPATH:Mdevel/nbpatch) && \
    empty(PKGPATH:Mdevel/p5-gettext) && \
    empty(PKGPATH:Mlang/gcc5) && \
    empty(PKGPATH:Mlang/gcc5-libs) && \
    empty(PKGPATH:Mlang/perl5) && \
    empty(PKGPATH:Mmath/cloog) && \
    empty(PKGPATH:Mmath/isl) && \
    empty(PKGPATH:Mmath/mpcomplex) && \
    empty(PKGPATH:Mmath/mpfr) && \
    empty(PKGPATH:Mmisc/p5-Locale-libintl) && \
    empty(PKGPATH:Mpkgtools/cwrappers) && \
    empty(PKGPATH:Mpkgtools/digest) && \
    empty(PKGPATH:Mpkgtools/pkg_install-info) && \
    empty(PKGPATH:Msysutils/checkperms) && \
    empty(PKGPATH:Mtextproc/p5-Text-Unidecode)

GCC_REQD+=5.0

.endif  # GCC_REQD

.endif            # end pkgsrc settings

Was just testing this setup on NetBSD 7.1.1 and had to add the following:

empty(PKGPATH:Mconverters/libiconv)
empty(PKGPATH:Mdevel/gmake)
empty(PKGPATH:Mtextproc/gsed)



Home | Main Index | Thread Index | Old Index