Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658476 - sys-devel/llvm-5.0.2 is not build on new system with -mtune=generic
Summary: sys-devel/llvm-5.0.2 is not build on new system with -mtune=generic
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-19 11:11 UTC by Michail Shurutov
Modified: 2018-06-22 06:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log from var/tmp/portage/sys-devel/llvm-5.0.2/temp/ (build.log,428.53 KB, text/x-log)
2018-06-19 11:11 UTC, Michail Shurutov
Details
Environment of build process (environment,170.46 KB, text/plain)
2018-06-19 11:12 UTC, Michail Shurutov
Details
Out of `emerge --info '=sys-devel/llvm-5.0.2'` (emerge-llvm-5.0.2.info,5.70 KB, application/x-info)
2018-06-19 11:13 UTC, Michail Shurutov
Details
out of dmesg and free command (llvm.lowmem,622 bytes, text/plain)
2018-06-22 03:41 UTC, Michail Shurutov
Details

Note You need to log in before you can comment on or make changes to this bug.
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).