On 23-06-04 14:40, Thomas Klausner wrote: | Hi! | | I just tried updating my -current but the build failed: | | build.sh -j 32 -x -V MKDEBUG=yes -V MKDEBUGLIB=yes -V MKLLVM=yes -V NOGCCERROR=yes -T /usr/obj/tools.gcc -m amd64 -O /usr/obj/src.amd64 -D /usr/obj/amd64.gcc.20230604 -R /usr/obj/amd64.gcc.20230604.release distribution | | --- support-modules --- | g++: error: unrecognized command-line option '-stdlib=libc++' | g++: error: unrecognized command-line option '-fmodules'; did you mean '-fmoduleinfo'? | g++: error: unrecognized command-line option '-fcxx-modules' | g++: error: unrecognized command-line option '-fmodules-cache-path=./module.cache' | | | Any ideas how to fix this? |
I managed to reproduced this just building the tools with -V MKLLVM=yes. I've reverted tools/Makefile.host revision 1.35 and it seems to fix the tools build for me. Does this resolve the issue for you? BTW: I don't know why replacing NOINFO= # defined NOLINT= # defined NOMAN= # defined MKREPRO=no # Native toolchain might be unable to do it .include <bsd.own.mk> with .include <bsd.hostinit.mk> where bsd.hostinit.mk is: NOINFO= # defined NOLINT= # defined NOMAN= # defined MKREPRO=no # Native toolchain might be unable to do it .include <bsd.init.mk> and bsd.init.mk: .-include "${.CURDIR}/../Makefile.inc" .include <bsd.own.mk> .MAIN: all causes such issues with tools/llvm*. Maybe something in the ../Makefile.inc, or the .MAIN:all ? I didn't have time to debug, easier to revert my change. Luke.