sci-libs/openblas-0.3.21-r1 fails to compile, but the newer version 0.3.23 success, please consider update it. here the build log: Compiling source in /var/tmp/portage/sci-libs/openblas-0.3.21-r1/work/OpenBLAS-0.3.21 ... make -j32 /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: warning: /var/tmp/portage/sci-libs/openblas-0.3.21-r1/temp/ccBuQfFq.o: missing .note.GNU-stack section implies executable stack /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker getarch_2nd.c: In function ‘main’: getarch_2nd.c:22:35: error: ‘SGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function); did you mean ‘SBGEMM_DEFAULT_UNROLL_M’? 22 | printf("SGEMM_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M); | ^~~~~~~~~~~~~~~~~~~~~~ | SBGEMM_DEFAULT_UNROLL_M getarch_2nd.c:22:35: note: each undeclared identifier is reported only once for each function it appears in getarch_2nd.c:23:35: error: ‘SGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function); did you mean ‘SBGEMM_DEFAULT_UNROLL_N’? 23 | printf("SGEMM_UNROLL_N=%d\n", SGEMM_DEFAULT_UNROLL_N); | ^~~~~~~~~~~~~~~~~~~~~~ | SBGEMM_DEFAULT_UNROLL_N getarch_2nd.c:24:35: error: ‘DGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function); did you mean ‘XGEMM_DEFAULT_UNROLL_M’? 24 | printf("DGEMM_UNROLL_M=%d\n", DGEMM_DEFAULT_UNROLL_M); | ^~~~~~~~~~~~~~~~~~~~~~ | XGEMM_DEFAULT_UNROLL_M getarch_2nd.c:25:35: error: ‘DGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function); did you mean ‘QGEMM_DEFAULT_UNROLL_N’? 25 | printf("DGEMM_UNROLL_N=%d\n", DGEMM_DEFAULT_UNROLL_N); | ^~~~~~~~~~~~~~~~~~~~~~ | QGEMM_DEFAULT_UNROLL_N getarch_2nd.c:29:35: error: ‘CGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function); did you mean ‘XGEMM_DEFAULT_UNROLL_M’? 29 | printf("CGEMM_UNROLL_M=%d\n", CGEMM_DEFAULT_UNROLL_M); | ^~~~~~~~~~~~~~~~~~~~~~ | XGEMM_DEFAULT_UNROLL_M getarch_2nd.c:30:35: error: ‘CGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function); did you mean ‘QGEMM_DEFAULT_UNROLL_N’? 30 | printf("CGEMM_UNROLL_N=%d\n", CGEMM_DEFAULT_UNROLL_N); | ^~~~~~~~~~~~~~~~~~~~~~ | QGEMM_DEFAULT_UNROLL_N getarch_2nd.c:31:35: error: ‘ZGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function); did you mean ‘XGEMM_DEFAULT_UNROLL_M’? 31 | printf("ZGEMM_UNROLL_M=%d\n", ZGEMM_DEFAULT_UNROLL_M); | ^~~~~~~~~~~~~~~~~~~~~~ | XGEMM_DEFAULT_UNROLL_M getarch_2nd.c:32:35: error: ‘ZGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function); did you mean ‘QGEMM_DEFAULT_UNROLL_N’? 32 | printf("ZGEMM_UNROLL_N=%d\n", ZGEMM_DEFAULT_UNROLL_N); | ^~~~~~~~~~~~~~~~~~~~~~ | QGEMM_DEFAULT_UNROLL_N getarch_2nd.c:79:50: error: ‘SGEMM_DEFAULT_Q’ undeclared (first use in this function); did you mean ‘SBGEMM_DEFAULT_Q’? 79 | printf("#define SLOCAL_BUFFER_SIZE\t%ld\n", (SGEMM_DEFAULT_Q * SGEMM_DEFAULT_UNROLL_N * 4 * 1 * sizeof(float))); | ^~~~~~~~~~~~~~~ | SBGEMM_DEFAULT_Q getarch_2nd.c:80:50: error: ‘DGEMM_DEFAULT_Q’ undeclared (first use in this function); did you mean ‘SBGEMM_DEFAULT_Q’? 80 | printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 * sizeof(double))); | ^~~~~~~~~~~~~~~ | SBGEMM_DEFAULT_Q getarch_2nd.c:81:50: error: ‘CGEMM_DEFAULT_Q’ undeclared (first use in this function); did you mean ‘SBGEMM_DEFAULT_Q’? 81 | printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 * sizeof(float))); | ^~~~~~~~~~~~~~~ | SBGEMM_DEFAULT_Q getarch_2nd.c:82:50: error: ‘ZGEMM_DEFAULT_Q’ undeclared (first use in this function); did you mean ‘SBGEMM_DEFAULT_Q’? 82 | printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 * sizeof(double))); | ^~~~~~~~~~~~~~~ | SBGEMM_DEFAULT_Q make[1]: *** [Makefile.prebuild:86: getarch_2nd] Error 1 Makefile:167: *** OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.. Stop. * ERROR: sci-libs/openblas-0.3.21-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sci-libs/openblas-0.3.21-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-libs/openblas-0.3.21-r1::gentoo'`. * The complete build log is located at '/var/tmp/portage/sci-libs/openblas-0.3.21-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-libs/openblas-0.3.21-r1/temp/environment'. * Working directory: '/var/tmp/portage/sci-libs/openblas-0.3.21-r1/work/OpenBLAS-0.3.21' * S: '/var/tmp/portage/sci-libs/openblas-0.3.21-r1/work/OpenBLAS-0.3.21'
Please always include the full build.log and emerge --info. I'll file a separate bug for the version bump.