https://bugs.llvm.org/show_bug.cgi?id=36123
Bug ID: 36123
Summary: memory usage almost doubled while O3+LTOing clang?
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedb...@nondot.org
Reporter: matthias.krue...@famsik.de
CC: llvm-bugs@lists.llvm.org
While doing my multistage clang selfhost, it seems peak memory usage while
linking the clang binary went from 3-5 gigs compared to a week ago to at least
7 which causes OOM crash in my machine in most cases, if there is a another
linking job happening at the same time. I don't remember this ever being an
issue before at this stage.
cmake config of this stage (stage nr 2):
cmake ../llvm -G "Ninja" \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_BINUTILS_INCDIR=/usr/include \
-DCMAKE_C_FLAGS="-march=native -O3 -g0 -DNDEBUG" \
-DCMAKE_CXX_FLAGS="-march=native -O3 -g0 -DNDEBUG" \
-DLLVM_PARALLEL_LINK_JOBS=2 \
-DLLVM_OPTIMIZED_TABLEGEN=1 \
-DLLVM_TARGETS_TO_BUILD="X86" \
-DLLVM_ENABLE_LTO="Full" \
-DCMAKE_AR="${rootDir}/stage_1/build/bin/llvm-ar" \
-DCMAKE_RANLIB="${rootDir}/stage_1/build/bin/llvm-ranlib" \
-DLLVM_USE_LINKER="${rootDir}/stage_1/build/bin/ld.lld" \
-DCMAKE_INSTALL_PREFIX="${stageBase}/build/" \
-DLLVM_LIBDIR_SUFFIX=64 \
full build script can be found here:
https://github.com/matthiaskrgr/llvm_bootstrap/blob/master/build_git.sh
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs