Open psiddire opened 1 month ago
We need more information about your issue to see what went wrong. Is your program open-source? I need to reproduce the issue locally to debug it.
Unfortunately it is not open-source. I'll try to create a small test case and share with you.
Setup
Machine - SUSE Linux Enterprise Server version 12.
GCC - 12.3.0
cmake - 3.25.1
As I do not have root permissions, I installed mold in a local directory and added it to the path. I ran the build with
mold -run make install
It ran fine for the most part, but received the following error:
mold: error: undefined symbol: OPENSSL_ia32cap_P
This is because I am using OpenSSL in one of the source files:
openssl - 1.1.1g
The error mentions that the above symbol is referenced in the following file:
openssl/openssl-1.1.1g/openssl-64bit-release-static-gcc-8.2.0/lib/libcrypto.a(cryptlib.o):(OPENSSL_cpuid_setup)
I did not receive this error when I used the default linker, so I know that it works.
Seems to be an issue with mold. Is there a bypass or a workaround for this?