Hi Salvatore, Salvatore Filippone via Gcc-help writes: > Hi there, > I need to build some older versions of the compiler on Fedora 37 (which has > 12.2.1 installed); at least 11 and 10, possibly also 9. These failures are coming from libsanitizer, you can either --disable-libsanitizer or backport a few fixes, like r13-1609-g2701442d0cf629. Please also check whether latest snapshots build, since the fixes might be backported into those already. I seem to recall building 12.2.1 20230218 recently without much trouble, but I'm unsure if my kernel headers were recent enough to cause trouble. > I tried bootstrapping 11.3.0 and I got this output. Any idea? (config.log > attached) > Thanks a lot > Salvatore > -------------------------------------------------------------- > libtool: compile: /data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/./gcc/xgcc > -shared-libgcc -B/data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/./gcc > -nostdinc++ > -L/data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/x86_64-pc-linux-gnu/libstdc++-v3/src > -L/data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs > -L/data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs > -B/opt/gnu/11.3.0/x86_64-pc-linux-gnu/bin/ > -B/opt/gnu/11.3.0/x86_64-pc-linux-gnu/lib/ -isystem > /opt/gnu/11.3.0/x86_64-pc-linux-gnu/include -isystem > /opt/gnu/11.3.0/x86_64-pc-linux-gnu/sys-include -fchecking=1 -D_GNU_SOURCE > -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS > -D__STDC_LIMIT_MACROS -DHAVE_RPC_XDR_H=0 -DHAVE_TIRPC_RPC_XDR_H=0 -I. > -I../../../../gcc-11.3.0/libsanitizer/sanitizer_common -I.. -I > ../../../../gcc-11.3.0/libsanitizer/include -I > ../../../../gcc-11.3.0/libsanitizer -isystem > ../../../../gcc-11.3.0/libsanitizer/include/system -Wall -W > -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC > -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables > -fvisibility=hidden -Wno-variadic-macros -I../../libstdc++-v3/include > -I../../libstdc++-v3/include/x86_64-pc-linux-gnu > -I../../../../gcc-11.3.0/libsanitizer/../libstdc++-v3/libsupc++ > -std=gnu++14 -fcf-protection -mshstk -DSANITIZER_LIBBACKTRACE > -DSANITIZER_CP_DEMANGLE -I > ../../../../gcc-11.3.0/libsanitizer/../libbacktrace -I ../libbacktrace -I > ../../../../gcc-11.3.0/libsanitizer/../include -include > ../../../../gcc-11.3.0/libsanitizer/libbacktrace/backtrace-rename.h -g -O2 > -D_GNU_SOURCE -MT sanitizer_platform_limits_posix.lo -MD -MP -MF > .deps/sanitizer_platform_limits_posix.Tpo -c > ../../../../gcc-11.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp > -fPIC -DPIC -o .libs/sanitizer_platform_limits_posix.o > In file included from /usr/include/linux/fs.h:19, > from > ../../../../gcc-11.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:75: > /usr/include/linux/mount.h:95:6: error: multiple definition of ‘enum > fsconfig_command’ > 95 | enum fsconfig_command { > | ^~~~~~~~~~~~~~~~ > In file included from > ../../../../gcc-11.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:62: > /data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/gcc/include-fixed/sys/mount.h:249:6: > note: previous definition here > 249 | enum fsconfig_command > | ^~~~~~~~~~~~~~~~ > In file included from /usr/include/linux/fs.h:19, > from > ../../../../gcc-11.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:75: > /usr/include/linux/mount.h:129:8: error: redefinition of ‘struct mount_attr’ > 129 | struct mount_attr { > | ^~~~~~~~~~ > In file included from > ../../../../gcc-11.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:62: > /data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/gcc/include-fixed/sys/mount.h:219:8: > note: previous definition of ‘struct mount_attr’ > 219 | struct mount_attr > | ^~~~~~~~~~ > make[4]: *** [Makefile:615: sanitizer_platform_limits_posix.lo] Errore 1 > make[4]: uscita dalla directory > «/data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/x86_64-pc-linux-gnu/libsanitizer/sanitizer_common» > make[3]: *** [Makefile:531: all-recursive] Errore 1 > make[3]: uscita dalla directory > «/data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/x86_64-pc-linux-gnu/libsanitizer» > make[2]: *** [Makefile:418: all] Errore 2 > make[2]: uscita dalla directory > «/data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/x86_64-pc-linux-gnu/libsanitizer» > make[1]: *** [Makefile:21826: all-target-libsanitizer] Errore 2 > make[1]: uscita dalla directory > «/data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0» > make: *** [Makefile:29174: bootstrap] Errore 2 > ------------------------------------------------------------------------ Hope that helps, have a good day. -- Arsen Arsenović