https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252759
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: b...@freebsd.org Reporter: edi...@callfortesting.org If WITHOUT_LIBCPLUSPLUS=YES 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=/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=gnu99 -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 --- ===> 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}+= number SUBDIR.${MK_GAMES}+= pom SUBDIR.${MK_GAMES}+= primes SUBDIR.${MK_GAMES}+= random +.if ${MK_LIBCPLUSPLUS} != "no" +#.if ${COMPILER_FEATURES:Mc++11} || ${MK_LIBCPLUSPLUS} != "no" .if ${COMPILER_FEATURES:Mc++11} SUBDIR+= dtc .endif +.endif .if ${MK_GH_BC} == "yes" SUBDIR+= gh-bc .else This syntax, commented out, did not resolve the issue, but is included should someone be able to combine the two conditions: +#.if ${COMPILER_FEATURES:Mc++11} || ${MK_LIBCPLUSPLUS} != "no" -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"