Date: Sun, 28 Jul 2024 19:56:46 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 280482] Buildworld fails with error: invalid argument '-std=gnu99' not allowed with 'C++' Message-ID: <bug-280482-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280482 Bug ID: 280482 Summary: Buildworld fails with error: invalid argument '-std=3Dgnu99' not allowed with 'C++' Product: Base System Version: 14.0-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: conf Assignee: bugs@FreeBSD.org Reporter: zagazaw2004@gmail.com Hello, I'm following this guide to update FreeBSD 14.0-STABLE and I keep getting t= his: **************************************************************************** =3D=3D=3D> usr.sbin/config (obj,all,install) [Creating objdir /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/usr.sbin/config= ...] yacc -d /usr/src/usr.sbin/config/config.y yacc: 3 rules never reduced cp y.tab.c config.c lex -olang.c /usr/src/usr.sbin/config/lang.l file2c 'char kernconfstr[] =3D {' ',0};' <=20 /usr/src/usr.sbin/config/kernconf.tmpl > kernconf.c echo config.full: /usr/lib/libc.a /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/lib/libegacy.a >> .depend echo config.full: /usr/lib/libc++.a >> .depend /usr/local/bin/ccache clang -O2 -pipe -O -O2 -pipe -march=3Dskylake -fno-c= ommon -I. -I/usr/src/usr.sbin/config \ -g -gz=3Dzlib -MD -MF.depend.config.o -MTconfig.o -std=3Dgnu99 -Wno-format-zero-length -Wsystem-headers -Wall -Wno-format-y2k > /usr/local/bin/ccache clang++ -O2 -pipe -O -O2 -pipe -march=3Dskylake -fno-common -I. -I/usr/src/usr.sbin/config \ -g -gz=3Dzlib -MD -MF.depend.main.o -MTmain.o -Wno-format-zero-length -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-> error: invalid argument '-std=3Dgnu99' not allowed with 'C++' *** Error code 1 Stop. make[3]: stopped in /usr/src/usr.sbin/config *** Error code 1 Stop. make[2]: stopped in /usr/src 8.11 real 4.98 user 2.96 sys *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src ***************************************************************************= ** $ uname -a FreeBSD redbox 14.0-STABLE FreeBSD 14.0-STABLE GENERIC amd64 ***************************************************************************= ** # cat /etc/make.conf CPUTYPE=3Dskylake CFLAGS+=3D -O -O2 -pipe -march=3D${CPUTYPE} CXXFLAGS+=3D${CFLAGS} MACHINE_CPU+=3D avx2 avx sse42 sse41 ssse3 sse3 sse2 sse amd64 f16c mmx MAKE_JOBS_NUMBER=3D 16 OPTIONS_UNSET+=3D QT5 QT6 CUPS VESA SCFB TWM XCONSOLE XCLOCK GNOME KDE EXAM= PLES \ DEBUG ASPELL CC=3Dclang CXX=3Dclang++ CPP=3Dclang-cpp=20=20=20 NO_SENDMAIL=3Dtrue ***************************************************************************= **** # cat /etc/src.conf WITH_CCACHE_BUILD=3Dyes WITHOUT_SENDMAIL=3Dyes WITHOUT_TALK=3Dyes WITHOUT_TELNET=3Dyes WITHOUT_TFTP=3Dyes WITHOUT_IPFILTER=3Dyes WITHOUT_FLOPPY=3Dyes WITHOUT_GAMES=3Dyes ***************************************************************************= ***** Threads I read and didn't help solve this issue (I'm not trying to use GCC = and I'd like to stay with LLVM/clang if possible): https://forums.freebsd.org/threads/trying-to-build-a-linux-c-program-on-fre= ebsd-14-with-gcc9.92731/ https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251170 --=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-280482-227>