[llvm-dev] "Export ordinal too large" when linking LLVM.dll with MinGW64
Cosmin Apreutesei via llvm-dev
llvm-dev at lists.llvm.org
Fri Jun 21 03:55:29 PDT 2019
Hi,
Trying to build llvm.dll (8.0.0) with mingw64 (gcc 8.1.0) using cmake.
After linking for hours and consuming some 7GB of RAM, ld.exe finally
bails out with:
X:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
Error: export ordinal too large: 283482
The command I used is:
cmake \
-DLLVM_TARGETS_TO_BUILD=X86 \
-DCMAKE_BUILD_TYPE=Debug \
-DLLVM_LINK_LLVM_DYLIB=ON \
-DLLVM_BUILD_TOOLS=OFF \
-DCMAKE_SHARED_LINKER_FLAGS="-t" \
-DCMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS="-t" \
-G "MinGW Makefiles"
Am I doing something wrong? Did anyone managed to get a LLVM.dll with
this toolchain?
More information about the llvm-dev
mailing list