Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649262 - app-office/libreoffice-6.0.2.1 compilation error with sys-devel/gcc-7.3.0 : missing stdlib.h
Summary: app-office/libreoffice-6.0.2.1 compilation error with sys-devel/gcc-7.3.0 : m...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://gitlab.kitware.com/cmake/cmak...
Whiteboard:
Keywords:
Depends on: 649290
Blocks:
  Show dependency tree
 
Reported: 2018-03-01 19:31 UTC by CapSel
Modified: 2018-03-07 11:24 UTC (History)
2 users (show)

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


Attachments
emerge--infolibreofice (emerge--infolibreofice.txt,7.23 KB, text/plain)
2018-03-01 21:21 UTC, jms
no flags Details
libreoffice 6.0.1.1 log (libreoffice-6.0.1.1-20180301-115618.tar.gz,232.38 KB, application/gzip)
2018-03-01 21:28 UTC, jms
no flags Details
libreoffice-6.0.2.1 log (libreoffice-6.0.2.1_20180301-175245.tar.gz,232.26 KB, application/gzip)
2018-03-01 21:31 UTC, jms
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description CapSel 2018-03-01 19:31:26 UTC
Compilation failure:

[CXX] libreofficekit/source/gtk/tilebuffer.cxx
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/ext/string_conversions.h:41:0,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/basic_string.h:6349,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/string:52,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/stdexcept:39,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/array:39,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/tuple:39,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/unique_ptr.h:37,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/memory:80,
                 from /var/tmp/portage/app-office/libreoffice-6.0.2.1/work/libreoffice-6.0.2.1/libreofficekit/source/gtk/lokdocview.cxx:13:
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
               ^~~~~~~~~~
compilation terminated.
make[1]: *** [/var/tmp/portage/app-office/libreoffice-6.0.2.1/work/libreoffice-6.0.2.1/solenv/gbuild/LinkTarget.mk:293: /var/tmp/portage/app-office/libreoffice-6.0.2.1/work/libreoffice-6.0.2.1/workdir/CxxObject/libreofficekit/source/gtk/lokdocview.o] Error 1
make[1]: *** Waiting for unfinished jobs....


Reproducible: Always

Steps to Reproduce:
1. install gcc 7.3.0 and make it default
2. make ld gold default linker
3. unmask libreoffice with keyword x86_64
4. emerge libreoffice




# emerge --info
Portage 2.3.19 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-7.3.0, glibc-2.25-r10, 4.15.6-gentoo x86_64)
=================================================================
System uname: Linux-4.15.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-6500U_CPU_@_2.50GHz-with-gentoo-2.4.1
KiB Mem:    16264336 total,   7565072 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Thu, 01 Mar 2018 19:00:01 +0000
Head commit of repository gentoo: cf45683b1d89e0cacc023eb13c0cccdb0c9248b6
Timestamp of repository haskell: Wed, 28 Feb 2018 22:25:46 +0000
Head commit of repository haskell: 443fa04b32fd4854d72e1c847243d5b61b6307c5

Timestamp of repository steam-overlay: Sun, 11 Feb 2018 18:15:19 +0000
Head commit of repository steam-overlay: 62b535d189274ce98f9cac980428de36cc51a704

sh bash 4.4_p12
ld GNU gold (Gentoo 2.29.1 p3 2.29.1) 1.14
ccache version 3.2.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.10.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            7.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r10::gentoo
Repositories:

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

CapSelRepo
    location: /usr/local/portage
    masters: gentoo

haskell
    location: /var/db/repos/haskell
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/haskell.git
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
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=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en pl en_GB"
MAKEOPTS="-j4"
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="R X a52 aac acl acpi activities alsa amd64 anacron android androiddump aspell autotools berkdb bluetooth branding brightness-control btrfs bzip2 cacert cairo capi caps cdda cdr cgroups cilk ciscodump clang clangcodemodel clangstaticanalyzer cleartype_hinting cli cmake connection-sharing conntrack consolekit context contrast corefonts crypt cryptsetup cups curl cxx dbus declarative default-libcxx designer device-mapper dhcpcd dia djvu dolphin dos dri dri3 dts dvd dvdr egl eglfs emboss encode epub equalizer evdev exif extra faad fam farstream ffmpeg fftw filecaps fits flac fontconfig fortran fpx freesound fuse gdbm geolocation gif gimp git glamor glsl gold gphoto2 gpm gps graphite grub gsl gsm gstreamer gtk gtkstyle harfbuzz hdri hoogle hscolour hwaccel iconv icu id3tag idn imagemagick import-filter infinality inkjar inotify ios iproute2 ipv6 jack jpeg kde kernel kipi kwallet lame latex lcms libatomic libcxx libcxxabi libkms libnotify libsamplerate libssh libunwind libxml2 lto lvm lvm2create_initrd lzma lzo mad matroska mng mobi modeling modemmanager modules mp3 mp4 mpeg ms mtp multilib multimedia mysql native-headset natspec ncat ncurses ndiff netapi netlink networkmanager nftables nghttp2 nim nls nmap-update nping nptl ntfsdecrypt ntp office ofono-headset ogg okular openal opencl opengl openmp opus orientation osmesa overlay p2p pam pango pcap pcre pdf phonon pim plasma plotutils pm-utils png policykit postgres postproc postscript ppds pulseaudio qalculate qbs qml qpak qt3support qt4 qt5 radius raw readline realtime remote resolvconf rtaudio rtsp s3tc samba scanner schroedinger script scripttools sdl seccomp secure-delete semantic-desktop sftp share shibboleth smp sox speex spell sql sqlite sshdump ssl staging startup-notification steamfonts streaming subversion svg system-harfbuzz system-icu system-libevent system-libvpx system-sqlite tahoma tcpd tftpd themes theora threads tiff tinfo tools touchpad tracepath traceroute transcode truetype twolame udev udisks unicode upnp upower urandom usb utils uvm uxa v4l vaapi valgrind vcd vdpau vector-icons vim-syntax visio vlm vorbis vpx vulkan webkit webp widevine widgets wifi wpg wps wxwidgets x264 x265 xa xattr xcb xcomposite xinerama xml xv xvid xvmc 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmxext sse2 ssse3 avx avx2 mmx sse sse3 sse4_1 sse4_2 aes fma" 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="keyboard libinput mouse joystick evdev" KERNEL="linux" L10N="en en-GB pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 virgl nouveau nvidia" 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_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2018-03-01 21:20:02 UTC
What's the output of 

equery files gcc|grep stdlib.h

?!
Comment 2 jms 2018-03-01 21:21:19 UTC
Created attachment 521752 [details]
emerge--infolibreofice
Comment 3 jms 2018-03-01 21:22:02 UTC
equery files gcc|grep stdlib.h
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/stdlib.h
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/tr1/stdlib.h
Comment 4 jms 2018-03-01 21:24:44 UTC
I have  the same problem
with libreoffice-6.0.2.1 
and libreoffice-6.0.1.1 which I had previously built (15:19:18 10/02/2018
)without problem but now got same error if I try to rebuild
Comment 5 jms 2018-03-01 21:28:46 UTC
Created attachment 521754 [details]
libreoffice 6.0.1.1 log
Comment 6 jms 2018-03-01 21:31:30 UTC
Created attachment 521756 [details]
libreoffice-6.0.2.1 log
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2018-03-01 21:33:40 UTC
[CXX] libreofficekit/source/gtk/tilebuffer.cxx
S=/var/tmp/notmpfs/portage/app-office/libreoffice-6.0.1.1/work/libreoffice-6.0.1.1 && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CxxObject/libreofficekit/source/gtk/ $W/D
ep/CxxObject/libreofficekit/source/gtk/ && cd /var/tmp/notmpfs/portage/app-office/libreoffice-6.0.1.1/work/libreoffice-6.0.1.1 &&    x86_64-pc-linux-gnu-g++ -DBOOST_ERROR_C
ODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT   -DLOK_PATH="\"/usr/lib64/
libreoffice/program\""   -fvisibility=hidden    -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wunused-macros -finput-chars
et=UTF-8 -fmessage-length=0 -fno-common -pipe  -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -fvisibility-inlines-hidden -fstack-protector-str
ong -fPIC -Wshadow -Woverloaded-virtual -std=gnu++14   -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -march=native -O2 -pipe -fno-delete-null-pointer-checks   -pthread
 -isystem /usr/include/gtk-3.0/unix-print -isystem /usr/include/gtk-3.0 -isystem /usr/include/at-spi2-atk/2.0 -isystem /usr/include/at-spi-2.0 -isystem /usr/include/dbus-1.
0 -isystem /usr/lib64/dbus-1.0/include -isystem /usr/include/gtk-3.0 -isystem /usr/include/gio-unix-2.0/ -isystem /usr/include/cairo -isystem /usr/include/pango-1.0 -isyste
m /usr/include/harfbuzz -isystem /usr/include/pango-1.0 -isystem /usr/include/atk-1.0 -isystem /usr/include/cairo -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include
/libpng16 -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/pixman-1 -isystem /usr/include/freetype2 -is
ystem /usr/include/libdrm -isystem /usr/include/libpng16 -isystem /usr/include/   -DLIBO_INTERNAL_ONLY  -c $S/libreofficekit/source/gtk/tilebuffer.cxx -o $W/CxxObject/libre
officekit/source/gtk/tilebuffer.o  -I$S/include  -I/opt/oracle-jdk-bin-1.8.0.162/include -I/opt/oracle-jdk-bin-1.8.0.162/include/linux -I$S/config_host  -I$W/UnoApiHeadersT
arget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal -I/usr/include    
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/ext/string_conversions.h:41:0,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/basic_string.h:6349,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/string:52,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/stdexcept:39,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/array:39,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/tuple:39,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/unique_ptr.h:37,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/memory:80,
                 from /var/tmp/notmpfs/portage/app-office/libreoffice-6.0.1.1/work/libreoffice-6.0.1.1/libreofficekit/source/gtk/lokdocview.cxx:13:
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
               ^~~~~~~~~~
compilation terminated.



^^^ note the "-isystem /usr/include/"
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2018-03-01 21:34:19 UTC
gold isn't relevant
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2018-03-01 21:45:22 UTC
what's the output of the following command:

grep '/usr/include/$' /usr/lib64/pkgconfig/*
Comment 10 jms 2018-03-01 22:26:36 UTC
(In reply to Andreas K. Hüttel from comment #9)
> what's the output of the following command:
> 
> grep '/usr/include/$' /usr/lib64/pkgconfig/*

grep '/usr/include/$' /usr/lib64/pkgconfig/*
/usr/lib64/pkgconfig/xshmfence.pc:Cflags: -I${includedir} -I/usr/include/
Comment 11 Andreas Sturmlechner gentoo-dev 2018-03-01 22:47:48 UTC
@jms: After upgrading to meson-0.44.1, rebuild xorg-proto and then libxshmfence afterwards.
Comment 12 jms 2018-03-01 23:11:30 UTC
(In reply to Andreas Sturmlechner from comment #11)
> @jms: After upgrading to meson-0.44.1, rebuild xorg-proto and then
> libxshmfence afterwards.
ok.now
[U]dev-util/meson-0.44.1
[U]x11-base/xorg-proto-2018.4
[R]x11-libs/libxshmfence-1.2

grep '/usr/include/$' /usr/lib64/pkgconfig/*
return nothing
Comment 13 jms 2018-03-01 23:28:01 UTC
(In reply to Andreas Sturmlechner from comment #11)
> @jms: After upgrading to meson-0.44.1, rebuild xorg-proto and then
> libxshmfence afterwards.

so far seems to do the trick.
libreoffice is currently happily compiling past previous error point.
fingers crossed..
Comment 14 CapSel 2018-03-01 23:29:40 UTC
So the only thing left for me is to confirm last comment - it went past last error
Comment 15 jms 2018-03-02 01:33:41 UTC
yes!
compile fine now
Comment 16 Andreas Sturmlechner gentoo-dev 2018-03-07 11:24:07 UTC
dev-util/meson-0.44.1 has been stable on the relevant arches for some time, we can close this.