Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Jun 2019 22:19:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 238353] devel/gn: respect CXX and CXXFLAGS
Message-ID:  <bug-238353-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



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