Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568260 - =net-analyzer/icinga2-2.3.11 fails to build: internal compiler error: tree check: expected ssa_name, have var_decl in unlink_stmt_vdef, at tree-ssa-operands.c:1314
Summary: =net-analyzer/icinga2-2.3.11 fails to build: internal compiler error: tree ch...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-14 17:53 UTC by Vincent de Phily
Modified: 2017-12-03 03:48 UTC (History)
0 users

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


Attachments
build log (build.log,16.05 KB, text/plain)
2015-12-14 17:58 UTC, Vincent de Phily
Details
Preprocessed source (process.E.gz,443.42 KB, application/x-gzip)
2015-12-14 20:58 UTC, Vincent de Phily
Details
Verbose build log (build.log,68.59 KB, text/plain)
2015-12-14 21:00 UTC, Vincent de Phily
Details
Reduced test case (reduced.cpp,485 bytes, text/x-c++src)
2016-01-07 22:46 UTC, Vincent de Phily
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent de Phily 2015-12-14 17:53:29 UTC
I'm hitting an internal compiler error trying to upgrade icinga2:


/var/tmp/portage/net-analyzer/icinga2-2.3.11/work/icinga2-2.3.11/lib/base/process.cpp: In member function ‘void icinga::Process::Run(const boost::function<void(const icinga::ProcessResult&)>&)’:
/var/tmp/portage/net-analyzer/icinga2-2.3.11/work/icinga2-2.3.11/lib/base/process.cpp:789:1: internal compiler error: tree check: expected ssa_name, have var_decl in unlink_stmt_vdef, at tree-ssa-operands.c:1314
 }

Reproducible: Always
Comment 1 Vincent de Phily 2015-12-14 17:53:37 UTC
# emerge --info '=net-analyzer/icinga2-2.3.11::gentoo'
Portage 2.2.24 (python 3.4.3-final-0, hardened/linux/amd64, gcc-4.9.3, glibc-2.21-r1, 4.1.7-hardened-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.1.7-hardened-r1-x86_64-Intel-R-_Core-TM-_i7-4800MQ_CPU_@_2.70GHz-with-gentoo-2.2
KiB Mem:     8061588 total,    143912 free
KiB Swap:    7912008 total,   6330980 free
Timestamp of repository gentoo: Mon, 14 Dec 2015 16:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

rust
    location: /var/lib/layman/rust
    masters: gentoo
    priority: 0

moltonel
    location: /home/work/c/ebuilds
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x skype-4.0.0.7-copyright google-chrome"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="                            ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://mirror.ovh.net/gentoo-distfiles/ http://ftp.heanet.ie/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-s -j8 -l7"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X aac acl akonadi alsa amd64 apache2 apng avahi bash-completion berkdb bluetooth bzip2 cdda cddb cli cracklib crash-reporter crypt cups cxx dbus declarative dri dvd ebook emacs encode epub erlang exif ffmpeg flac fontconfig gcj gdbm gstreamer gudev hardened iconv icu ipv6 jit jpeg jpeg2k json justify kde kdepim lzma marble mmx mmxext mng modules mp3 mpeg mplayer mtp multilib mysql ncurses nls nptl ogg openexr opengl openmp openssl opus pam pax_kernel pcre pdf pie plasma png policykit postgres printsupport prison pulseaudio python qrcode qt4 qt5 readline scanner script seccomp semantic-desktop session shapefile silk spatialite speex sql sqlite sse sse2 ssl ssp svg taglib tcpd telepathy theora threads tiff truetype udisks unicode upnp urandom v4l video vnc vorbis webkit wifi x264 xattr xcb xmp xtpax xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby20" USERLAND="GNU" VIDEO_CARDS="vesa intel radeon" 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"
USE_PYTHON="2.7 3.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Vincent de Phily 2015-12-14 17:58:12 UTC
Created attachment 419196 [details]
build log
Comment 3 Vincent de Phily 2015-12-14 17:58:35 UTC
# emerge -pqv '=net-analyzer/icinga2-2.3.11::gentoo'
[ebuild     U ] net-analyzer/icinga2-2.3.11 [2.3.10-r1] USE="apache2 mysql plugins postgres -classicui -minimal -nano-syntax -vim-syntax"
Comment 4 Felix Janda 2015-12-14 18:53:28 UTC
Please provide a verbose log using MAKEOPTS="VERBOSE=1" (so that we can
see with which flags process.cpp is compiled). Also please provide the
preprocessor output of process.cpp. It can be produced by executing the
compilation command for process.cpp.o from the build log but with
"-o .../process.cpp.o -c" replaced by "-E".
Comment 5 Vincent de Phily 2015-12-14 20:58:50 UTC
Created attachment 419204 [details]
Preprocessed source
Comment 6 Vincent de Phily 2015-12-14 21:00:40 UTC
Created attachment 419206 [details]
Verbose build log
Comment 7 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2015-12-24 04:39:14 UTC
how about 2.4.1?
Comment 8 Vincent de Phily 2015-12-26 23:08:07 UTC
All currently available Icinga2 versions (2.3.10-r1 2.3.11 2.4.0 2.4.1 2.4.1-r1) give me the same error. Tried 2.4.1-r1 with USE=lto, same result.

Last sucessfull compile was 2.3.10-r1 when I was running gcc-4.8.5. Emerging icinga2-2.4.1-r1 and icinga2-2.3.10-r1 with gcc-4.8.5 again gives a different error :

[ 67%] Linking CXX executable ../Bin/Gentoo/icinga2
cd /var/tmp/portage/net-analyzer/icinga2-2.4.1-r1/work/icinga2-2.4.1_build/icinga-app && /usr/bin/cmake -E cmake_link_script CMakeFiles/icinga-app.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++   -O2 -march=native -pipe   -std=c++11 -Wno-inconsistent-missing-override   -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--no-export-dynamic -Bsymbolic-functions -Wl,--dynamic-list-cpp-typeinfo -Wl,--dynamic-list-data CMakeFiles/icinga-app.dir/icinga.cpp.o  -o ../Bin/Gentoo/icinga2 -rdynamic -lboost_thread-mt -lboost_system-mt -lboost_program_options-mt -lboost_regex-mt ../Bin/Gentoo/libcli.so ../Bin/Gentoo/libremote.so ../Bin/Gentoo/libconfig.so ../Bin/Gentoo/libbase.so -ldl -lboost_thread-mt -lboost_system-mt -lboost_program_options-mt -lboost_regex-mt -lssl -lcrypto -lyajl ../Bin/Gentoo/libmmatch.so ../Bin/Gentoo/libsocketpair.so ../Bin/Gentoo/libexecvpe.so -lncurses -Wl,-rpath,/var/tmp/portage/net-analyzer/icinga2-2.4.1-r1/work/icinga2-2.4.1_build/Bin/Gentoo: 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.5/../../../../lib64/libboost_program_options-mt.so: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'
collect2: error: ld returned 1 exit status

I tried gcc-vanilla (instead of hardened) for both gcc versions and it doesn't change anything.
Comment 9 Vincent de Phily 2015-12-26 23:21:01 UTC
Getting timeouts trying to upload the build log for icinga 2.4.4-r1 with gcc 4.8.5, I can retry later if you think it's useful.

In the meantime I tried rebuilding boost (1.56.0-r1) with gcc 4.9.3 and retrying icinga2, but got the same results.

Has anyone managed to reproduce, at least with the preprocessed file ?
Comment 10 Felix Janda 2015-12-30 09:10:50 UTC
I cannot reproduce the error because the included boost headers are
incompatible with my arch.

Could you try to reduce the test case using dev-util/creduce? See
http://embed.cs.utah.edu/creduce/using .
Comment 11 Vincent de Phily 2016-01-07 22:46:59 UTC
Created attachment 422252 [details]
Reduced test case

$ /usr/bin/x86_64-pc-linux-gnu-g++ -O2 -fPIC -c reduced.cpp -o reduced.o
reduced.cpp: In function ‘void Run()’:
reduced.cpp:17:29: warning: deprecated conversion from string constant to ‘error_info<int, char*>::value_type {aka char*}’ [-Wwrite-strings]
   error_info<int, char *>("") << error_info<int, int>(a);
                             ^
reduced.cpp:19:1: internal compiler error: tree check: expected ssa_name, have var_decl in unlink_stmt_vdef, at tree-ssa-operands.c:1314
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
Comment 12 Vincent de Phily 2016-01-07 22:49:41 UTC
Gcc version is x86_64-pc-linux-gnu-g++ (Gentoo Hardened 4.9.3 p1.4, pie-0.6.4) 4.9.3

Removing -fPIC or reducing to -O1 stops triggering the bug.
Comment 13 Felix Janda 2016-01-08 20:03:47 UTC
Thanks for reducing the test case!

I cannot reproduce with armv7a-hardfloat-linux-musleabi-g++ (Gentoo Hardened 4.9.3-r99 p1.2, pie-0.6.3) 4.9.3

Have you also tested other gcc versions?

Anyway, reporting to upstream gcc would be good. It might get fixed for
gcc-4.9.4.
Comment 14 Vincent de Phily 2016-02-01 14:16:04 UTC
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69588

Seems like it was already fixed in git and will be in the 4.9.4 release.
Comment 15 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-12-03 03:48:50 UTC
yep, this is old and fixed, closing