Bug 264140 - devel/llvm14: Fails to build: pid 25070 (c++), jid 0, uid 0, was killed: failed to reclaim memory
Summary: devel/llvm14: Fails to build: pid 25070 (c++), jid 0, uid 0, was killed: fail...
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-21 22:19 UTC by Ulas SAYGIN
Modified: 2022-05-22 02:32 UTC (History)
0 users

See Also:


Attachments
port installation output log file 1 (985.89 KB, application/x-zip-compressed)
2022-05-21 22:20 UTC, Ulas SAYGIN
no flags Details
port installation output log file 2 (1000.00 KB, application/octet-stream)
2022-05-21 22:21 UTC, Ulas SAYGIN
no flags Details
dmesg output log file after compilation error. (17.67 KB, text/plain)
2022-05-21 22:23 UTC, Ulas SAYGIN
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulas SAYGIN 2022-05-21 22:19:24 UTC
hi,

i want to install devel/llvm14 on freebsd 13.1.
after installation of freebsd 13.1 , i didnt change any config.
i just portsnap auto and then 
cd  /usr/ports/devel/llvm14

make BATCH=yes  install  >& /root/llvm-14-build-2022-15-21-vanilla-installed-freebsd_13_1.log

i am adding port installation log and dmesg output as log file.

i also tested before this, same vanilla install of freebsd and only change is 
make BATCH=yes MAKE_JOBS_UNSAFE=yes  install 

it is installed without a problem. what is the difference between MAKE_JOBS_UNSAFE=yes option and without this option set?
Comment 1 Ulas SAYGIN 2022-05-21 22:20:40 UTC
Created attachment 234096 [details]
port installation output log file 1

there is another file to make extract log file please dont forget to download llvm-14-build-2022-15-21-vanilla-installed-freebsd_13_1.z01 file.
Comment 2 Ulas SAYGIN 2022-05-21 22:21:50 UTC
Created attachment 234097 [details]
port installation output log file 2

it is required by previous  port installation output log file 1.
Comment 3 Ulas SAYGIN 2022-05-21 22:23:01 UTC
Created attachment 234098 [details]
dmesg output log file after compilation error.
Comment 4 Ulas SAYGIN 2022-05-21 22:42:59 UTC
i found that it is similary problem like this bug report.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259570

if i unset MILR and FLANG option, i was able to install with make install command.
Comment 5 Kubilay Kocak freebsd_committer freebsd_triage 2022-05-22 02:32:41 UTC
This appears to be a memory/resource exhaustion issue, which is/can be common when building LLVM (and other language stacks such as rust).

You may want to consider testing the build with DISABLE_MAKE_JOBS=yes set, to stop parallel building, or consider additional swap space to cover the peak needs of the LLVM build.

If you believe this assessment is incorrect, please re-open the issue with additional details.