Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure with MinGW64 - string table overflow in PassBuilder.cpp.obj #51143

Open
gyorokpeter mannequin opened this issue Sep 9, 2021 · 1 comment
Open

Build failure with MinGW64 - string table overflow in PassBuilder.cpp.obj #51143

gyorokpeter mannequin opened this issue Sep 9, 2021 · 1 comment
Labels

Comments

@gyorokpeter
Copy link
Mannequin

gyorokpeter mannequin commented Sep 9, 2021

Bugzilla Link 51801
Version trunk
OS Windows NT

Extended Description

I use the following commands:
set PATH=D:\msys64\mingw64\bin;D:\msys64\usr\bin;%PATH%
cmake -S llvm -B build -G "MSYS Makefiles"
cd build
make

It builds fine up to this line:
Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.obj

But then it fails with:
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/as.exe: CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.obj: section .text$_ZN4llvm11getTypeNameINS_22InvalidateAnalysisPassINS_18LoopAccessAnalysisEEEEENS_9StringRefEv: string table overflow at offset 10000036
D:\Temp\WindowsTemp\ccCLHORR.s: Assembler messages:
D:\Temp\WindowsTemp\ccCLHORR.s: Fatal error: CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.obj: file too big
make[2]: *** [lib/Passes/CMakeFiles/LLVMPasses.dir/build.make:76: lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:24355: lib/Passes/CMakeFiles/LLVMPasses.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
@stevefan1999-personal
Copy link

Experienced the same issue in LLVM 13 as well, with the same MinGW setup on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants