Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 658476

Summary: sys-devel/llvm-5.0.2 is not build on new system with -mtune=generic
Product: Gentoo Linux Reporter: Michail Shurutov <shurutov>
Component: Current packagesAssignee: LLVM support project <llvm>
Status: RESOLVED INVALID    
Severity: major CC: jstein, mgorny
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log from var/tmp/portage/sys-devel/llvm-5.0.2/temp/
Environment of build process
Out of `emerge --info '=sys-devel/llvm-5.0.2'`
out of dmesg and free command

Description Michail Shurutov 2018-06-19 11:11:13 UTC
Created attachment 536322 [details]
build log from var/tmp/portage/sys-devel/llvm-5.0.2/temp/

I cannot build llvm on new system (HP EliteBook 840 G5).
build.log is too attached.
Comment 1 Michail Shurutov 2018-06-19 11:12:08 UTC
Created attachment 536324 [details]
Environment of build process
Comment 2 Michail Shurutov 2018-06-19 11:13:07 UTC
Created attachment 536326 [details]
Out of `emerge --info '=sys-devel/llvm-5.0.2'`
Comment 3 Michail Shurutov 2018-06-19 11:49:06 UTC
I need -mtune=generic because I have AMD FX-8320E on my desktop and Intel processors on my laptops and I want to use distcc for build any products, as libreoffice, mozilla firefox etc.
Comment 4 Jonas Stein gentoo-dev 2018-06-21 18:01:30 UTC
in order to locate the source of trouble: Can you compile without -mtune=generic?
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-06-21 20:58:40 UTC
My first guess is that you've run out of memory.  Please check 'dmesg' for any indications of OOM-killer activity.
Comment 6 Michail Shurutov 2018-06-22 03:40:11 UTC
Thanks for answers guys.
Jonas, disabling "-mtune=generic" was not affected. Building llvm was crashed.
Michał Górny, my guess was similar, but I didn't see dmesg.
I'm attached file llvm.lowmem with out of dmesg and free command
Comment 7 Michail Shurutov 2018-06-22 03:41:01 UTC
Created attachment 536758 [details]
out of dmesg and free command
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-06-22 06:50:46 UTC
> [119386.716316] lowmemorykiller: send sigkill to 8525 (cc1plus), adj 0, size 113604

Looks like it is indeed the case.  -j9 is definitely too many for 3G of memory.  I manage to build LLVM with -j5 on 4G of mem, and that's at the edge of OOM (and some swap).