The package failed due to implicitly calling std namespace objects. Not sure, if this is gcc-11 related. AILED: models/CMakeFiles/kukaLWRtestDHnew.dir/kukaLWRtestDHnew.cpp.o /usr/bin/x86_64-pc-linux-gnu-g++ -I/usr/include/eigen3 -I/var/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/oroc os_kinematics_dynamics-1.5.1/orocos_kdl/src -I/var/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/orocos_kdl-1.5.1 _build/src -O2 -pipe -march=bdver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check -I/usr/incl ude/eigen3 -MD -MT models/CMakeFiles/kukaLWRtestDHnew.dir/kukaLWRtestDHnew.cpp.o -MF models/CMakeFiles/kukaLWR testDHnew.dir/kukaLWRtestDHnew.cpp.o.d -o models/CMakeFiles/kukaLWRtestDHnew.dir/kukaLWRtestDHnew.cpp.o -c /va r/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/orocos_kinematics_dynamics-1.5.1/orocos_kdl/models/kukaLWRtestDHn ew.cpp /var/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/orocos_kinematics_dynamics-1.5.1/orocos_kdl/models/kukaLWRtest DHnew.cpp: In function ‘int getInputs(KDL::JntArray&, KDL::JntArray&, KDL::JntArray&, int&)’: /var/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/orocos_kinematics_dynamics-1.5.1/orocos_kdl/models/kukaLWRtest DHnew.cpp:112:3: error: ‘ifstream’ was not declared in this scope; did you mean ‘std::ifstream’? 112 | ifstream inQdotfile("interpreteerbaar/qdot", std::ios::in); | ^~~~~~~~ | std::ifstream In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/bits/localefwd.h:41, from /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/string:43, from /var/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/orocos_kinematics_dynamics-1.5.1/orocos_ kdl/src/joint.hpp:26, from /var/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/orocos_kinematics_dynamics-1.5.1/orocos_kdl/src/segment.hpp:28, from /var/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/orocos_kinematics_dynamics-1.5.1/orocos_kdl/src/chain.hpp:25, from /var/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/orocos_kinematics_dynamics-1.5.1/orocos_kdl/models/kukaLWRtestDHnew.cpp:1: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include/g++-v11/iosfwd:162:41: note: ‘std::ifstream’ declared here 162 | typedef basic_ifstream<char> ifstream; | ^~~~~~~~ /var/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/orocos_kinematics_dynamics-1.5.1/orocos_kdl/models/kukaLWRtestDHnew.cpp:114:8: error: ‘inQdotfile’ was not declared in this scope; did you mean ‘inQfile’? emerge -pqv orocos_kdl [ebuild U ] sci-libs/orocos_kdl-1.5.1 [1.5.0] USE="doc examples models -test" Reproducible: Always Portage 3.0.28 (python 3.9.7-final-0, default/linux/amd64/17.1/systemd, gcc-11.2.0, glibc-2.33-r7, 5.14.16-gentoo-0 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.14.16-gentoo-0-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-glibc2.33 KiB Mem: 16290284 total, 321884 free KiB Swap: 16777208 total, 16677412 free Head commit of repository guru: a9d01bf7144c8ae5f9076b45828c1114c68f5f32 Timestamp of repository sage-on-gentoo: Sun, 31 Oct 2021 19:53:14 +0000 Head commit of repository sage-on-gentoo: 95ed876a5f6e7a35f612dfa6dab1aedcdab27917 Timestamp of repository torbrowser: Sun, 31 Oct 2021 19:53:16 +0000 Head commit of repository torbrowser: 4b7cb072fb873a04cc73ecdfaf586ddc019d6826 Head commit of repository cg: 7508be42e9fa6883ca5dbb7fbab4b274c91c1c42 Timestamp of repository gamerlay: Sun, 31 Oct 2021 19:53:08 +0000 Head commit of repository gamerlay: f3bc61c97d65a505ee539ae5721b50ce97356df8 Timestamp of repository steam-overlay: Sun, 31 Oct 2021 19:53:14 +0000 Head commit of repository steam-overlay: 89b2827ea35ef220c165a9adfb5b5187c2f3da9d Head commit of repository qt: 36b75f925c082a01ab9c0d20226bd2c73bcc8a16 Head commit of repository science: a67a1c84befd9b4a6653b197d1f5686e223b7cbb Head commit of repository enlightenment-live: d01b7983447ad1ae544263139d5de54fbdd934ad Timestamp of repository fem-overlay: Sun, 31 Oct 2021 19:53:27 +0000 Head commit of repository fem-overlay: 73f526a90546b08ed587635a70465e60981e67ff Head commit of repository gentoo-git: 505c27b632252f5e9bc8463d0e13263e061a43f7 Head commit of repository waebbl: 259444108ebc714dc4fc6604dcea77cbc879660f Timestamp of repository gentoo: Thu, 04 Nov 2021 05:51:37 +0000 Head commit of repository gentoo: b636463301e9175e60195114381aaca95ae16f04 sh bash 5.1_p8 ld GNU ld (Gentoo 2.37_p1 p0) 2.37 app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r5::gentoo dev-lang/python: 2.7.18_p13::gentoo, 3.9.7_p1::gentoo, 3.10.0_p1::gentoo dev-lang/rust-bin: 1.56.1::gentoo dev-util/cmake: 3.21.4::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.37_p1::gentoo sys-devel/gcc: 10.3.0-r2::gentoo, 11.2.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.14::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r7::gentoo Repositories: guru location: /mnt/data/code/github/portage-overlays/guru sync-type: git sync-uri: git@git.gentoo.org:repo/proj/guru.git masters: gentoo priority: -1000 sage-on-gentoo location: /mnt/data/code/github/portage-overlays/sage-on-gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/sage-on-gentoo.git masters: gentoo torbrowser location: /var/db/repos/torbrowser sync-type: git sync-uri: https://github.com/gentoo-mirror/torbrowser.git masters: gentoo cg location: /mnt/data/code/github/portage-overlays/cg sync-type: git sync-uri: https://github.com/waebbl/cg.git masters: gentoo priority: 30 gamerlay location: /var/db/repos/gamerlay sync-type: git sync-uri: https://github.com/gentoo-mirror/gamerlay.git masters: gentoo priority: 30 steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/steam-overlay.git masters: gentoo priority: 50 qt location: /mnt/data/code/github/portage-overlays/qt sync-type: git sync-uri: https://github.com/gentoo-mirror/qt.git masters: gentoo priority: 60 science location: /mnt/data/code/github/portage-overlays/sci sync-type: git sync-uri: git://github.com/waebbl/sci.git masters: gentoo priority: 60 enlightenment-live location: /mnt/data/code/github/portage-overlays/enlightenment-live sync-type: git sync-uri: git://github.com/waebbl/enlightenment-live.git masters: gentoo priority: 61 fem-overlay location: /var/db/repos/fem-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/fem-overlay.git masters: gentoo priority: 70 gentoo-git location: /mnt/data/code/github/portage-overlays/gentoo-git sync-type: git sync-uri: https://github.com/waebbl/gentoo.git masters: gentoo priority: 99 waebbl location: /mnt/data/code/github/portage-overlays/waebbl sync-type: git sync-uri: https://github.com/waebbl/waebbl-gentoo.git masters: gentoo priority: 99 gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: 100 Installed sets: @3D, @XWindow, @adm-tools, @android, @base, @benchmarking, @bgeedeps, @desktop, @dev-tools, @doc-tools, @docs, @emacs, @fonts, @fun, @games, @infinity, @kde, @keep, @kernel-dep, @langs, @lxqt-live, @media, @my_latex, @netz, @nvidia, @office, @python, @qt, @sci, @sec, @server, @steam, @themes, @vcs, @virt, @xfce, @zip ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=bdver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=bdver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--complete-graph --keep-going --fail-clean --buildpkg --usepkg --buildpkg-exclude='x11-drivers/nvidia-drivers virtual/*' --autounmask=n --binpkg-respect-use=y --binpkg-changed-deps=y" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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=bdver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildsyspkg cgroup clean-logs config-protect-if-modified distlocks downgrade-backup ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-elog split-log strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=bdver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check" GENTOO_MIRRORS="https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ https://mirror.netcologne.de/gentoo/ https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/" INSTALL_MASK="/usr/share/locale -/usr/share/locale/de* -/usr/share/locale/en*" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" MAKEOPTS="-j2" PKGDIR="/mnt/data/cache/binpkgs/desktop" 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="X acl alsa amd64 branding bzip2 cli crypt dbus dri egl fortran gdbm gif gnome iconv ipv6 jpeg jpeg2k kde libglvnd libinput libtirpc multilib ncurses networkmanager nls nptl offensive ogg opengl openmp pam pcre pic png policykit postgres pulseaudio python qt5 readline seccomp sound split-usr ssl svg systemd tga theora threads tiff udev unicode vorbis wayland wifi x264 x265 xattr xpm zlib" ABI_X86="64" ADA_TARGET="gnat_2019" 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" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c fma3 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc multiboot qemu" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="de de-DE en en-GB en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LLVM_TARGETS="NVPTX" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access addition auth_basic auth_pam autoindex browser cache_purge charset dav dav_ext echo empty_gif fancyindex fastcgi flv geo geoip2 gunzip gzip headers_more image_filter javascript limit_conn limit_req map memc memcached metrics mp4 naxsi proxy push_stream realip referer rewrite scgi secure_link slowfs_cache split_clients ssi sticky stub_status sub upload_progress userid uwsgi xslt" NGINX_MODULES_STREAM="access geo geoip2 javascript limit_conn map return split_clients" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 sparc sparc64 x86_64" QEMU_USER_TARGETS="aarch64 aarch64_be arm armeb i386 sparc sparc32plus sparc64 x86_64" RUBY_TARGETS="ruby26 ruby27" STEAMGAMES="witcher2" USERLAND="GNU" VIDEO_CARDS="dummy fbdev nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS ================================================================= Package Settings ================================================================= sci-libs/orocos_kdl-1.5.0::gentoo was built with the following: USE="doc examples models -test" ABI_X86="(64)" FEATURES="usersync userfetch strict-keepdir unmerge-orphans binpkg-multi-instance userpriv clean-logs parallel-fetch sfperms assume-digests buildpkg buildsyspkg usersandbox downgrade-backup fail-clean merge-sync split-log sandbox unmerge-logs ebuild-locks qa-unresolved-soname-deps binpkg-dostrip fixlafiles strict xattr unknown-features-warn binpkg-docompress news binpkg-logs multilib-strict config-protect-if-modified sign distlocks split-elog cgroup ipc-sandbox preserve-libs network-sandbox protect-owned pid-sandbox"
Created attachment 748422 [details] orocos_kdl-1.5.1:20211104-065535.log build log
Patch proposed upstream: https://github.com/orocos/orocos_kinematics_dynamics/pull/372
Created attachment 748665 [details, diff] orocos_kdl-1.5.1-fix-namespace-issues.patch @Tee thanks for the fix, which solves this issue, just to open another one, related to USE=examples. FAILED: examples/CMakeFiles/chainiksolverpos_lma_demo.dir/chainiksolverpos_lma_demo.cpp.o /usr/bin/x86_64-pc-linux-gnu-g++ -I/usr/include/eigen3 -I/var/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/orocos_kinematics_dynamics-1.5.1/orocos_kdl/src -I/var/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/orocos_kinematics_dynamics-1.5.1/orocos_kdl/models -I/var/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/orocos_kdl-1.5.1_build/src -O2 -pipe -march=bdver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check -MD -MT examples/CMakeFiles/chainiksolverpos_lma_demo.dir/chainiksolverpos_lma_demo.cpp.o -MF examples/CMakeFiles/chainiksolverpos_lma_demo.dir/chainiksolverpos_lma_demo.cpp.o.d -o examples/CMakeFiles/chainiksolverpos_lma_demo.dir/chainiksolverpos_lma_demo.cpp.o -c /var/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/orocos_kinematics_dynamics-1.5.1/orocos_kdl/examples/chainiksolverpos_lma_demo.cpp In file included from /usr/include/boost/config/header_deprecated.hpp:18, from /usr/include/boost/timer.hpp:20, from /var/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/orocos_kinematics_dynamics-1.5.1/orocos_kdl/examples/chainiksolverpos_lma_demo.cpp:59: /usr/include/boost/timer.hpp:21:1: note: ‘#pragma message: This header is deprecated. Use the facilities in <boost/timer/timer.hpp> instead.’ 21 | BOOST_HEADER_DEPRECATED( "the facilities in <boost/timer/timer.hpp>" ) | ^~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/orocos_kinematics_dynamics-1.5.1/orocos_kdl/examples/chainiksolverpos_lma_demo.cpp: In function ‘void test_inverseposkin(KDL::Chain&)’: /var/tmp/portage/sci-libs/orocos_kdl-1.5.1/work/orocos_kinematics_dynamics-1.5.1/orocos_kdl/examples/chainiksolverpos_lma_demo.cpp:93:19: error: ‘PI’ was not declared in this scope; did you mean ‘KDL::PI’? 93 | q.data *= PI; | ^~ | KDL::PI The attached patch needs to be applied if both USE="examples models" are set, as in my case.
Same problem here: /orocos_kdl/models/kukaLWRtestDHnew.cpp:112:3: error: ‘ifstream’ was not declared in this scope; did you mean ‘std::ifstream’?