Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828872 - sys-devel/gcc: ICE when building dev-ros/rosserial_server-0.9.2
Summary: sys-devel/gcc: ICE when building dev-ros/rosserial_server-0.9.2
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 715388 785625 786282 788802 796938 823830 828776 828850 829451 830078 830704 (view as bug list)
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-12-10 21:28 UTC by Toralf Förster
Modified: 2023-01-24 20:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,14.62 KB, text/plain)
2021-12-10 21:28 UTC, Toralf Förster
Details
dev-ros:rosserial_server-0.9.2:20211210-211204.log (dev-ros:rosserial_server-0.9.2:20211210-211204.log,14.57 KB, text/plain)
2021-12-10 21:28 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,144.34 KB, text/plain)
2021-12-10 21:28 UTC, Toralf Förster
Details
environment (environment,126.87 KB, text/plain)
2021-12-10 21:28 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,42.93 KB, application/x-bzip)
2021-12-10 21:28 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.95 KB, application/x-bzip)
2021-12-10 21:28 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,30.83 KB, application/x-bzip)
2021-12-10 21:28 UTC, Toralf Förster
Details
tf_monitor.cpp.ii.bz2 (tf_monitor.cpp.ii.bz2,523.63 KB, application/x-bzip)
2021-12-16 10:39 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-12-10 21:28:24 UTC
In file included from /usr/include/ros/node_handle.h:32,
                 from /usr/include/ros/ros.h:45,
                 from /var/tmp/portage/dev-ros/rosserial_server-0.9.2/work/rosserial-0.9.2/rosserial_server/src/udp_socket_node.cpp:38:
/usr/include/ros/publisher.h: In member function 'void ros::Publisher::publish(const M&) const [with M = topic_tools::ShapeShifter]':
/usr/include/ros/publisher.h:100:12: internal compiler error: Segmentation fault
  100 |       void publish(const M& message) const
      |            ^~~~~~~
0x1789acf internal_error(char const*, ...)
	???:0

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20211209-163207

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.57.0 *
php cli:

  HEAD of ::gentoo
commit 4c566c674ed946587608b25d3db3aad269dfc434
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 10 20:21:55 2021 +0000

    2021-12-10 20:21:54 UTC

emerge -qpvO dev-ros/rosserial_server
[ebuild  N    ] dev-ros/rosserial_server-0.9.2  USE="-test" PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2021-12-10 21:28:25 UTC
Created attachment 758352 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-10 21:28:26 UTC
Created attachment 758353 [details]
dev-ros:rosserial_server-0.9.2:20211210-211204.log
Comment 3 Toralf Förster gentoo-dev 2021-12-10 21:28:28 UTC
Created attachment 758354 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-12-10 21:28:29 UTC
Created attachment 758355 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-12-10 21:28:30 UTC
Created attachment 758356 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-10 21:28:31 UTC
Created attachment 758357 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-12-10 21:28:32 UTC
Created attachment 758358 [details]
temp.tar.bz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-11 03:06:26 UTC
toralf, is this reproducible?

If so, we should follow https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-11 06:49:18 UTC
*** Bug 828850 has been marked as a duplicate of this bug. ***
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-11 07:16:18 UTC
*** Bug 828776 has been marked as a duplicate of this bug. ***
Comment 11 Toralf Förster gentoo-dev 2021-12-11 12:30:43 UTC
(In reply to Sam James from comment #8)
> toralf, is this reproducible?
>
yep
https://bugs.gentoo.org/buglist.cgi?quicksearch=internal%20compiler%20error&list_id=5994883
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-11 12:54:00 UTC
*** Bug 823830 has been marked as a duplicate of this bug. ***
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-11 12:54:32 UTC
*** Bug 796938 has been marked as a duplicate of this bug. ***
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-11 12:54:45 UTC
*** Bug 715388 has been marked as a duplicate of this bug. ***
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-11 12:54:56 UTC
*** Bug 785625 has been marked as a duplicate of this bug. ***
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-11 12:55:05 UTC
*** Bug 788802 has been marked as a duplicate of this bug. ***
Comment 17 Toralf Förster gentoo-dev 2021-12-15 14:47:59 UTC
(In reply to Sam James from comment #8)
> toralf, is this reproducible?
> 
> If so, we should follow https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide.

Hhm, seems not to be reproducible. I do have here the image 17-0-musl-hardened-j4-20211215-000030- with this issue:


during GIMPLE pass: strlen
In file included from /usr/include/pluginlib/class_loader.hpp:350,
                 from /var/tmp/portage/dev-ros/urdf-1.13.2-r2/work/urdf-1.13.2/urdf/src/model.cpp:48:
/usr/include/pluginlib/class_loader_imp.hpp: In member function 'int pluginlib::ClassLoader<T>::unloadLibraryForClass(const string&) [with T = urdf::URDFParser]':
/usr/include/pluginlib/class_loader_imp.hpp:819:5: internal compiler error: Segmentation fault
  819 | int ClassLoader<T>::unloadLibraryForClass(const std::string & lookup_name)
      |     ^~~~~~~~~~~~~~
0x172fc98 internal_error(char const*, ...)
	???:0



and now few minutes later it worked:-/
So maybe a -j4 problem ?
Comment 18 Toralf Förster gentoo-dev 2021-12-15 16:34:29 UTC
I found an image where it reliable gives the ICE - but I dunno how to complete the save-temps step.

W/o I get:

17-0-musl-hardened-j4-20211213-184654- /var/tmp/portage/dev-ros/tf-1.13.2-r4/work/tf-1.13.2_build # /usr/bin/x86_64-gentoo-linux-musl-g++ -DBOOST_ALL_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DROSCONSOLE_BACKEND_LOG4CXX -DROS_BUILD_SHARED_LIBS=1 -DROS_PACKAGE_NAME=\"tf\" -I/var/tmp/portage/dev-ros/tf-1.13.2-r4/work/tf-1.13.2_build/devel/include -I/var/tmp/portage/dev-ros/tf-1.13.2-r4/work/geometry-1.13.2/tf/include -I/usr/share/xmlrpcpp/cmake/../../../include/xmlrpcpp  -pipe -march=native -fno-diagnostics-color -O2 -std=c++14 -std=c++11 -MD -MT CMakeFiles/tf_monitor.dir/src/tf_monitor.cpp.o -MF CMakeFiles/tf_monitor.dir/src/tf_monitor.cpp.o.d -o CMakeFiles/tf_monitor.dir/src/tf_monitor.cpp.o -c /var/tmp/portage/dev-ros/tf-1.13.2-r4/work/geometry-1.13.2/tf/src/tf_monitor.cpp
In file included from /usr/include/boost/smart_ptr/detail/sp_thread_sleep.hpp:22,
                 from /usr/include/boost/smart_ptr/detail/yield_k.hpp:23,
                 from /usr/include/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp:14,
                 from /usr/include/boost/smart_ptr/detail/spinlock.hpp:42,
                 from /usr/include/boost/smart_ptr/detail/spinlock_pool.hpp:25,
                 from /usr/include/boost/smart_ptr/shared_ptr.hpp:29,
                 from /usr/include/boost/shared_ptr.hpp:17,
                 from /usr/include/boost/date_time/time_clock.hpp:17,
                 from /usr/include/boost/thread/thread_time.hpp:9,
                 from /usr/include/boost/thread/lock_types.hpp:18,
                 from /usr/include/boost/thread/pthread/mutex.hpp:16,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /var/tmp/portage/dev-ros/tf-1.13.2-r4/work/geometry-1.13.2/tf/include/tf/time_cache.h:36,
                 from /var/tmp/portage/dev-ros/tf-1.13.2-r4/work/geometry-1.13.2/tf/include/tf/tf.h:44,
                 from /var/tmp/portage/dev-ros/tf-1.13.2-r4/work/geometry-1.13.2/tf/src/tf_monitor.cpp:35:
/usr/include/boost/bind.hpp:36:1: note: '#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.'
   36 | BOOST_PRAGMA_MESSAGE(
      | ^~~~~~~~~~~~~~~~~~~~
during GIMPLE pass: strlen
In file included from /usr/include/ros/subscriber.h:33,
                 from /usr/include/ros/node_handle.h:33,
                 from /usr/include/ros/ros.h:45,
                 from /usr/include/tf2_ros/buffer.h:38,
                 from /var/tmp/portage/dev-ros/tf-1.13.2-r4/work/geometry-1.13.2/tf/include/tf/tf.h:49,
                 from /var/tmp/portage/dev-ros/tf-1.13.2-r4/work/geometry-1.13.2/tf/src/tf_monitor.cpp:35:
/usr/include/ros/subscription_callback_helper.h: In member function 'ros::VoidConstPtr ros::SubscriptionCallbackHelperT<P, Enabled>::deserialize(const ros::SubscriptionCallbackHelperDeserializeParams&) [with P = const boost::shared_ptr<const tf::tfMessage_<std::allocator<void> > >&; Enabled = void]':
/usr/include/ros/subscription_callback_helper.h:118:24: internal compiler error: Segmentation fault
  118 |   virtual VoidConstPtr deserialize(const SubscriptionCallbackHelperDeserializeParams& params)
      |                        ^~~~~~~~~~~
0x17748ff internal_error(char const*, ...)
        ???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.







But with that option I do get :


17-0-musl-hardened-j4-20211213-184654- /var/tmp/portage/dev-ros/tf-1.13.2-r4/work/tf-1.13.2_build # /usr/bin/x86_64-gentoo-linux-musl-g++ -DBOOST_ALL_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DROSCONSOLE_BACKEND_LOG4CXX -DROS_BUILD_SHARED_LIBS=1 -DROS_PACKAGE_NAME=\"tf\" -I/var/tmp/portage/dev-ros/tf-1.13.2-r4/work/tf-1.13.2_build/devel/include -I/var/tmp/portage/dev-ros/tf-1.13.2-r4/work/geometry-1.13.2/tf/include -I/usr/share/xmlrpcpp/cmake/../../../include/xmlrpcpp  -pipe -march=native -fno-diagnostics-color -O2 -std=c++14 -std=c++11 -MD -MT CMakeFiles/tf_monitor.dir/src/tf_monitor.cpp.o -MF CMakeFiles/tf_monitor.dir/src/tf_monitor.cpp.o.d -o CMakeFiles/tf_monitor.dir/src/tf_monitor.cpp.o -c /var/tmp/portage/dev-ros/tf-1.13.2-r4/work/geometry-1.13.2/tf/src/tf_monitor.cpp -save-temps
x86_64-gentoo-linux-musl-g++: warning: '-pipe' ignored because '-save-temps' specified
In file included from /usr/include/ros/publisher.h:35,
                 from /usr/include/ros/node_handle.h:32,
                 from /usr/include/ros/ros.h:45,
                 from /usr/include/tf2_ros/buffer.h:38,
                 from /var/tmp/portage/dev-ros/tf-1.13.2-r4/work/geometry-1.13.2/tf/include/tf/tf.h:49,
                 from /var/tmp/portage/dev-ros/tf-1.13.2-r4/work/geometry-1.13.2/tf/src/tf_monitor.cpp:35:
/usr/include/boost/bind.hpp:41:273: note: '#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.'
   41 | )
      |                                                                                                                                                                                      






17-0-musl-hardened-j4-20211213-184654- /var/tmp/portage/dev-ros/tf-1.13.2-r4/work/tf-1.13.2_build # arch=znver3; for t in param target; do cmd="gcc -Q -O2 -march=$arch --help=$t"; diff -U0 <(LANG=C $cmd) <(LANG=C $cmd -march=native); done
--- /dev/fd/63  2021-12-15 17:33:48.383714102 +0100
+++ /dev/fd/62  2021-12-15 17:33:48.383714102 +0100
@@ -158 +158 @@
-  -mshstk                              [disabled]
+  -mshstk                              [enabled]



17-0-musl-hardened-j4-20211213-184654- /var/tmp/portage/dev-ros/tf-1.13.2-r4/work/tf-1.13.2_build # gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-gentoo-linux-musl/11.2.1/lto-wrapper
Target: x86_64-gentoo-linux-musl
Configured with: /var/tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/gcc-11-20211127/configure --host=x86_64-gentoo-linux-musl --build=x86_64-gentoo-linux-musl --prefix=/usr --bindir=/usr/x86_64-gentoo-linux-musl/gcc-bin/11.2.1 --includedir=/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/include --datadir=/usr/share/gcc-data/x86_64-gentoo-linux-musl/11.2.1 --mandir=/usr/share/gcc-data/x86_64-gentoo-linux-musl/11.2.1/man --infodir=/usr/share/gcc-data/x86_64-gentoo-linux-musl/11.2.1/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/include/g++-v11 --with-python-dir=/share/gcc-data/x86_64-gentoo-linux-musl/11.2.1/python --enable-languages=c,c++ --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --disable-nls --disable-libunwind-exceptions --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 11.2.1_p20211127 p0' --enable-esp --enable-libstdcxx-time --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-multilib --with-multilib-list=m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --without-zstd --enable-lto --without-isl --disable-libsanitizer --enable-default-pie --enable-default-ssp
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.1 20211127 (Gentoo Hardened 11.2.1_p20211127 p0)
Comment 19 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-16 10:10:21 UTC
that second command looks like it worked. There should be a .ii file in the the directory
Comment 20 Toralf Förster gentoo-dev 2021-12-16 10:39:54 UTC
Created attachment 759275 [details]
tf_monitor.cpp.ii.bz2

tf_monitor.cpp.ii
Comment 21 Toralf Förster gentoo-dev 2021-12-28 21:16:07 UTC
*** Bug 829451 has been marked as a duplicate of this bug. ***
Comment 22 Toralf Förster gentoo-dev 2021-12-28 21:16:13 UTC
*** Bug 830078 has been marked as a duplicate of this bug. ***
Comment 23 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-06 19:13:29 UTC
*** Bug 830704 has been marked as a duplicate of this bug. ***
Comment 24 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-08 02:19:04 UTC
*** Bug 786282 has been marked as a duplicate of this bug. ***
Comment 25 Toralf Förster gentoo-dev 2022-01-16 20:21:17 UTC
FWIW it seems that -j1 helped
Comment 26 Jakov Smolić archtester gentoo-dev 2023-01-24 20:47:50 UTC
Package removed.