Solved CMake 3.21.0. Fatal error ext/stdio_filebuf.h file not found

I'm stuck with CMake building. It complains with
Code:
c++ -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -D__BSD_VISIBLE -isystem /usr/local/include        -DCMAKE_BOOTSTRAP    -DCMake_HAVE_CXX_MAKE_UNIQUE=1   -I/usr/ports/devel/cmake/work/cmake-3.21.0/Bootstrap.cmk   -I/usr/ports/devel/cmake/work/cmake-3.21.0/Source   -I/usr/ports/devel/cmake/work/cmake-3.21.0/Source/LexerParser   -I/usr/ports/devel/cmake/work/cmake-3.21.0/Utilities/std   -I/usr/ports/devel/cmake/work/cmake-3.21.0/Utilities  -c /usr/ports/devel/cmake/work/cmake-3.21.0/Source/cmake.cxx -o cmake.o
c++: error: unable to execute command: Killed
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 10.0.0 (git@github.com:llvm/llvm-project.git llvmorg-10.0.0-0-gd32170dbd5b)
Target: x86_64-unknown-freebsd11.4
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.
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/cmake-85a50e.cpp
c++: note: diagnostic msg: /tmp/cmake-85a50e.sh
c++: note: diagnostic msg:

********************
*** [cmake.o] Error code 254

make[2]: stopped in /usr/ports/devel/cmake/work/cmake-3.21.0/Bootstrap.cmk
1 error

make[2]: stopped in /usr/ports/devel/cmake/work/cmake-3.21.0/Bootstrap.cmk
---------------------------------------------
Error when bootstrapping CMake:
Problem while running make
---------------------------------------------
Log of errors: /usr/ports/devel/cmake/work/cmake-3.21.0/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
===>  Script "configure" failed unexpectedly.
Please report the problem to kde@FreeBSD.org [maintainer] and attach the
"/usr/ports/devel/cmake/work/cmake-3.21.0/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/cmake
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/cmake

===>>> make build failed for devel/cmake
===>>> Aborting update

===>>> Update for devel/cmake failed
===>>> Aborting update

===>>> Update for graphics/jpeg-turbo failed
===>>> Aborting update

===>>> Update for lang/racket failed
===>>> Aborting update

===>>> Update for editors/vim failed
===>>> Aborting update

===>>> There are messages from installed ports to display,
       but first take a moment to review the error messages
       above.  Then press Enter when ready to proceed.
My system is
Code:
charlz_klug@v158841:~ % uname -a
FreeBSD v158841.kvm.test-hf.su 11.4-RELEASE FreeBSD 11.4-RELEASE #0 r362094: Fri Jun 12 18:27:15 UTC 2020     root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
/usr/ports/devel/cmake/work/cmake-3.21.0/Bootstrap.cmk/cmake_bootstrap.log is here.
/tmp/cmake-85a50e.cpp is here.
/tmp/cmake-85a50e.sh is here.
I would appreciate any ideas. Thanks!

P.S.:
Code:
charlz_klug@v158841:~ % /usr/local/sbin/pkg-static info -g -Ea
autoconf-2.69_3                Automatically configure source code on many Un*x platforms
autoconf-wrapper-20131203      Wrapper script for GNU autoconf
automake-1.16.3                GNU Standards-compliant Makefile generator
ca_root_nss-3.69_1             Root certificate bundle from the Mozilla Project
cairo-1.17.4,3                 Vector graphics library with cross-device output support
curl-7.78.0                    Command line tool and library for transferring data with URLs
dialog4ports-0.1.6             Console Interface to configure ports
docbook-1.5                    Meta-port for the different versions of the DocBook DTD
docbook-sgml-4.5_1             DocBook SGML DTD
docbook-xml-5.0_3              DocBook XML DTD
docbook-xsl-1.79.1_1,1         XSL DocBook stylesheets
expat-2.4.1                    XML 1.0 parser written in C
flac-1.3.3_1                   Free lossless audio codec
fontconfig-2.13.94,1           XML-based font configuration API for X Windows
freetype2-2.10.4               Free and portable TrueType font rendering engine
gettext-runtime-0.21           GNU gettext runtime libraries and programs
gettext-tools-0.21             GNU gettext development and translation tools
glib-2.68.4,2                  Some useful routines of C programming (current stable version)
gmake-4.3_2                    GNU version of 'make' utility
gperf-3.1                      Generates perfect hash functions for sets of keywords
help2man-1.48.3                Automatically generating simple manual pages from program output
indexinfo-0.3.1                Utility to regenerate the GNU info page index
iso8879-1986_3                 Character entity sets from ISO 8879:1986 (SGML)
jsoncpp-1.9.4                  JSON reader and writer library for C++
libX11-1.7.2,1                 X11 library
libXau-1.0.9                   Authentication Protocol library for X11
libXdmcp-1.1.3                 X Display Manager Control Protocol library
libXext-1.3.4,1                X11 Extension library
libXrender-0.9.10_2            X Render extension library
libarchive-3.5.1,1             Library to create and read several streaming archive formats
libedit-3.1.20210216,1         Command line editor library
libevent-2.1.12                API for executing callback functions on events or timeouts
libffi-3.3_1                   Foreign Function Interface
libgcrypt-1.9.4                General purpose cryptographic library based on the code from GnuPG
libglvnd-1.3.3                 GL Vendor-Neutral Dispatch library
libgpg-error-1.42              Common error values for all GnuPG components
libiconv-1.16                  Character set conversion library
liblz4-1.9.3,1                 LZ4 compression library, lossless and very fast
libnghttp2-1.44.0              HTTP/2.0 C Library
libogg-1.3.5,4                 Ogg bitstream library
libpthread-stubs-0.4           Weak aliases for pthread functions
libssh2-1.9.0_3,3              Library implementing the SSH2 protocol
libtextstyle-0.21              Text styling library
libtool-2.4.6_1                Generic shared library support script
libuv-1.41.0                   Multi-platform support library with a focus on asynchronous I/O
libvorbis-1.3.7_2,3            Audio compression codec library
libxcb-1.14_1                  The X protocol C-language Binding (XCB) library
libxml2-2.9.12                 XML parser library for GNOME
libxslt-1.1.34_2               XML stylesheet transformation library
m4-1.4.19,1                    GNU M4
meson-0.58.1                   High performance build system
mpdecimal-2.5.1                C/C++ arbitrary precision decimal floating point libraries
ninja-1.10.2,2                 Small build system closest in spirit to Make
opus-1.3.1                     IETF audio codec
p5-Locale-gettext-1.07         Message handling functions
p5-Locale-libintl-1.32         Internationalization library for Perl
p5-Text-Unidecode-1.30         US-ASCII transliterations of Unicode text
p5-Unicode-EastAsianWidth-12.0 East Asian Width properties
pcre-8.44                      Perl Compatible Regular Expressions library
perl5-5.32.1_1                 Practical Extraction and Report Language
pixman-0.40.0_1                Low-level pixel manipulation library
pkg-1.17.1                     Package manager
pkgconf-1.7.4,1                Utility to help to configure compiler and linker flags
png-1.6.37_1                   Library for manipulating PNG images
portmaster-3.19_31             Manage your ports without external databases or languages
py38-Babel-2.9.1               Collection of tools for internationalizing Python applications
py38-Jinja2-2.11.2_1           Fast and easy to use stand-alone template engine
py38-alabaster-0.7.12          Modified Kr Sphinx theme
py38-certifi-2021.5.30         Mozilla SSL certificates
py38-cffi-1.14.6               Foreign Function Interface for Python calling C code
py38-chardet-4.0.0,1           Universal encoding detector for Python
py38-cryptography-2.9.2        Cryptographic recipes and primitives for Python developers
py38-cython-0.29.24            Compiler for Writing C Extensions for the Python Language
py38-docutils-0.17.1           Python Documentation Utilities
py38-idna-2.10                 Internationalized Domain Names in Applications (IDNA)
py38-imagesize-1.2.0           Get image size from png/jpeg/jpeg2000/gif file
py38-markupsafe-1.1.1_1        Implements XML/HTML/XHTML Markup safe string for Python
py38-openssl-19.1.0,1          Python interface to the OpenSSL library
py38-packaging-21.0            Core utilities for Python packages
py38-pycparser-2.20            C parser in Python
py38-pygments-2.7.2            Syntax highlighter written in Python
py38-pyparsing-2.4.7           General parsing module for Python
py38-pysocks-1.7.1             Python SOCKS module
py38-pystemmer-2.0.1           Snowball Stemming Algorithms for Information Retrieval
py38-pytz-2021.1,1             World Timezone Definitions for Python
py38-requests-2.25.1           HTTP library written in Python for human beings
py38-setuptools-57.0.0         Python packages installer
py38-six-1.16.0                Python 2 and 3 compatibility utilities
py38-snowballstemmer-2.1.0     Snowball stemming library collection for Python
py38-sphinx-3.5.2,1            Python documentation generator
py38-sphinxcontrib-applehelp-1.0.2 Extension which outputs Apple help books
py38-sphinxcontrib-devhelp-1.0.2 Sphinx extension which outputs Devhelp document
py38-sphinxcontrib-htmlhelp-1.0.3 Sphinx extension which renders HTML help files
py38-sphinxcontrib-jsmath-1.0.1 Sphinx extension which renders display math in HTML via JavaScript
py38-sphinxcontrib-qthelp-1.0.3 Sphinx extension which outputs QtHelp document
py38-sphinxcontrib-serializinghtml-1.1.4 Sphinx extension which outputs serialized HTML files (json and pickle)
py38-urllib3-1.26.6,1          HTTP library with thread-safe connection pooling, file post, and more
python38-3.8.11                Interpreted object-oriented programming language
readline-8.1.1                 Library for editing command lines as they are typed
rhash-1.4.2                    Utility and library for computing and checking of file hashes
sdocbook-xml-1.1_2,2           "Simplified" DocBook XML DTD
sqlite3-3.35.5_3,1             SQL database engine in a C library
sudo-1.9.7p2                   Allow others to run commands as root
tcl86-8.6.11_1                 Tool Command Language
texinfo-6.8,1                  Typeset documentation system with multiple format output
tmux-3.2a                      Terminal Multiplexer
utf8proc-2.6.1                 UTF-8 processing library
vim-console-8.2.3081           Improved version of the vi editor (console only)
xcb-proto-1.14.1               The X protocol C-language Binding (XCB) protocol
xmlcatmgr-2.2_2                SGML and XML catalog manager
xmlcharent-0.3_2               XML character entities
xorg-macros-1.19.3             X.Org development aclocal macros
xorgproto-2021.4               X Window System unified protocol definitions
xtrans-1.4.0                   Abstract network code for X
 
Code:
c++: error: unable to execute command: Killed
c++: error: clang frontend command failed due to signal (use -v to see invocation)
You need to figure out why that occurred (read logs).
 
I have purchased a virtual private server with 512 MB memory. Then I bought VPS with 2 GB of memory and everything builds successfully.
 
Back
Top