gcc snapshot =gcc-15.0.0_pre20240922-r2 fails to build stockfish ld: <artificial>:(.text+0x83fa): undefined reference to `(anonymous namespace)::gEmbeddedNNUEBigData' Reproducible: Always Steps to Reproduce: select to use =gcc-15.0.0_pre20240929 USE="optimize -debug -general-32 -general-64" CPU_FLAGS_X86="avx2 avx512dq avx512f popcnt sse" emerge -1 =games-board/stockfish-17 Actual Results: /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/games-board/stockfish-17/temp/cc3RZsL1.ltrans8.ltrans.o: in function `Stockfish::Eval::NNUE::Network<Stockfish::Eval::NNUE::NetworkArchitecture<3072u, 15, 32>, Stockfish::Eval::NNUE::FeatureTransformer<3072u, &Stockfish::StateInfo::accumulatorBig> >::load_internal()': <artificial>:(.text+0x83ec): undefined reference to `(anonymous namespace)::gEmbeddedNNUEBigSize' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x83fa): undefined reference to `(anonymous namespace)::gEmbeddedNNUEBigData' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x85eb): undefined reference to `(anonymous namespace)::gEmbeddedNNUESmallSize' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x85f9): undefined reference to `(anonymous namespace)::gEmbeddedNNUESmallData' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/games-board/stockfish-17/temp/cc3RZsL1.ltrans8.ltrans.o: in function `Stockfish::Eval::NNUE::Network<Stockfish::Eval::NNUE::NetworkArchitecture<128u, 15, 32>, Stockfish::Eval::NNUE::FeatureTransformer<128u, &Stockfish::StateInfo::accumulatorSmall> >::load_internal()': <artificial>:(.text+0x9e4c): undefined reference to `(anonymous namespace)::gEmbeddedNNUEBigSize' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x9e5a): undefined reference to `(anonymous namespace)::gEmbeddedNNUEBigData' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0xa04b): undefined reference to `(anonymous namespace)::gEmbeddedNNUESmallSize' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0xa059): undefined reference to `(anonymous namespace)::gEmbeddedNNUESmallData' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:1046: stockfish] Error 1 make[2]: Leaving directory '/var/tmp/portage/games-board/stockfish-17/work/Stockfish-sf_17/src' make[1]: *** [Makefile:1067: gcc-profile-make] Error 2 make[1]: Leaving directory '/var/tmp/portage/games-board/stockfish-17/work/Stockfish-sf_17/src' make: *** [Makefile:881: profile-build] Error 2 * ERROR: games-board/stockfish-17::gentoo failed (compile phase): succesfully built same version on 2024-09-24 with =gcc-15.0.0_pre20240922-r2 using the same environment
Created attachment 904226 [details] emerge --info
Created attachment 904227 [details] build log of compile failure
Wrong attachments? I see "Moved permanently"
Created attachment 904245 [details] build failure log
continues to fail with sys-devel/gcc-15.0.0_pre20241013-r1
Does it work with 14?
Reproduced.
*** Bug 941463 has been marked as a duplicate of this bug. ***