std::bad_alloc while building kf5-kxmlgui
[x] I ran brew update && "$(brew --repo kde-mac/kde)/tools/do-caveats.sh"
and am still able to reproduce my issue.
[x] I have resolved all warnings from brew doctor
and that did not fix my problem.
[x] I added output from brew gist-logs <formula>
below.
[x] I added output from brew config
below.
[x] I added output from brew doctor
below.
Problem
I tried to install okular with brew install kde-mac/kde/okular
and got this error
==> Installing okular from kde-mac/kde
==> Installing dependencies for kde-mac/kde/okular: kde-mac/kde/kf5-kxmlgui, kde-mac/kde/kf5-kbookmarks, kde-mac/kde/kf5-kjobwidgets, boost, kde-mac/kde/phonon, libogg, libvorbis, libcanberra, kde-mac/kde/kf5-knotifications, kde-mac/kde/kf5-kwallet, kde-mac/kde/kf5-solid, libxslt, kde-mac/kde/kf5-kio, kde-mac/kde/kf5-kparts, openssl, kde-mac/kde/kf5-khtml, discount, djvulibre, kde-mac/kde/kf5-breeze-icons, kde-mac/kde/kf5-kactivities, kde-mac/kde/kf5-kpackage, kde-mac/kde/kf5-kirigami2, kde-mac/kde/kf5-kpty, libssh, exiv2, kde-mac/kde/libkexiv2, libspectre, poppler-qt5, botan, pkcs11-helper, qca and threadweaver
==> Installing kde-mac/kde/okular dependency: kde-mac/kde/kf5-kxmlgui
==> cmake -G Ninja -B build -S . -D BUILD_QCH=ON -D BUILD_TESTING=ON -D BUILD_TESTS=ON -D BUILD_UNITTESTS=ON -D CMAKE_INSTALL_BUNDLED
==> cmake --build build
Last 15 lines from /Users/maikol/Library/Logs/Homebrew/kf5-kxmlgui/02.cmake:
cmake
--build
build
[1/124] cd /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build && /usr/local/Cellar/cmake/3.21.4/bin/cmake -DPYTHON_EXECUTABLE=/usr/local/bin/python3 -D_ki18n_pmap_compile_script=/usr/local/lib/cmake/KF5I18n/ts-pmap-compile.py -DCOPY_TO=/tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/locale -DPO_DIR=/tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/po -P /usr/local/lib/cmake/KF5I18n/build-tsfiles.cmake
[2/124] cd /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src && cmake -E remove_directory "/tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/KF5XmlGui_ECMQchDoxygen" && cmake -E make_directory "/tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/KF5XmlGui_ECMQchDoxygen" && /usr/local/bin/doxygen /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/KF5XmlGui_ECMQchDoxygen.config
FAILED: src/KF5XmlGui.qch src/KF5XmlGui.tags /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/KF5XmlGui.qch /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/KF5XmlGui.tags
cd /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src && cmake -E remove_directory "/tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/KF5XmlGui_ECMQchDoxygen" && cmake -E make_directory "/tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/KF5XmlGui_ECMQchDoxygen" && /usr/local/bin/doxygen /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/KF5XmlGui_ECMQchDoxygen.config
libc++abi: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
/bin/sh: line 1: 89163 Abort trap: 6 /usr/local/bin/doxygen /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/KF5XmlGui_ECMQchDoxygen.config
[3/124] cd /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build && /usr/local/Cellar/cmake/3.21.4/bin/cmake -DGETTEXT_MSGFMT_EXECUTABLE=/usr/local/bin/msgfmt -DCOPY_TO=/tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/locale -DPO_DIR=/tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/po -P /usr/local/lib/cmake/KF5I18n/build-pofiles.cmake
[4/124] cd /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/ksendbugmail && /usr/local/Cellar/cmake/3.21.4/bin/cmake -E cmake_autogen /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/ksendbugmail/CMakeFiles/ksendbugmail_autogen.dir/AutogenInfo.json Release && /usr/local/Cellar/cmake/3.21.4/bin/cmake -E touch /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/ksendbugmail/ksendbugmail_autogen/timestamp && /usr/local/Cellar/cmake/3.21.4/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0 /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/src/ksendbugmail /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/ksendbugmail /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/ksendbugmail/ksendbugmail_autogen/deps /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/CMakeFiles/d/10d36234015ee6ce2c31b13b31a015f6aae739bb61e637b0f099b8caada8f548.d
[5/124] cd /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src && /usr/local/Cellar/cmake/3.21.4/bin/cmake -E cmake_autogen /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/CMakeFiles/KF5XmlGui_autogen.dir/AutogenInfo.json Release && /usr/local/Cellar/cmake/3.21.4/bin/cmake -E touch /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/KF5XmlGui_autogen/timestamp && /usr/local/Cellar/cmake/3.21.4/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0 /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/src /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/src/KF5XmlGui_autogen/deps /tmp/kf5-kxmlgui-20211103-88998-19zt4ek/kxmlgui-5.87.0/build/CMakeFiles/d/63d8c814831abe0ee1a7913da024f64caee46638204d47b5f4e2085852113fcb.d
ninja: build stopped: subcommand failed.
If reporting this issue please do so to (not Homebrew/brew or Homebrew/core):
kde-mac/kde
Traceback (most recent call last):
28: from /usr/local/Homebrew/Library/Homebrew/build.rb:224:in `<main>'
27: from /usr/local/Homebrew/Library/Homebrew/build.rb:124:in `install'
26: from /usr/local/Homebrew/Library/Homebrew/utils.rb:550:in `with_env'
25: from /usr/local/Homebrew/Library/Homebrew/build.rb:129:in `block in install'
24: from /usr/local/Homebrew/Library/Homebrew/formula.rb:1284:in `brew'
23: from /usr/local/Homebrew/Library/Homebrew/formula.rb:2442:in `stage'
22: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/forwardable.rb:230:in `stage'
21: from /usr/local/Homebrew/Library/Homebrew/resource.rb:96:in `stage'
20: from /usr/local/Homebrew/Library/Homebrew/resource.rb:121:in `unpack'
19: from /usr/local/Homebrew/Library/Homebrew/resource.rb:208:in `mktemp'
18: from /usr/local/Homebrew/Library/Homebrew/mktemp.rb:63:in `run'
17: from /usr/local/Homebrew/Library/Homebrew/mktemp.rb:63:in `chdir'
16: from /usr/local/Homebrew/Library/Homebrew/mktemp.rb:63:in `block in run'
15: from /usr/local/Homebrew/Library/Homebrew/resource.rb:122:in `block in unpack'
14: from /usr/local/Homebrew/Library/Homebrew/download_strategy.rb:102:in `stage'
13: from /usr/local/Homebrew/Library/Homebrew/download_strategy.rb:115:in `chdir'
12: from /usr/local/Homebrew/Library/Homebrew/download_strategy.rb:115:in `chdir'
11: from /usr/local/Homebrew/Library/Homebrew/resource.rb:126:in `block (2 levels) in unpack'
10: from /usr/local/Homebrew/Library/Homebrew/formula.rb:2462:in `block in stage'
9: from /usr/local/Homebrew/Library/Homebrew/utils.rb:550:in `with_env'
8: from /usr/local/Homebrew/Library/Homebrew/formula.rb:2463:in `block (2 levels) in stage'
7: from /usr/local/Homebrew/Library/Homebrew/formula.rb:1291:in `block in brew'
6: from /usr/local/Homebrew/Library/Homebrew/build.rb:134:in `block (2 levels) in install'
5: from /usr/local/Homebrew/Library/Homebrew/utils.rb:550:in `with_env'
4: from /usr/local/Homebrew/Library/Homebrew/build.rb:172:in `block (3 levels) in install'
3: from /usr/local/Homebrew/Library/Taps/kde-mac/homebrew-kde/Formula/kf5-kxmlgui.rb:25:in `install'
2: from /usr/local/Homebrew/Library/Homebrew/formula.rb:2233:in `system'
1: from /usr/local/Homebrew/Library/Homebrew/formula.rb:2233:in `open'
/usr/local/Homebrew/Library/Homebrew/formula.rb:2297:in `block in system': Failed executing: cmake --build build (BuildError)
9: from /usr/local/Homebrew/Library/Homebrew/brew.rb:143:in `<main>'
8: from /usr/local/Homebrew/Library/Homebrew/brew.rb:155:in `rescue in <main>'
7: from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:539:in `dump'
6: from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:485:in `issues'
5: from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:489:in `fetch_issues'
4: from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:61:in `issues_for_formula'
3: from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:30:in `search_issues'
2: from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:160:in `search'
1: from /usr/local/Homebrew/Library/Homebrew/utils/github/api.rb:234:in `open_rest'
/usr/local/Homebrew/Library/Homebrew/utils/github/api.rb:304:in `raise_error': Validation Failed: [{"message"=>"The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.", "resource"=>"Search", "field"=>"q", "code"=>"invalid"}] (GitHub::API::ValidationFailedError)
brew update && "$(brew --repo kde-mac/kde)/tools/do-caveats.sh"
Already up-to-date.
Already up-to-date.
Bootstrap failed: 5: Input/output error
Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/maikol/Library/LaunchAgents/org.freedesktop.dbus-session.plist` exited with 5.
Caveats setup success
brew gist-logs
brew gist-logs kde-mac/kde/kf5-kxmlgui
https://gist.github.com/bc2715fa4a478de0b192d2c507dfcb5a
brew config
HOMEBREW_VERSION: 3.3.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: 9daf5e2d28396c7a4379605e89e029d9fccb41e6
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 30e562cdb7558516cde0f71605ed3148474d4960
Core tap last commit: 36 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.bdQRRieABm/org.xquartz:0
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit icelake
Clang: 13.0.0 build 1300
Git: 2.33.1 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.6-x86_64
CLT: 13.0.0.0.1.1630607135
Xcode: N/A
XQuartz: 2.8.1 => /opt/X11
brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libtcl8.6.dylib
/usr/local/lib/libtk8.6.dylib
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected header files:
/usr/local/include/fakemysql.h
/usr/local/include/fakepq.h
/usr/local/include/fakesql.h
/usr/local/include/itcl.h
/usr/local/include/itcl2TclOO.h
/usr/local/include/itclDecls.h
/usr/local/include/itclInt.h
/usr/local/include/itclIntDecls.h
/usr/local/include/itclMigrate2TclCore.h
/usr/local/include/itclTclIntStubsFcn.h
/usr/local/include/mysqlStubs.h
/usr/local/include/odbcStubs.h
/usr/local/include/pqStubs.h
/usr/local/include/tcl.h
/usr/local/include/tclDecls.h
/usr/local/include/tclOO.h
/usr/local/include/tclOODecls.h
/usr/local/include/tclPlatDecls.h
/usr/local/include/tclThread.h
/usr/local/include/tclTomMath.h
/usr/local/include/tclTomMathDecls.h
/usr/local/include/tdbc.h
/usr/local/include/tdbcDecls.h
/usr/local/include/tdbcInt.h
/usr/local/include/tk.h
/usr/local/include/tkDecls.h
/usr/local/include/tkPlatDecls.h
Warning: Unbrewed '.pc' files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected '.pc' files:
/usr/local/lib/pkgconfig/tcl.pc
/usr/local/lib/pkgconfig/tk.pc
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libtclstub8.6.a
/usr/local/lib/libtkstub8.6.a
Edited by Yurii Kolesnykov