View previous topic :: View next topic |
Author |
Message |
plasmid n00b
Joined: 02 May 2005 Posts: 56
|
Posted: Mon Apr 12, 2021 3:49 pm Post subject: libreoffice7.1.2.2 build failure |
|
|
I'm having problems building libreoffice 7.1.2.2 and I can't find the error I'm getting anywhere in the forums or online so I am guessing it is specific to my setup.
Here is the crash info:
Code: | [CXX] svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx
S=/var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2 && I=$S/instdir && W=$S/workdir && mkdir -p $W/CxxObject/svx/source/customshapes/ $W/Dep/CxxObject/svx/source/customshapes/ && cd /var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2 && x86_64-pc-linux-gnu-g++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT -DSVXCORE_DLLIMPLEMENTATION -DSYSTEM_LIBXML -fvisibility=hidden -Wno-stringop-overflow -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wunused-macros -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe -fstack-protector-strong -fdiagnostics-color=always -Wdeprecated-copy-dtor -Wno-maybe-uninitialized -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -Wno-cast-function-type -fvisibility-inlines-hidden -fPIC -Wshadow -Woverloaded-virtual -std=c++17 -pthread -O2 -pipe -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -DLIBO_INTERNAL_ONLY -c $S/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx -o $W/CxxObject/svx/source/customshapes/EnhancedCustomShapeFunctionParser.o -I$S/svx/inc -I$S/svx/source/inc -I$S/include -I/usr/lib64/openjdk-11/include -I/usr/lib64/openjdk-11/include/linux -I$S/config_host -I$W/CustomTarget/officecfg/registry -I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal -I$W/SdiTarget/svx/sdi -I/usr/include -isystem /usr/include/libxml2
*** stack smashing detected ***: terminated
/var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx: In constructor ‘{anonymous}::ExpressionGrammar::definition<ScannerT>::definition(const {anonymous}::ExpressionGrammar&) [with ScannerT = boost::spirit::classic::scanner<const char*, boost::spirit::classic::scanner_policies<boost::spirit::classic::skipper_iteration_policy<> > >]’:
/var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx:1015:74: internal compiler error: Aborted
1015 | | (str_p( "atan2") >> '(' >> additiveExpression >> ',' >> additiveExpression >> ')' )[ BinaryFunctionFunctor( ExpressionFunct::BinaryAtan2,self.getContext()) ]
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
make[1]: *** [/var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2/solenv/gbuild/LinkTarget.mk:301: /var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2/workdir/CxxObject/svx/source/customshapes/EnhancedCustomShapeFunctionParser.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2'
make: *** [Makefile:282: build] Error 2
* ERROR: app-office/libreoffice-7.1.2.2::gentoo failed (compile phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 125: Called src_compile
* environment, line 5372: Called die
* The specific snippet of code:
* make ${target} || die
*
* If you need support, post the output of `emerge --info '=app-office/libreoffice-7.1.2.2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=app-office/libreoffice-7.1.2.2::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM= CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =libreoffice-7.1.2.2
* The complete build log is located at '/var/tmp/portage/app-office/libreoffice-7.1.2.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-7.1.2.2/temp/environment'.
* Working directory: '/var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2'
* S: '/var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2'
>>> Failed to emerge app-office/libreoffice-7.1.2.2, Log file:
>>> '/var/tmp/portage/app-office/libreoffice-7.1.2.2/temp/build.log'
* Messages for package app-office/libreoffice-7.1.2.2:
* If you plan to use Base application you must enable USE base.
* Messages for package app-office/libreoffice-7.1.2.2:
* ERROR: app-office/libreoffice-7.1.2.2::gentoo failed (compile phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 125: Called src_compile
* environment, line 5372: Called die
* The specific snippet of code:
* make ${target} || die
*
* If you need support, post the output of `emerge --info '=app-office/libreoffice-7.1.2.2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=app-office/libreoffice-7.1.2.2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/app-office/libreoffice-7.1.2.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-7.1.2.2/temp/environment'.
* Working directory: '/var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2'
* S: '/var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2' |
and here is the output of emerge --info libreoffice
Code: | emerge --info =libreoffice-7.1.2.2
Portage 3.0.18 (python 3.8.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.3.0, glibc-2.33, 5.11.9-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-5.11.9-gentoo-x86_64-AMD_Ryzen_Threadripper_1950X_16-Core_Processor-with-glibc2.2.5
KiB Mem: 65745744 total, 3161496 free
KiB Swap: 6291452 total, 5935100 free
Timestamp of repository gentoo: Sat, 10 Apr 2021 12:30:01 +0000
Head commit of repository gentoo: 19e847cb3c2723d1ea1317102045b97254ef953e
sh bash 5.1_p4
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash: 5.1_p4::gentoo
dev-java/java-config: 2.3.1::gentoo
dev-lang/perl: 5.32.1::gentoo
dev-lang/python: 2.7.18_p8::gentoo, 3.8.9::gentoo, 3.9.4::gentoo
dev-lang/rust: 1.51.0::gentoo
dev-util/cmake: 3.20.1::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.7-r1::gentoo
sys-apps/openrc: 0.43.1::gentoo
sys-apps/sandbox: 2.22::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo, 2.71::gentoo
sys-devel/automake: 1.16.3-r1::gentoo
sys-devel/binutils: 2.35.2::gentoo
sys-devel/gcc: 10.3.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.11::gentoo (virtual/os-headers)
sys-libs/glibc: 2.33::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-metamanifest: yes
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 24
localrepo
location: /usr/local/portage
masters: gentoo
guru
location: /var/lib/layman/guru
sync-type: laymansync
sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
masters: gentoo
priority: 50
slonko
location: /var/lib/layman/slonko
sync-type: laymansync
sync-uri: https://slonko.net/git/portage
masters: gentoo
priority: 50
zugaina
location: /var/lib/layman/zugaina
sync-type: laymansync
sync-uri: rsync://gentoo.zugaina.org/zugaina-portage
masters: gentoo
priority: 50
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
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"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
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"
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 qa-unresolved-soname-deps 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_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US"
MAKEOPTS="-j8"
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="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr crypt cups dbus declarative dts dvd dvdr elogind emboss encode exif ffmpeg flac gif gpm gtk gui hardened iconv icu imap ipv6 jpeg kde kipi kwallet lame lcms libglvnd libnotify libtirpc mad maildir matroska mng mp3 mp4 mpeg mtp multilib mysql ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon pie plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl ssp startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vdpau vhosts vorbis widgets wxwidgets x264 xattr xcb xml xtpax xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US en_US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS |
any thoughts?
Next time please use bbcode for code block -- fedeliallalinea |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31258 Location: here
|
Posted: Mon Apr 12, 2021 4:28 pm Post subject: |
|
|
As mentioned here, in german, asturm suggests to check the dmesg for exclude hardware errors.
Maybe you can post full build.log (for big file you can use https://transfer.sh). _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Mon Apr 12, 2021 4:43 pm Post subject: |
|
|
Code: | *** stack smashing detected ***: terminated |
That's highly unusual. You either triggered a software bug OR there's a hardware issue OR you misconfigured some basic OS parameters... |
|
Back to top |
|
|
plasmid n00b
Joined: 02 May 2005 Posts: 56
|
Posted: Mon Apr 12, 2021 4:54 pm Post subject: |
|
|
I would be surprised if there is a hardware issue as I would expect issues on other builds, and this only has happened on libreoffice and happens exactly at the same spot every time. I'm guessing that something on my end is miss-configured or I would see other people with this issues, but I am not certain how to figure out what. I suppose I could do an empty tree rebuild of everything just to make sure there isn't some strange dependency issue. Any suggestions as to what to do next? |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Mon Apr 12, 2021 5:16 pm Post subject: |
|
|
Quote: | I would be surprised if there is a hardware issue as I would expect issues on other builds, and this only has happened on libreoffice and happens exactly at the same spot every time. |
That makes sense.
Anyway, please recompile with MAKEOPTS="-j1" and post the first 1000 lines and the last 1000 lines of the build log using wgetpaste. |
|
Back to top |
|
|
plasmid n00b
Joined: 02 May 2005 Posts: 56
|
|
Back to top |
|
|
Buffoon Veteran
Joined: 17 Jun 2015 Posts: 1369 Location: EU or US
|
Posted: Mon Apr 12, 2021 7:50 pm Post subject: |
|
|
mike155 wrote: | Code: | *** stack smashing detected ***: terminated |
That's highly unusual. You either triggered a software bug OR there's a hardware issue OR you misconfigured some basic OS parameters... |
What if -march=native gets it wrong for this CPU? Just my 2¢ ... _________________ Life is a tragedy for those who feel and a comedy for those who think. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22628
|
Posted: Mon Apr 12, 2021 9:26 pm Post subject: |
|
|
Generally, if the compiler selects an inappropriate instruction set for the CPU, you will get an Illegal instruction signal, rather than stack corruption. |
|
Back to top |
|
|
Buffoon Veteran
Joined: 17 Jun 2015 Posts: 1369 Location: EU or US
|
Posted: Mon Apr 12, 2021 10:03 pm Post subject: |
|
|
I'm no programmer, but native passes to GCC also some cache size options, can't those cause buffer overflow? _________________ Life is a tragedy for those who feel and a comedy for those who think. |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Mon Apr 12, 2021 10:20 pm Post subject: |
|
|
Let's analyze what we have.
- @plasmid already posted the output of 'emerge --info'. He's on unstable/testing, there are a few overlays, but nothing unusual.
- The first lines of the build log show the configuration:
Code: | * Package: app-office/libreoffice-7.1.2.2
* Repository: gentoo
* Maintainer: office@gentoo.org
* USE: abi_x86_64 amd64 bluetooth branding cups dbus elibc_glibc gtk java kde kernel_linux mariadb python_single_target_python3_8 userland_GNU
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
* Using python3.8 to build
* Checking for at least 512 MiB RAM ... [ ok ]
* Checking for at least 6 GiB disk space at "/var/tmp/portage/app-office/libreoffice-7.1.2. [ ok ] ...
>>> Unpacking source...
>>> Unpacking libreoffice-branding-gentoo-0.8.tar.xz to /var/tmp/portage/app-office/libreoffice-7.1.2.2/work
>>> Unpacking libreoffice-7.1.2.2.tar.xz to /var/tmp/portage/app-office/libreoffice-7.1.2.2/work
>>> Unpacking libreoffice-help-7.1.2.2.tar.xz to /var/tmp/portage/app-office/libreoffice-7.1.2.2/work
>>> Unpacking dtoa-20180411.tgz to /var/tmp/portage/app-office/libreoffice-7.1.2.2/work
>>> Unpacking skia-m88-59bafeeaa7de9eb753e3778c414e01dcf013dcd8.tar.xz to /var/tmp/portage/app-office/libreoffice-7.1.2.2/work
>>> Unpacking QR-Code-generator-1.4.0.tar.gz to /var/tmp/portage/app-office/libreoffice-7.1.2.2/work
>>> Unpacking 17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip to /var/tmp/portage/app-office/libreoffice-7.1.2.2/work
>>> Source unpacked in /var/tmp/portage/app-office/libreoffice-7.1.2.2/work
>>> Preparing source in /var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2 ...
* Applying libreoffice-5.3.4.2-kioclient5.patch ... [ ok ]
* Applying libreoffice-6.1-nomancompress.patch ... [ ok ]
* Applying libreoffice-7.0.3.1-qt5detect.patch ... [ ok ]
* Running eautoreconf in '/var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2' ...
* Running aclocal -I m4 ... [ ok ]
* Running autoconf -I m4 --force ... [ ok ]
* Running autoheader -I m4 ... [ !! ]
* Running elibtoolize in: libreoffice-7.1.2.2/
renamed '/var/tmp/portage/app-office/libreoffice-7.1.2.2/work/branding-intro.png' -> 'icon-themes/colibre/brand/intro.png'
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2 ...
* Preset CFLAGS: -march=native -O2 -pipe
* Preset LDFLAGS: -Wl,-O1 -Wl,--as-needed
* Enforcing the use of gcc due to USE=-clang ...
* Used CFLAGS: -march=native -O2 -pipe
* Used LDFLAGS: -Wl,-O1 -Wl,--as-needed
* econf: updating libreoffice-7.1.2.2/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating libreoffice-7.1.2.2/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --docdir=/usr/share/doc/libreoffice-7.1.2.2 --htmldir=/usr/share/doc/libreoffice-7.1.2.2/html --libdir=/usr/lib64 --with-system-dicts --with-system-epoxy --with-system-headers --with-system-jars --with-system-libs --enable-build-opensymbol --enable-cairo-canvas --enable-largefile --enable-mergelibs --enable-neon --enable-python=system --enable-randr --enable-release-build --disable-breakpad --disable-bundle-mariadb --disable-ccache --disable-epm --disable-fetch-external --disable-gtk3-kde5 --disable-online-update --disable-openssl --disable-pdfium --disable-vlc --with-extra-buildid=Gentoo official package --enable-extension-integration --with-external-dict-dir=/usr/share/myspell --with-external-hyph-dir=/usr/share/myspell --with-external-thes-dir=/usr/share/myspell --with-external-tar=/var/tmp/portage/app-office/libreoffice-7.1.2.2/distdir --with-lang= --with-parallelism=1 --with-system-ucpp --with-tls=nss --with-vendor=Gentoo Foundation --with-x --without-fonts --without-myspell-dicts --with-help=html --without-helppack-integration --with-system-gpgmepp --without-system-jfreereport --without-system_apache_commons --without-system-sane --without-system-qrcodegen --disable-report-builder --enable-sdremote-bluetooth --disable-coinmp --enable-cups --enable-dbus --disable-debug --disable-evolution2 --disable-firebird-sdbc --disable-gstreamer-1-0 --enable-gtk3 --enable-kf5 --enable-qt5 --disable-ldap --disable-odk --disable-pdfimport --disable-postgresql-sdbc --disable-skia --without-lxml --without-system-coinmp --without-gdrive-client-id --without-gdrive-client-secret --with-java --without-doxygen --enable-dconf --enable-gio --disable-ext-nlpsolver --disable-scripting-beanshell --disable-scripting-javascript --disable-ext-wiki-publisher --without-junit --without-system-hsqldb --with-ant-home=/usr/share/ant -with-jdk-home=/usr/lib64/openjdk-11 |
Again: nothing unusual
The end of the build log shows the command that fails (line breaks added by me):
Code: | [CXX] svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx
S=/var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2 && I=$S/instdir && W=$S/workdir && mkdir -p $W/CxxObject/svx/source/customshapes/ $W/Dep/CxxObject/svx/source/customshapes/ && cd /var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2 && x86_64-pc-linux-gnu-g++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT -DSVXCORE_DLLIMPLEMENTATION -DSYSTEM_LIBXML -fvisibility=hidden -Wno-stringop-overflow -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wunused-macros -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe -fstack-protector-strong -fdiagnostics-color=always -Wdeprecated-copy-dtor -Wno-maybe-uninitialized -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -Wno-cast-function-type -fvisibility-inlines-hidden -fPIC -Wshadow -Woverloaded-virtual -std=c++17 -pthread -O2 -pipe -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -DLIBO_INTERNAL_ONLY -c $S/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx -o $W/CxxObject/svx/source/customshapes/EnhancedCustomShapeFunctionParser.o -I$S/svx/inc -I$S/svx/source/inc -I$S/include -I/usr/lib64/openjdk-11/include -I/usr/lib64/openjdk-11/include/linux -I$S/config_host -I$W/CustomTarget/officecfg/registry -I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal -I$W/SdiTarget/svx/sdi -I/usr/include -isystem /usr/include/libxml2
*** stack smashing detected ***: terminated
/var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx:
In constructor ‘{anonymous}::ExpressionGrammar::definition<ScannerT>::definition(const {anonymous}::ExpressionGrammar&) [with ScannerT = boost::spirit::classic::scanner<const char*, boost::spirit::classic::scanner_policies<boost::spirit::classic::skipper_iteration_policy<> > >]’:
/var/tmp/portage/app-office/libreoffice-7.1.2.2/work/libreoffice-7.1.2.2/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx:1015:74:
internal compiler error: Aborted
1015 | | (str_p( "atan2") >> '(' >> additiveExpression >> ',' >> additiveExpression >> ')' )[ BinaryFunctionFunctor( ExpressionFunct::BinaryAtan2,self.getContext()) ]
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ |
A wild guess: it seems that Boost is involved. Since GCC 10.3 was released only a few days ago, I assume that Boost was compiled with a previous version of GCC?
@plasmid: please re-emerge Boost and try again. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22628
|
Posted: Tue Apr 13, 2021 1:48 am Post subject: |
|
|
Buffoon wrote: | I'm no programmer, but native passes to GCC also some cache size options, can't those cause buffer overflow? | No. The shown error can only occur in the presence of a bug, either in the compiled program or in the compiler that converted that program to native code. No user input, no matter how ill-considered, can cause this failure without such a bug. |
|
Back to top |
|
|
plasmid n00b
Joined: 02 May 2005 Posts: 56
|
|
Back to top |
|
|
gcyoung Apprentice
Joined: 04 Jul 2007 Posts: 179 Location: England
|
Posted: Wed Jun 02, 2021 1:37 pm Post subject: |
|
|
I think this is related to this issue. The upgrade to python9 has meant considerable changes and emerges. One of which is the requirement of changed uses to dev-libs/boost-1.75.0-r2. This compiled without problems on an older AMD processor and an Intel processor, but it will not compile on my Ryzen 3 processor. It terminated without an error message shortly after a note about stack smashing. The following is the code printed:
Code: | '*** stack smashing detected ***: terminated
In file included from ./boost/compressed_pair.hpp:18,
from ./boost/spirit/home/classic/core/composite/composite.hpp:12,
from ./boost/spirit/home/classic/core/composite/sequence.hpp:16,
from ./boost/spirit/home/classic/core/composite/operators.hpp:13,
from ./boost/spirit/include/classic_operators.hpp:11,
from libs/serialization/src/basic_xml_grammar.ipp:28,
from libs/serialization/src/xml_wgrammar.cpp:146:
./boost/detail/compressed_pair.hpp: In constructor ‘boost::details::compressed_pair_imp<T1, T2, 0>::compressed_pair_imp(boost::details::compressed_pair_imp<T1, T2, 0>::first_param_type, boo>
./boost/detail/compressed_pair.hpp:120:32: internal compiler error: Aborted
120 | : first_(x), second_(y) {}
| ^
.......................................................................................................
......................................................................................................
..failed updating 1 target...
* ERROR: dev-libs/boost-1.75.0::gentoo failed (compile phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 125: Called src_compile
* environment, line 3327: Called multilib-minimal_src_compile
* environment, line 2042: Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
* environment, line 2312: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
* environment, line 1989: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
* environment, line 1987: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
* environment, line 487: Called multilib-minimal_abi_src_compile-64 ker
* environment, line 2036: Called multilib_src_compile
* environment, line 2524: Called die
* The specific snippet of code:
* ejam "${OPTIONS[@]}" || die; |
I can only assume there is something wrong in my compiler settings. I am using -march=znver1. I have tried also to 'emerge' it using a kernel compiled with a generic -x86 kernel, but that also fails. I am aware that more info may be needed to understand what is going wrong, and will supply it as needed.
Has anyone any ideas? |
|
Back to top |
|
|
tomtom69 Apprentice
Joined: 09 Nov 2010 Posts: 252 Location: Bavaria
|
|
Back to top |
|
|
gcyoung Apprentice
Joined: 04 Jul 2007 Posts: 179 Location: England
|
Posted: Thu Jun 03, 2021 2:46 pm Post subject: |
|
|
Yes! I just checked in Bugzilla and returned here to notify that I had found the bug listed.
I didn't want to go there first, since I wanted to be sure I hadn't done something stupid
in my settings first.
Many thanks anyway for pointing out the bug. |
|
Back to top |
|
|
g2-man n00b
Joined: 03 Jun 2021 Posts: 3
|
Posted: Thu Jun 03, 2021 3:41 pm Post subject: |
|
|
Just to follow up and say I was having same issue. I also have Ryzen CPU, which seems to be common for the problem. Unclear gcyoung as you mention Intel processor as well, but if it is happening on computer with Ryzen CPU, as mentioned in bug 724314 I'd suggest adding vtv to USE flags for sys-devel/gcc, rebuilding gcc and then trying to rebuild boost. That worked for me anyway. I just checked my build logs, and I see I was getting same *** stack smashing detected ***: terminated message. |
|
Back to top |
|
|
gcyoung Apprentice
Joined: 04 Jul 2007 Posts: 179 Location: England
|
Posted: Sat Jun 05, 2021 12:52 pm Post subject: |
|
|
I saw an earlier post on the bugzilla 724314 reports which suggested using vtv,pgo and lto flags in the gcc compilation.
I did this and boost-1.76.0-r1 compiled OK. I give my results on the buzilla reports.
I am using gcc-10.3.0 and kernel-5.12.9-zen1.
It seems the pgo and lto flag may not be necessary, so I might give that a try.
There may be a misunderstanding in relation to the Intel processor. That was with another computer I have, and boost
compiled successfully on that machine, without the extra flag settings. The problem seems to exist only on the
Ryzen proccessor.
..................................................................................................................
Since writing the above I tried compiling without the pgo and iti flags. It didn't work. Seems all three flags are necessary.
I should also mention that I found boost to be a dependency of libreoffice, which will not compile without a functioning boost file installed. |
|
Back to top |
|
|
genterminl Guru
Joined: 12 Feb 2005 Posts: 527 Location: Connecticut, USA
|
Posted: Fri Jun 10, 2022 8:36 pm Post subject: |
|
|
A year later, and I'm consistently getting a very similar stack smashing trying to compile libreoffice-7.3.3.2-r3 with gcc-11.3.0. I'm now compiling gcc with the patch from bug 724314 to see if it helps. (I've posted to that bug a while back, but have not had any problem compiling boost with gcc 11.3.0.) I'll only post build.log and emerge --info if someone thinks they might actually be useful. |
|
Back to top |
|
|
genterminl Guru
Joined: 12 Feb 2005 Posts: 527 Location: Connecticut, USA
|
Posted: Sat Sep 21, 2024 9:03 pm Post subject: |
|
|
Two years more, and I'm having the same problem with libreoffic-24.2.6.2. This seems identical to this report, and both seem to be a case of this bug, where the most likely actual cause is a problem with znver1 CPUs. |
|
Back to top |
|
|
|
|
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
|
|