From owner-freebsd-ports-bugs@freebsd.org Wed Jun 5 22:19:34 2019 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CEA5D15BAA2C for ; Wed, 5 Jun 2019 22:19:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 66F686F1C7 for ; Wed, 5 Jun 2019 22:19:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 277BD15BAA2A; Wed, 5 Jun 2019 22:19:34 +0000 (UTC) Delivered-To: ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0519815BAA29 for ; Wed, 5 Jun 2019 22:19:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 95C576F1C4 for ; Wed, 5 Jun 2019 22:19:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id CC172F783 for ; Wed, 5 Jun 2019 22:19:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x55MJWDR048683 for ; Wed, 5 Jun 2019 22:19:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x55MJWr9048682 for ports-bugs@FreeBSD.org; Wed, 5 Jun 2019 22:19:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 238353] devel/gn: respect CXX and CXXFLAGS Date: Wed, 05 Jun 2019 22:19:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch, patch-ready X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jun 2019 22:19:35 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238353 Bug ID: 238353 Summary: devel/gn: respect CXX and CXXFLAGS Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: patch, patch-ready Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: o.hushchenkov@gmail.com Flags: maintainer-feedback?(o.hushchenkov@gmail.com) CC: o.hushchenkov@gmail.com Attachment #204848 maintainer-approval?(o.hushchenkov@gmail.com) Flags: Created attachment 204848 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D204848&action= =3Dedit v1 (has commit message) When a poudriere jail is built with -x (native-xtools) some variables CC/CXX/etc are pointing to the cross-compilers under /nxb-bin in order to reduce qemu-user-static overhead. Besides, users may want to switch compile= r, pass non-default flags (e.g., for debugging) or Clang may not be available = on some architectures. http://pylon.nyi.freebsd.org/data/head-powerpc64-default/p503023_s348376/lo= gs/errors/gn-1529.log https://github.com/DragonFlyBSD/DeltaPorts/commit/710854931a4aefe809ab8e2d0= c9cd6fb29a4beae GCC failure was: FAILED: util/exe_path.o g++9 -MMD -MF util/exe_path.o.d -I.. -I. -O2 -pipe -fstack-protector-strong -Wl,-rpath=3D/usr/local/lib/gcc9 -DNDEBUG -O3 -fdata-sections -ffunction-se= ctions -D_FILE_OFFSET_BITS=3D64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -p= thread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -O2 -pipe -fstack-protector-strong -Wl,-rpath=3D/usr/local/lib/gcc9 -Wl,-rpath=3D/usr/local/lib/gcc9 -std=3Dc++14 -Wno-c++11-narrowing -c ../util/exe_path.cc -o util/exe_path.o ../util/exe_path.cc: In function 'base::FilePath GetExePath()': ../util/exe_path.cc:56:12: error: 'PATH_MAX' was not declared in this scope 56 | char buf[PATH_MAX]; | ^~~~~~~~ ../util/exe_path.cc:58:22: error: 'buf' was not declared in this scope 58 | if (sysctl(mib, 4, buf, &buf_size, nullptr, 0) =3D=3D -1) { | ^~~ ../util/exe_path.cc:61:25: error: 'buf' was not declared in this scope 61 | return base::FilePath(buf); | ^~~ At global scope: cc1plus: warning: unrecognized command line option '-Wno-c++11-narrowing' --=20 You are receiving this mail because: You are the assignee for the bug.=