Issue |
125749
|
Summary |
Debug build of FortranSemantics.lib too large
|
Labels |
platform:windows,
flang,
flang:semantics
|
Assignees |
|
Reporter |
Meinersbur
|
It is not possible anymore to compile a debug build Flang using MSVC:
```
> cmake --build . --target FortranSemantics
[...]
C:\Users\meinersbur\build\llvm-project\debug_vs17\Debug\lib\FortranSemantics.lib : fatal error LNK1248: image size (1062E7AEC) exceeds maximum allowable size (FFFFFFFF) [C:\Users\meinersbur\build\llvm-project\debug_vs17\tools\flang\lib\Semantics\FortranSemantics.vcxproj]
```
So the FortranSemantics.lib would be 4.2GB which exceeds the maximum of 4GB. For comparison:
* FortranLower.lib (3.8 GB, + .pdb 331MB)
* FortranEvaluate.lib (3.7GB, + .pdb 113MB)
* Final executable size: flang.exe (393MB, + .pdb 3.6GB)
* Largest non-Flang .lib: clangSema.lib (712MB)
* debug+asserts build using gcc: libFortranSemantics.a (6.47GB, -fno-split-dwarf: 7.1GB)
* Largest .a in debug+asserts build using gcc: libFortranLower.a (8.8GB, -fno-split-dwarf: 8.4GB (?))
Same error reported elsewhere on GitHub:
* https://github.com/microsoft/vcpkg/issues/42515
This make it impossible to debug Flang under Windows. Maybe we can split up the library into two parts, e.g. split off the `check-*.cpp` files?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs