Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jan 2021 00:37:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 252759] WITHOUT_LIBCPLUSPLUS build option fails on usr.bin/dtc
Message-ID:  <bug-252759-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 252759
           Summary: WITHOUT_LIBCPLUSPLUS build option fails on usr.bin/dtc
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: editor@callfortesting.org

If WITHOUT_LIBCPLUSPLUS=3DYES is set in /etc/src.conf on 13.0-ALPHA1 amd64,=
 the
following warning and error are generated:

--- all_subdir_usr.bin ---
--- all_subdir_usr.bin/dtc ---
In file included from /usr/src/usr.bin/dtc/dtc.cc:46:
/usr/src/usr.bin/dtc/fdt.hh:37:10: fatal error: 'algorithm' file not found
#include <algorithm>
         ^~~~~~~~~~~
...
--- netstat.o ---
cc -target x86_64-unknown-freebsd13.0
--sysroot=3D/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -O2 -pipe -fno-common   -DNDEBUG
-MD  -MF.depend.netstat.o -MTnetstat.o -std=3Dgnu99 -Wno-format-zero-length
-nobuiltininc -idirafter /usr/lib/clang/10.0.1/include -Qunused-arguments  =
 -c
/usr/src/usr.bin/systat/netstat.c -o netstat.o
--- all_subdir_usr.sbin ---
--- all_subdir_usr.sbin/periodic ---
--- all_subdir_usr.sbin/periodic/etc/daily ---
=3D=3D=3D> usr.sbin/periodic/etc/daily (all)
--- all_subdir_usr.bin ---
--- all_subdir_usr.bin/procstat ---
--- procstat_pwdx.o ---
--- all_subdir_usr.bin/dtc ---
*** [dtc.o] Error code 1

make[4]: stopped in /usr/src/usr.bin/dtc

The following syntax appears to resolve the issue:

diff --git a/usr.bin/Makefile b/usr.bin/Makefile
index 8ea3b1c2bfe3..8e32e82bdc0f 100644
--- a/usr.bin/Makefile
+++ b/usr.bin/Makefile
@@ -212,9 +212,12 @@ SUBDIR.${MK_GAMES}+=3D       number
 SUBDIR.${MK_GAMES}+=3D   pom
 SUBDIR.${MK_GAMES}+=3D   primes
 SUBDIR.${MK_GAMES}+=3D   random
+.if ${MK_LIBCPLUSPLUS}  !=3D "no"
+#.if ${COMPILER_FEATURES:Mc++11} || ${MK_LIBCPLUSPLUS} !=3D "no"
 .if ${COMPILER_FEATURES:Mc++11}
 SUBDIR+=3D       dtc
 .endif
+.endif
 .if ${MK_GH_BC} =3D=3D "yes"
 SUBDIR+=3D               gh-bc
 .else


This syntax, commented out, did not resolve the issue, but is included shou=
ld
someone be able to combine the two conditions:

+#.if ${COMPILER_FEATURES:Mc++11} || ${MK_LIBCPLUSPLUS} !=3D "no"

--=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-252759-227>