https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121709
Bug ID: 121709 Summary: [16 regression] Failed bootstrap in m2 (m2/gm2-lang.cc:547:39: error: ‘PREFIX_INCLUDE_DIR’ was not declared in this scope) Product: gcc Version: 16.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: modula2 Assignee: gaius at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- ``` /var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/./prev-gcc/xg++ -B/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/ libsupc++/.libs -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/libstdc++-v3/libsupc++ -L/var/tmp/portage/sys-devel/gcc-16.0.9999/work/ build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-16.0.9999/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -fPIE -MT m2/gm2-lang.o -MMD -MP -MF m2/.deps/gm2-lang.TPo -c -g -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/m2 -Im2 -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/m2/g m2-gcc -Im2/gm2-gcc -DDEF_GENTOO_SCP -DDEF_GENTOO_ZNOW -DEXTRA_OPTIONS -DGENTOO_FORTIFY_SOURCE_LEVEL=3 -DDEF_GENTOO_GLIBCXX_ASSERTIONS -DIN_GCC_FRONTEND -m64 -O3 -march=native -fno-semantic-interposition -g1 -pipe -fcf-protection=none -fdiagnostics-color=always -fdiagnostics-urls=never -Wa,-O2 -Wa,-mtune=znver2 --param=ggc-min-expand=120 -Wstrict-aliasing -Wfree-nonheap-object -Wuninitialized -Wmaybe-uninitialized -Wreturn-type -Wbuiltin-declaration-mismatch -Wtautological-compare -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -Wstrin gop-overread -Wstringop-overflow -Wstringop-truncation -Wformat-overflow -Wformat-truncation -Wrestrict -ggdb3 -ggdb3 -Wno-error=lto-type-mismatch -Wno-error=odr -fno-checking -flto=jobserver -frandom-seed=1 -fprofile-generate -flto=jobserver -frandom-seed=1 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing -Wwrite-strings -Wcast-qual -DHAVE_CONFIG_H -fPIE \ -DLIBSUBDIR=\"/usr/lib/gcc/x86_64-pc-linux-gnu/16\" \ -I. -Im2 -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/m2 -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/../include -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/../libcody -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/../libdecnumber/bid -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/../libbacktrace -D_GENTOO_TIME64_FORCE=0 -I. -Im2 -I/var/tmp/portage/sys-devel/gcc-16.0.9999/wo rk/gcc-16.0.9999/gcc -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/m2 -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/../include -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/../libcody -I/var/tmp/portage/sys-devel/gcc-16.0.9999 /work/gcc-16.0.9999/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/../libdecnumber/bid -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/../libbacktrace /var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/m2/gm2-lang.cc -o m2/gm2-lang.o /var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/m2/gm2-lang.cc: In function ‘void add_default_include_paths(const char*)’: /var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/m2/gm2-lang.cc:547:39: error: ‘PREFIX_INCLUDE_DIR’ was not declared in this scope 547 | foreach_lib_gen_import_path (flibs, PREFIX_INCLUDE_DIR); | ^~~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/m2/gm2-lang.cc: At global scope: /var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/m2/gm2-lang.cc:573:1: warning: ‘void m2_pathname_root(const char*)’ defined but not used [-Wunused-function] 573 | m2_pathname_root (const char *libroot) | ^~~~~~~~~~~~~~~~ make[3]: *** [/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/gcc/m2/Make-lang.in:641: m2/gm2-lang.o] Error 1 ```