Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] dev-util/cmake-3.14.6 fails to emerge on ARM
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
Leviathan649
n00b
n00b


Joined: 21 Sep 2019
Posts: 4
Location: Aachen, Germany

PostPosted: Sat Sep 21, 2019 12:16 pm    Post subject: [SOLVED] dev-util/cmake-3.14.6 fails to emerge on ARM Reply with quote

On two different Raspberry Pi systems, cmake fails to emerge. The error message on the first system is

Code:
Scanning dependencies of target CMakeLib
make[2]: Leaving directory '/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build'
make -f Source/CMakeFiles/CMakeLib.dir/build.make Source/CMakeFiles/CMakeLib.dir/build
make[2]: Entering directory '/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build'
[  8%] Building CXX object Source/CMakeFiles/CMakeLib.dir/LexerParser/cmCommandArgumentLexer.cxx.o
cd /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Source && /usr/bin/armv7a-unknown-linux-gnueabihf-g++ -DCMAKE_BUILD_WITH_CMAKE -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Utilities -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Utilities -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Source -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/LexerParser -isystem /usr/local/include -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Utilities/cmcompress -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/CTest -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/CPack   -DNDEBUG -O2 -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard   -std=gnu++1z -o CMakeFiles/CMakeLib.dir/LexerParser/cmCommandArgumentLexer.cxx.o -c /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/LexerParser/cmCommandArgumentLexer.cxx
[  8%] Building CXX object Source/CMakeFiles/CMakeLib.dir/LexerParser/cmCommandArgumentParser.cxx.o
cd /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Source && /usr/bin/armv7a-unknown-linux-gnueabihf-g++ -DCMAKE_BUILD_WITH_CMAKE -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Utilities -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Utilities -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Source -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/LexerParser -isystem /usr/local/include -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Utilities/cmcompress -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/CTest -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/CPack   -DNDEBUG -O2 -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard   -std=gnu++1z -o CMakeFiles/CMakeLib.dir/LexerParser/cmCommandArgumentParser.cxx.o -c /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/LexerParser/cmCommandArgumentParser.cxx
[  8%] Building CXX object Source/CMakeFiles/CMakeLib.dir/LexerParser/cmDependsJavaLexer.cxx.o
cd /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Source && /usr/bin/armv7a-unknown-linux-gnueabihf-g++ -DCMAKE_BUILD_WITH_CMAKE -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Utilities -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Utilities -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Source -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/LexerParser -isystem /usr/local/include -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Utilities/cmcompress -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/CTest -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/CPack   -DNDEBUG -O2 -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard   -std=gnu++1z -o CMakeFiles/CMakeLib.dir/LexerParser/cmDependsJavaLexer.cxx.o -c /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/LexerParser/cmDependsJavaLexer.cxx
In file included from /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/ext/string_conversions.h:41,
                 from /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/bits/basic_string.h:6400,
                 from /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/string:52,
                 from /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/cmCommandArgumentParserHelper.h:8,
                 from cmCommandArgumentParser.y:36:
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
               ^~~~~~~~~~
compilation terminated.
make[2]: *** [Source/CMakeFiles/CMakeLib.dir/build.make:87: Source/CMakeFiles/CMakeLib.dir/LexerParser/cmCommandArgumentParser.cxx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/ext/string_conversions.h:41,
                 from /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/bits/basic_string.h:6400,
                 from /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/string:52,
                 from /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/cmCommandArgumentParserHelper.h:8,
                 from /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/LexerParser/cmCommandArgumentLexer.cxx:669:
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
               ^~~~~~~~~~
compilation terminated.
make[2]: *** [Source/CMakeFiles/CMakeLib.dir/build.make:63: Source/CMakeFiles/CMakeLib.dir/LexerParser/cmCommandArgumentLexer.cxx.o] Error 1
In file included from /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/ext/string_conversions.h:41,
                 from /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/bits/basic_string.h:6400,
                 from /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/string:52,
                 from /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/bits/locale_classes.h:40,
                 from /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/bits/ios_base.h:41,
                 from /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/ios:42,
                 from /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/ostream:38,
                 from /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/iostream:39,
                 from /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/LexerParser/cmDependsJavaLexer.cxx:865:
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/g++-v8/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
               ^~~~~~~~~~
compilation terminated.
make[2]: *** [Source/CMakeFiles/CMakeLib.dir/build.make:111: Source/CMakeFiles/CMakeLib.dir/LexerParser/cmDependsJavaLexer.cxx.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build'
make[1]: *** [CMakeFiles/Makefile2:639: Source/CMakeFiles/CMakeLib.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build'
make: *** [Makefile:163: all] Error 2
 * ERROR: dev-util/cmake-3.14.6::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-util/cmake-3.14.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/cmake-3.14.6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-util/cmake-3.14.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/cmake-3.14.6/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build'
 * S: '/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6'


emerge --info yields:
Code:
~ # emerge --info cmake
Portage 2.3.69 (python 3.6.5-final-0, default/linux/arm/17.0/armv7a, gcc-8.3.0, glibc-2.29-r2, 4.19.57-v7+ armv7l)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.19.57-v7+-armv7l-ARMv7_Processor_rev_4_-v7l-with-gentoo-2.6
KiB Mem:      944244 total,     21696 free
KiB Swap:    2097148 total,   2008828 free
Timestamp of repository gentoo: Sat, 21 Sep 2019 07:00:01 +0000
Head commit of repository gentoo: 767ec247dd0995f870e71a1429c8fab04428ff66
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="@FREE"
CBUILD="armv7a-unknown-linux-gnueabihf"
CFLAGS="-O2 -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard"
CHOST="armv7a-unknown-linux-gnueabihf"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.netcologne.de/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://91.121.188.201/gentoo-distfiles/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl apache2 arm armv5te armv6 armv6t2 authlib berkdb bzip2 cgi cli crypt curl cxx dri fastcgi fcgi fortran ftp gdbm iconv idn imap intl ipv6 libwww maildir mbox mysql mysqli ncurses nls nptl openmp openssl pam pcre pdo php pop postfix python python3 readline samba sasl seccomp sftp smbclient split-usr ssl tcpd unicode usb winbind xattr xml zlib zsh-completion" ADA_TARGET="gnat_2018" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-util/cmake-3.9.6::gentoo was built with the following:
USE="ncurses -doc -emacs -qt5 -server -system-jsoncpp -test"
CHOST="armv7a-hardfloat-linux-gnueabi"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"


emerge -pv:
Code:
~ # emerge -pv cmake

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] dev-util/cmake-3.14.6::gentoo [3.9.6::gentoo] USE="ncurses -doc -emacs -qt5 -system-jsoncpp -test (-server%)" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB


On the second system, the error ist quite the same:
Code:
Scanning dependencies of target CMakeLib
make[2]: Leaving directory '/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build'
make -f Source/CMakeFiles/CMakeLib.dir/build.make Source/CMakeFiles/CMakeLib.dir/build
make[2]: Entering directory '/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build'
[  8%] Building CXX object Source/CMakeFiles/CMakeLib.dir/LexerParser/cmCommandArgumentLexer.cxx.o
cd /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Source && /usr/bin/armv6j-unknown-linux-gnueabihf-g++ -DCMAKE_BUILD_WITH_CMAKE -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Utilities -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Utilities -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Source -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/LexerParser -isystem /usr/local/include -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Utilities/cmcompress -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/CTest -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/CPack   -DNDEBUG -O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard   -std=gnu++1z -o CMakeFiles/CMakeLib.dir/LexerParser/cmCommandArgumentLexer.cxx.o -c /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/LexerParser/cmCommandArgumentLexer.cxx
In file included from /usr/lib/gcc/armv6j-unknown-linux-gnueabihf/8.3.0/include/g++-v8/ext/string_conversions.h:41,
                 from /usr/lib/gcc/armv6j-unknown-linux-gnueabihf/8.3.0/include/g++-v8/bits/basic_string.h:6400,
                 from /usr/lib/gcc/armv6j-unknown-linux-gnueabihf/8.3.0/include/g++-v8/string:52,
                 from /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/cmCommandArgumentParserHelper.h:8,
                 from /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/LexerParser/cmCommandArgumentLexer.cxx:669:
/usr/lib/gcc/armv6j-unknown-linux-gnueabihf/8.3.0/include/g++-v8/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
               ^~~~~~~~~~
compilation terminated.
make[2]: *** [Source/CMakeFiles/CMakeLib.dir/build.make:63: Source/CMakeFiles/CMakeLib.dir/LexerParser/cmCommandArgumentLexer.cxx.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build'
make[1]: *** [CMakeFiles/Makefile2:639: Source/CMakeFiles/CMakeLib.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build'
make: *** [Makefile:163: all] Error 2
 * ERROR: dev-util/cmake-3.14.6::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-util/cmake-3.14.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/cmake-3.14.6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-util/cmake-3.14.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/cmake-3.14.6/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build'
 * S: '/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6'


Code:
~ # emerge --info cmake
Portage 2.3.69 (python 3.6.5-final-0, default/linux/arm/17.0/armv4, gcc-8.3.0, glibc-2.29-r2, 4.19.57+ armv6l)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.19.57+-armv6l-ARMv6-compatible_processor_rev_7_-v6l-with-gentoo-2.6
KiB Mem:      443128 total,     95080 free
KiB Swap:    1048572 total,   1038332 free
Timestamp of repository gentoo: Sat, 21 Sep 2019 07:00:01 +0000
Head commit of repository gentoo: 767ec247dd0995f870e71a1429c8fab04428ff66
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.3 armv6j-unknown-linux-gnueabihf [disabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://syncserver/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="@FREE"
CBUILD="armv6j-unknown-linux-gnueabihf"
CFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
CHOST="armv6j-unknown-linux-gnueabihf"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=armv4"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv4"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.netcologne.de/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://91.121.188.201/gentoo-distfiles/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl apache2 arm berkdb bzip2 cli crypt curl cxx dri fastcgi fcgi fortran ftp gdbm iconv idn imap intl ipv6 libwww logrotate maildir mysql mysqli ncurses nls nptl openmp openssl pam pcre pdo php pop postfix python python3 readline samba sasl seccomp sftp smbclient split-usr ssl tcpd unicode usb winbind xattr xml zlib zsh-completion" ADA_TARGET="gnat_2018" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-util/cmake-3.9.6::gentoo was built with the following:
USE="ncurses -doc -emacs -qt5 -server -system-jsoncpp -test"
CHOST="armv6j-hardfloat-linux-gnueabi"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"


Code:
emerge -pv cmake

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] dev-util/cmake-3.14.6::gentoo [3.9.6::gentoo] USE="ncurses -doc -emacs -qt5 -system-jsoncpp -test (-server%)" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB


So it does not find the stdlib.h on both systems. But the file ist present in the same dir as the cstdlib header file that includes the stdlib.h and looks ok as far as I can see.

I already tried to reemerge system (emerge -e @system), that succeded, but it did not help with the cmake issue. I'm quite sure there are packages in @system that require the stdlib.h too, because it is a quite common C header file. dev-util/cmake-3.14.6 also emerges successful on some AMD64-boxes.

I read somewhere on the internet that the issue may hav to do something with pre-compiled headers, but I don't know how to disable pre-compiled headers for cmake since the ebuild does not utilise the pch USE-Flag.


Last edited by Leviathan649 on Tue Sep 24, 2019 7:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Sat Sep 21, 2019 12:37 pm    Post subject: Reply with quote

Hi Leviathan649,

welcome to the Gentoo forums!

Could it be an out-of-memory problem? See: https://forums.gentoo.org/viewtopic-t-1059336.html

Mike
Back to top
View user's profile Send private message
Leviathan649
n00b
n00b


Joined: 21 Sep 2019
Posts: 4
Location: Aachen, Germany

PostPosted: Sat Sep 21, 2019 3:04 pm    Post subject: Reply with quote

First, thanks for the help.

It does not seem to be a memory problem. I retried emerging on the first system (a Raspberri Pi 3) with MAKEOPTS="-j1" and it failed with the same error. I monitored the memory wotkload during the merge with top and there was only about half of the RAM and nearly nothing of the SWAP in use, about 500MB RAM free and about 2000MB SWAP free. Furthermore the stdlib.h not found error occured in the same source file as last time, the cmake-3.14.6/Source/LexerParser/cmCommandArgumentLexer.cxx. In case of an out-of-memory-problem I would expect the error to vary a bit over the source files, depending on the memory workload caused by other programs running on the system.
Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 653
Location: EU

PostPosted: Mon Sep 23, 2019 5:01 am    Post subject: Reply with quote

Sounds similar to this bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129
about gcc cmake and the isystem option

Why do you have -isystem /usr/local/include in your flags?
_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Back to top
View user's profile Send private message
Leviathan649
n00b
n00b


Joined: 21 Sep 2019
Posts: 4
Location: Aachen, Germany

PostPosted: Mon Sep 23, 2019 10:24 pm    Post subject: Reply with quote

I didn't make to find out where the -isystem /usr/local/include in the gcc flags comes from. I tentatively took it out of the makefiles generated by cmake in /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/ and tried to build (make) and it worked.

So the question is where the -isystem /usr/local/include stems from. For example, the cmake-generated file
/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Source/CMakeFiles/cmake.dir/flags.make
reads
Code:
 CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.9

# compile CXX with /usr/bin/armv7a-unknown-linux-gnueabihf-g++
CXX_FLAGS = -O2 -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard   -std=gnu++1z

CXX_DEFINES = -DCMAKE_BUILD_WITH_CMAKE

CXX_INCLUDES = -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Utilities -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Utilities -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Source -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/LexerParser -isystem /usr/local/include -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Utilities/cmcompress -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/CTest -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/CPack


As one can see in the file it is generated by the currently installed cmake 3.9. I can tomorrow have a try to get cmake 3.14 to build and install by manipulating the flags.make-files as described above and then emerge cmake with cmake 3.14 already installed. That might somehow solve my problem.

But there must be a reason why the -isystem /usr/local/include is in the cmake-generated flags.make files.
Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 653
Location: EU

PostPosted: Tue Sep 24, 2019 5:58 pm    Post subject: Reply with quote

It's a bug in gcc that was fixed in the latest release, even if the bug report says WONT_FIX they allegedly fixed it anyway, or at least it should be fixed;-)
_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Back to top
View user's profile Send private message
Leviathan649
n00b
n00b


Joined: 21 Sep 2019
Posts: 4
Location: Aachen, Germany

PostPosted: Tue Sep 24, 2019 7:09 pm    Post subject: Reply with quote

Gccs problem with -isystem is only one of two main components of the problem. The other one is that the cmake (3.9) used to build cmake (3.14) decides that the -isystem /usr/local/include is necessary at all.

Because I didn't expect the gcc bug to be fixed (it is marked as WONT_FIX as erm67 already said) I tried to work around the other problem and it worked: I tried to emerge cmake as usual:
Code:
emerge -a cmake

It stopped with the error described above, but the temporary files from the merge are still present under /var/tmp/portage/dev-util/cmake-3.14.6/ Then I took out the -isystem /usr/ocal/include from the make files under /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/ that contained it, for example I changed the file /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Source/CMakeFiles/cmake.dir/flags.make (compare with my last post) to
Code:
CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.9

# compile CXX with /usr/bin/armv7a-unknown-linux-gnueabihf-g++
CXX_FLAGS = -O2 -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard   -std=gnu++1z

CXX_DEFINES = -DCMAKE_BUILD_WITH_CMAKE

CXX_INCLUDES = -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Utilities -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Utilities -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Source -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/LexerParser -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/Utilities/cmcompress -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/CTest -I/var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6/Source/CPack

(yes it says "do not edit", but without editing it won't work neither).

Then I started make:
Code:
cd /var/tmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/
make

That worked after fixing enough of the flags.make files. So I had a compiled and linked cmake in /var/tmp/portage/dev-util/cmake-3.14.6/. With
Code:
FEATURES=keepwork emerge --resume

it gets installed by emerge. After that, a second
Code:
emerge -a cmake

works, probably because now cmake is build wih cmake-3.14 instead of cmake-3.9.

After that I thought of a second solution: cmake should be able to build without having a cmake already installed. So I did an
Code:
emerge -a --unmerge cmake

to uninstall the old cmake-3.9 and then I did
Code:
emerge -a cmake

That's not yet finished because it is running on a quite slow Raspberry Pi 2B system, but it is emerging for about two hours now and did not fail until now, so I expect it to success.

Thanks for the help, especially for the hint that -isystem /usr/local/include/ is problematic and asking the question why it is there.

edit: The emerge after uninstall finished successfully too.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum