Opened 2 years ago
Last modified 2 years ago
#65560 new defect
clang-12 @12.0.1_1 +analyzer+debug+libstdcxx+tests: compiling consumes all available system memory; forces restart
Reported by: | cooljeanius (Eric Gallager) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.2 |
Keywords: | Cc: | jeremyhu (Jeremy Huddleston Sequoia) | |
Port: | clang-12 |
Description
I'm on Big Sur (11.6.8) with Xcode 13.2.1; I tried to get an Activity Monitor screenshot this time around before the system ran out of resources; let me try attaching that...
Attachments (1)
Change History (4)
Changed 2 years ago by cooljeanius (Eric Gallager)
Attachment: | Screen Shot 2022-07-28 at 12.27.02.png added |
---|
comment:1 Changed 2 years ago by cooljeanius (Eric Gallager)
(as a side note, this bug has me wondering: instead of having just a binary yes
/no
for use_parallel_build
, what about allowing Portfiles to set a maximum number of build jobs? 16 is probably too many here, but turning parallel build off completely here and limiting it to just a single job would probably also take too long... maybe just 4 jobs would work?)
comment:2 Changed 2 years ago by kencu (Ken)
you can try easily -- set it in macports.conf
# Number of simultaneous make(1) jobs to use when building ports. If set # to 0, the number of jobs will be the lesser of: # - number of automatically-detected CPU cores # - gigabytes of physical memory + 1 #buildmakejobs 0
comment:3 Changed 2 years ago by jmroot (Joshua Root)
You can certainly lower the number of build.jobs in a Portfile.
build.jobs [expr {${build.jobs} > 4 ? 4 : ${build.jobs}}]
Note: See
TracTickets for help on using
tickets.
screenshot of a bunch of clang processes each taking up a bunch of memory while compiling clang-12