Compile fails siting errors in [src]/include/openssl/evp.h:1590. Message reports expected ')' before '^' token. Reproducible: Always Actual Results: Error Msg: --- gcc -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include -I../openssl-3.0.13 -I../openssl-3.0.13/include -I../openssl-3.0.13/providers/common/include -I../openssl-3.0.13/providers/implementations/include -DAES_ASM -DBSAES_ASM -DCMLL_ASM -DECP_NISTZ256_ASM -DGHASH_ASM -DKECCAK1600_ASM -DMD5_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DPOLY1305_ASM -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DX25519_ASM -fPIC -pthread -m64 -Wa,--noexecstack -march=bdver1 -O2 -pipe -fno-strict-aliasing -Wa,--noexecstack -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR="\"/usr/lib64/engines-3\"" -DMODULESDIR="\"/usr/lib64/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -MMD -MF crypto/asn1/libcrypto-lib-f_int.d.tmp -MT crypto/asn1/libcrypto-lib-f_int.o -c -o crypto/asn1/libcrypto-lib-f_int.o ../openssl-3.0.13/crypto/asn1/f_int.c In file included from ../openssl-3.0.13/crypto/asn1/d2i_pu.c:19: ../openssl-3.0.13/include/openssl/evp.h:1590:41: error: expected ')' before '^' token 1590 | int (*pkey_size) (const EVP_PKEY *pk), | ^ | ) ../openssl-3.0.13/include/openssl/evp.h:1591:31: error: expected ';', ',' or ')' before 'int' 1591 | int (*pkey_bits) (const EVP_PKEY *pk)); | ^~~ gcc -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include -I../openssl-3.0.13 -I../openssl-3.0.13/include -I../openssl-3.0.13/providers/common/include -I../openssl-3.0.13/providers/implementations/include -DAES_ASM -DBSAES_ASM -DCMLL_ASM -DECP_NISTZ256_ASM -DGHASH_ASM -DKECCAK1600_ASM -DMD5_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DPOLY1305_ASM -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DX25519_ASM -fPIC -pthread -m64 -Wa,--noexecstack -march=bdver1 -O2 -pipe -fno-strict-aliasing -Wa,--noexecstack -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR="\"/usr/lib64/engines-3\"" -DMODULESDIR="\"/usr/lib64/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -MMD -MF crypto/asn1/libcrypto-lib-f_string.d.tmp -MT crypto/asn1/libcrypto-lib-f_string.o -c -o crypto/asn1/libcrypto-lib-f_string.o ../openssl-3.0.13/crypto/asn1/f_string.c make[1]: *** [Makefile:9575: crypto/asn1/libcrypto-lib-d2i_pu.o] Error 1 ---
Created attachment 891147 [details] emerge --info emerge --info '=dev-libs/openssl-3.0.13-r2::gentoo'
Created attachment 891148 [details] emerge -pqv emerge -pqv '=dev-libs/openssl-3.0.13-r2::gentoo'
Created attachment 891149 [details] emerge build log file
Can you upload /var/tmp/portage/dev-libs/openssl-3.0.13/work/openssl-3.0.13/include/openssl/evp.h please?
(In reply to Sam James from comment #4) > Can you upload > /var/tmp/portage/dev-libs/openssl-3.0.13/work/openssl-3.0.13/include/openssl/ > evp.h please? uh 3.0.13-r2/work/blah
Created attachment 891150 [details] evp.h Requested Upload: /var/tmp/portage/dev-libs/openssl-3.0.13-r2/work/openssl-3.0.13/include/openssl/evp.h
I can't yet reproduce it. Is it really reproducible for you on every run? Your /var/tmp/portage/dev-libs/openssl-3.0.13-r2/work/openssl-3.0.13/include/openssl/evp.h is also the same as mine. Could you go into the workdir (/var/tmp/portage/dev-libs/openssl-3.0.13-r2/work/openssl-3.0.13-abi_x86_64.amd64) and run the failing GCC command manually? If it still fails, please run it again with `-save-temps` appended and upload f_int.i.
(In reply to Sam James from comment #7) > I can't yet reproduce it. Is it really reproducible for you on every run? Seems a clean fresh run did not reproduce the error. There was no real appreciable changes to system between runs. If the crypto source file `d2i_pu.c` causes grief in future, this issue may need to be revisited. For now, let's call this a "gremlin bug". It appeared and then disappeared. Apologies for the noise.
Thanks. I'd consider doing a memtest, fwiw. Feel free to come back if it returns.