Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 2017 01:44:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 216562] Mk/Uses/compiler.mk tramples over USE_GCC value with compiler:gcc-c++11-lib
Message-ID:  <bug-216562-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216562

            Bug ID: 216562
           Summary: Mk/Uses/compiler.mk tramples over USE_GCC value with
                    compiler:gcc-c++11-lib
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: mandree@FreeBSD.org
                CC: bapt@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org,
                    portmgr@FreeBSD.org
             Flags: maintainer-feedback?(portmgr@FreeBSD.org), exp-run?
                CC: portmgr@FreeBSD.org

Issue:
When USES contains compiler:gcc-c++11-lib,=20
Mk/Uses/compiler.mk will force USE_GCC=3Dyes,=20
instead of using USE_GCC?=3Dyes.

Impact:
This harms ports that set, for instance, USE_GCC=3D5+, by re-allowing GCC 4=
.9
(which is known to miscompile rawtherapee on FreeBSD 11.0-RELEASE amd64, wh=
ile
GCC 5.4 is fine).

Suggestion:
change code to USE_GCC?=3Dyes here:

.if ${_COMPILER_ARGS:Mgcc-c++11-lib}
USE_GCC=3D        yes                         # <=3D=3D=3D=3D-FIX-THIS-=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
CHOSEN_COMPILER_TYPE=3D   gcc
.if ${COMPILER_FEATURES:Mlibc++}
CXXFLAGS+=3D      -nostdinc++ -isystem /usr/include/c++/v1
LDFLAGS+=3D       -L${WRKDIR}


Workaround:
re-set USE_GCC after .include <bsd.port.pre.mk>. (See, for instance,
graphics/rawtherapee[-devel]).

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216562-13>