Re: do people think current builds now? -- I don't
Greg Troxel <[email protected]>
| Newsgroups | gmane.os.netbsd.current |
|---|---|
| Message-ID | <[email protected]> |
Martin Husemann <[email protected]> writes: > On Thu, Oct 23, 2025 at 08:40:07AM -0400, Greg Troxel wrote: >> I updated and ran an update build and had a lot of trouble. I did a >> bunch of cleandirs, but still errors. I then rm'd my entire objdir, >> destdir and tools - really everything. > > The build cluster is happy with -current. > I did a bunch of update builds and had to remove a lot of objdirs > (documented in UPDATING) but then everything worked for me. I didn't try removing just that list; I did rm -rf of the whole obj/tools/destdir tree. In your build, is lgpl3/gmp/lib/libgmp built? It seems the header isn't installed on purpose. Do you have a gmp.h in your destdir include? After running build.sh, I can cd to the failing place and rerun nbmake-amd64 from the tools bin: ~/NetBSD-current/src/external/gpl3/gcc/usr.bin/backend > /usr/obj/gdt-current/tools/bin/nbmake-amd64 # compile backend/gimple-match-1.o /usr/obj/gdt-current/tools/bin/x86_64--netbsd-c++ -frandom-seed=8175e99d -O2 -Wno-format-diag -Wall -Wpointer-arith -Wno-sign-compare -Wa,--fatal-warnings -Werror -fPIE -Wno-narrowing -Wno-unused -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/usr.bin/backend/../../../../mit/isl/dist/include -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/usr.bin/backend/../../../../mit/isl/include -Wno-stack-protector -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -fno-exceptions -fno-rtti -fasynchronous-unwind-tables --sysroot=/usr/obj/gdt-current/destdir/amd64 -DLOCALEDIR=\"/usr/share/locale\" -DNETBSD_NATIVE -I. -DENABLE_SHARED_LIBGCC -I. -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/usr.bin/backend/../gcc/arch/x86_64 -DIN_GCC -DHAVE_CONFIG_H -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc/. -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc/../include -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc/../libcpp/include -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc/../libcody -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc/../libdecnumber -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc/../libdecnumber/dpd -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc/../libbacktrace -DTARGET_NAME=\"x86_64--netbsd\" -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/libgcc -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/usr.bin/backend/../../lib/libgcc/libgcov/arch/x86_64 -c gimple-match-1.cc -o gimple-match-1.o In file included from /n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc/gimple-match-head.cc:21, from gimple-match-auto.h:3, from gimple-match-1.cc:7: /n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc/system.h:706:10: fatal error: gmp.h: No such file or directory 706 | #include <gmp.h> | ^~~~~~~ compilation terminated. *** Failed target: gimple-match-1.o *** Failed command: /usr/obj/gdt-current/tools/bin/x86_64--netbsd-c++ -frandom-seed=8175e99d -O2 -Wno-format-diag -Wall -Wpointer-arith -Wno-sign-compare -Wa,--fatal-warnings -Werror -fPIE -Wno-narrowing -Wno-unused -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/usr.bin/backend/../../../../mit/isl/dist/include -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/usr.bin/backend/../../../../mit/isl/include -Wno-stack-protector -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -fno-exceptions -fno-rtti -fasynchronous-unwind-tables --sysroot=/usr/obj/gdt-current/destdir/amd64 -DLOCALEDIR=\"/usr/share/locale\" -DNETBSD_NATIVE -I. -DENABLE_SHARED_LIBGCC -I. -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/usr.bin/backend/../gcc/arch/x86_64 -DIN_GCC -DHAVE_CONFIG_H -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc/. -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc/../include -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc/../libcpp/include -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc/../libcody -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc/../libdecnumber -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc/../libdecnumber/dpd -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/gcc/../libbacktrace -DTARGET_NAME=\"x86_64--netbsd\" -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/dist/libgcc -I/n0/gdt/NetBSD-current/src/external/gpl3/gcc/usr.bin/backend/../../lib/libgcc/libgcov/arch/x86_64 -c gimple-match-1.cc -o gimple-match-1.o *** Error code 1 Stop. nbmake: stopped making "all" in /n0/gdt/NetBSD-current/src/external/gpl3/gcc/usr.bin/backend I don't see how this can succeed, because gmp.h is not installed, and there is no -I to the not-installed copy. But I see a gmp.h symlink which resolves to plausible content, and -I. Is system.h supposed to have "" instead of <>? Is the -I. being ignored? Messed up because of sysroot? A new feature of gcc 14 that it works for includes in the file, but not in system headers?