Open PwnVerse opened 4 months ago
I think you're right, and apparently nobody noticed in more than two years :sweatsmile: We'll need to have a look at how to fix this properly in CMake. As a workaround, can you try to give CMake some dummy C and C++ flags, either via `-DCMAKE[C/CXX]_FLAGSor with the
CFLAGS/CXXFLAGS` environment variables?
I tried setting the c and cxxflags to -emit-llvm
this time, build succeeded but it ended up building the 64 bit version.
~/Desktop/Files/test/symcc/build/SymRuntime32-prefix/src/SymRuntime32-build$ file libSymRuntime.so
libSymRuntime.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=c8d49090c208303ec72d7bb414fcc0df5a5265bd, not stripped
@sebastianpoeplau I would like to investigate this further and either find a simple workaround or fix this issue for 32 bit builds. Is it possible for you to maybe hop on a quick call or give me some insight into how I can help in fixing this?
Any updates on this bug? I'm also stuck on this.
This error can be prevented by simply removing the leading space of the -m32 tags in the CMakeFile.txt.
Here are the steps to reproduce the issue. Note that I have already built z3 separately.
Fails with -
The reason I see is that it's trying to use the -m32 flag as " -m32" in it's arguments. Please let me know if I'm missing something trivial.