Bug 234734 - databases/mongodb36 clang-bug at stage phase of poudriere build on 12.0-RELEASE
Summary: databases/mongodb36 clang-bug at stage phase of poudriere build on 12.0-RELEASE
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kurt Jaeger
URL:
Keywords:
Depends on: 234316
Blocks:
  Show dependency treegraph
 
Reported: 2019-01-08 09:47 UTC by Marko Cupać
Modified: 2019-01-08 17:59 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (dev)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marko Cupać 2019-01-08 09:47:20 UTC
Hi,

I can't build databases/mongodb36 on 12.0-RELEASE in poudriere. Build fails with the following message:

---log-excerpt-start---
c++ -o build/opt/mongo/s/commands/commands_public.o -c -O2 -pipe -fstack-protector -fno-strict-aliasing -Woverloaded-virtual -Werror=unused-result -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -Wno-instantiation-after-specialization -stdlib=libc++ -std=c++14 -O2 -pipe -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -Wno-unused-lambda-capture -Wno-exceptions -fstack-protector-strong -fno-builtin-memcmp -fpic -DNDEBUG -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -I/usr/local/include -Ibuild/opt -Isrc src/mongo/s/commands/commands_public.cpp
c++: error: unable to execute command: Killed
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)
Target: x86_64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
*** Signal 9

Stop.
make: stopped in /usr/ports/databases/mongodb36
c++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/commands_public-fcf244.cpp
c++: note: diagnostic msg: /tmp/commands_public-fcf244.sh
c++: note: diagnostic msg: 

********************
---log-excerpt-end---

Thank you in advance,
Comment 1 Kurt Jaeger freebsd_committer 2019-01-08 15:52:52 UTC
Can you test if the upgrade+patch in 234316 fixes the issue ?
Comment 2 Dimitry Andric freebsd_committer 2019-01-08 17:59:11 UTC
Marko, it looks like you are running out of memory.  Can you check dmesg for "swap_pager_getswapspace: failed" messages?  As a workaround, you can try adding more swap, or lower the -j level.