View previous topic :: View next topic |
Author |
Message |
setan Tux's lil' helper
Joined: 21 Feb 2024 Posts: 86
|
Posted: Sun Jun 30, 2024 7:02 pm Post subject: [SOLVED] libreoffice 24 fails to emerge -- bad LDFLAGS |
|
|
Hello,
Libreoffice 24 was stabilzed recently so I tried to upgrade.
My usual cflags are
CFLAGS="-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
and they had produced an error
"lto-wrapper: fatal error: x86_64-pc-linux-gnu-g++ returned 1 exit status", which is expected.
I have applied my no-lto env to them,like I did with 7.
That failed.
Here's the fail:
Code: |
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
|
and the emerge --info
Code: |
$ emerge --info libreoffice
Portage 3.0.63 (python 3.12.3-final-0, default/linux/amd64/23.0/split-usr/desktop, gcc-13, glibc-2.39-r6, 6.9.7-gentoo-moj x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.9.7-gentoo-moj-x86_64-11th_Gen_Intel-R-_Core-TM-_i5-1135G7_@_2.40GHz-with-glibc2.39
KiB Mem: 16060584 total, 3555992 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Sun, 30 Jun 2024 17:00:00 +0000
Head commit of repository gentoo: 783244b2a2f747d67b95a6e2565f9a521154f79a
Timestamp of repository guru: Sat, 29 Jun 2024 10:04:02 +0000
Head commit of repository guru: 2c9f271b98a83f4a5161d600a225f23c63fdc0d7
Timestamp of repository torbrowser: Fri, 21 Jun 2024 17:04:09 +0000
Head commit of repository torbrowser: 2ba199fbe61ff5cf12b808342defe69b71ae6ef9
sh bash 5.2_p26-r5
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p26-r5::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.28.5::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.4.1::gentoo
dev-java/java-config: 2.3.3-r1::gentoo
dev-lang/perl: 5.38.2-r3::gentoo
dev-lang/python: 3.11.9-r1::gentoo, 3.12.3-r1::gentoo
dev-lang/rust-bin: 1.77.1::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/openrc: 0.54.2::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-devel/binutils: 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 17.0.6::gentoo
sys-devel/gcc: 13.2.1_p20240210::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/lld: 17.0.6::gentoo
sys-devel/llvm: 17.0.6::gentoo
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.39-r6::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 3
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
guru
location: /var/db/repos/guru
sync-type: git
sync-uri: https://github.com/gentoo-mirror/guru.git
masters: gentoo
volatile: False
local
location: /var/db/repos/local
masters: gentoo
volatile: True
torbrowser
location: /var/db/repos/torbrowser
sync-type: git
sync-uri: https://github.com/gentoo-mirror/torbrowser.git
masters: gentoo
volatile: False
Binary Repositories:
gentoobinhost
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64-v3
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf /var/lib/i2pd/certificates"
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="-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --complete-graph=y --jobs=7 --load-average=7.5"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS=" -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS=" -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
GENTOO_MIRRORS="rsync://ftp.vectranet.pl/gentoo/ http://ftp.vectranet.pl/gentoo/ ftp://ftp.vectranet.pl/gentoo/"
LANG="C.utf8"
LDFLAGS=" -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
LEX="flex"
MAKEOPTS="--jobs=8 --load-average=12"
PKGDIR="/var/cache/binpkgs"
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"
SHELL="/bin/bash"
USE="a52 aac acl acpi alsa amd64 bash-completion branding bzip2 cairo cdda cdr cet crypt dbus dist-kernel dri dts dvdr elogind emacs encode exif ffmpeg flac gdbm gif gles2 gnutls gpm gui iconv icu ipv6 jpeg kf6compat lcms libnotify libtirpc lto mad mng modules-sign mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf pgo pipewire png policykit ppds profile pulseaudio qt5 qt6 readline sdl seccomp sndio sound spell split-usr ssl startup-notification svg test-rust tpm truetype udev udisks unicode upower usb vaapi verify-sig vorbis vulkan wayland wifi wxwidgets x264 xattr xcb xft xml xv xvid xwayland zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 aes avx avx2 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vp2intersect avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
=================================================================
Package Settings
=================================================================
app-office/libreoffice-7.6.7.2::gentoo was built with the following:
USE="branding dbus mariadb vulkan -accessibility -base -bluetooth -clang (-coinmp) -cups -custom-cflags -debug -eds (-firebird) -googledrive -gstreamer -gtk -java -kde -ldap -odk -pdfimport -postgres -test -valgrind" ABI_X86="(64)" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11"
CFLAGS="-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto"
CXXFLAGS="-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto"
FEATURES="binpkg-docompress ipc-sandbox xattr merge-sync unmerge-orphans network-sandbox binpkg-dostrip clean-logs config-protect-if-modified usersync pkgdir-index-trusted parallel-fetch distlocks protect-owned sandbox userfetch merge-wait usersandbox ebuild-locks news qa-unresolved-soname-deps assume-digests multilib-strict userpriv binpkg-logs unknown-features-warn preserve-libs buildpkg-live sfperms pid-sandbox binpkg-multi-instance unmerge-logs fixlafiles strict"
LDFLAGS="-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -Wl,--undefined-version"
|
and some of the build log:
Code: |
>>> Verifying ebuild manifests
>>> Running pre-merge checks for app-office/libreoffice-24.2.4.2-r1
* If you plan to use Base application you must enable USE base.
* Without USE java, several wizards are not going to be available.
* Checking for at least 512 MiB RAM ... [ ok ]
* Checking for at least 6 GiB disk space at "/var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/temp" ... [ ok ]
>>> Emerging (1 of 1) app-office/libreoffice-24.2.4.2-r1::gentoo
>>> Failed to emerge app-office/libreoffice-24.2.4.2-r1, Log file:
>>> '/var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed Load avg: 4.10, 3.88, 5.98
* Package: app-office/libreoffice-24.2.4.2-r1:0
* Repository: gentoo
* Maintainer: office@gentoo.org
* USE: abi_x86_64 amd64 branding dbus elibc_glibc kernel_linux mariadb python_single_target_python3_12 vulkan
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
* Using python3.12 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-24.2.4.2-r1/temp" ... [ ok ]
>>> Unpacking source...
>>> Unpacking libreoffice-branding-gentoo-0.8.tar.xz to /var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work
>>> Unpacking libreoffice-24.2.3.2-icu-74.tar.xz to /var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work
>>> Unpacking libreoffice-24.2.4.2.tar.xz to /var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work
>>> Unpacking libreoffice-help-24.2.4.2.tar.xz to /var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work
>>> Unpacking dragonbox-1.1.3.tar.gz to /var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work
>>> Unpacking dtoa-20180411.tgz to /var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work
>>> Unpacking frozen-1.1.1.tar.gz to /var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work
>>> Unpacking skia-m116-2ddcf183eb260f63698aa74d1bb380f247ad7ccd.tar.xz to /var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work
>>> Unpacking zxcvbn-c-2.5.tar.gz to /var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work
>>> Source unpacked in /var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work
>>> Preparing source in /var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2 ...
* Applying libreoffice-5.3.4.2-kioclient5.patch ... [ ok ]
* Applying libreoffice-6.1-nomancompress.patch ... [ ok ]
* Applying libreoffice-24.2-qtdetect.patch ... [ ok ]
* Applying libreoffice-7.6-unused-qt5network.patch ... [ ok ]
* Applying libreoffice-24.2-unused-qt6network.patch ...
patching file configure.ac
Hunk #1 succeeded at 13311 with fuzz 2 (offset -30 lines).
Hunk #2 succeeded at 13491 (offset -30 lines).
Hunk #3 succeeded at 13507 (offset -30 lines). [ ok ]
* Applying libreoffice-24.2.3.2-fix-bashism.patch ... [ ok ]
* Applying libreoffice-24.2.3.2-icu-74.2-reviewed-breakIterator-customizations.patch ... [ ok ]
* Applying libreoffice-24.2.3.2-icu-74.2-breakiterator-updates.patch ... [ ok ]
* Applying libreoffice-24.2.3.2-icu-74-unicode.patch ... [ ok ]
* Running eautoreconf in '/var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2' ...
* Running 'aclocal -I m4 --system-acdir=/var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/temp/aclocal' ... [ ok ]
* Running 'autoconf -I m4 --force' ... [ ok ]
* Running 'autoheader -I m4' ... [ !! ]
* Running elibtoolize in: libreoffice-24.2.4.2/
renamed '/var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work/branding-intro.png' -> 'icon-themes/colibre/brand/intro.png'
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2 ...
* Preset CFLAGS: -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing
* Preset LDFLAGS: -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
* Enforcing the use of gcc due to USE=-clang ...
* strip-flags: CFLAGS: changed ' -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing' to '-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing'
* strip-flags: CXXFLAGS: changed '-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing' to '-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing'
* strip-flags: FFLAGS: changed ' -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing' to '-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing'
* strip-flags: FCFLAGS: changed ' -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing' to '-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing'
* strip-flags: LDFLAGS: changed ' -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wl,--undefined-version' to '-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wl,--undefined-version'
* Used CFLAGS: -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing
* Used LDFLAGS: -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wl,--undefined-version
* econf: updating libreoffice-24.2.4.2/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating libreoffice-24.2.4.2/config.sub with /usr/share/gnuconfig/config.sub
./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 --datarootdir=/usr/share --disable-dependency-tracking --docdir=/usr/share/doc/libreoffice-24.2.4.2-r1 --htmldir=/usr/share/doc/libreoffice-24.2.4.2-r1/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=more --enable-python=system --enable-randr --enable-release-build --disable-atspi-tests --disable-breakpad --disable-bundle-mariadb --disable-ccache --disable-epm --disable-fetch-external --disable-gtk3-kde5 --disable-online-update --disable-openssl --disable-pdfium --disable-qt6 --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-24.2.4.2-r1/distdir --with-lang= --with-parallelism=8 --with-system-openjpeg --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-abseil --without-system-dragonbox --without-system-frozen --without-system-jfreereport --without-system-libfixmath --without-system-sane --without-system-zxcvbn --disable-report-builder --disable-sdremote-bluetooth --disable-coinmp --disable-cups --enable-dbus --disable-debug --disable-evolution2 --disable-firebird-sdbc --disable-gstreamer-1-0 --disable-gtk3 --disable-kf5 --disable-qt5 --disable-ldap --disable-odk --disable-pdfimport --disable-postgresql-sdbc --enable-skia --without-lxml --without-system-coinmp --without-gdrive-client-id --without-gdrive-client-secret --without-java --without-doxygen --without-valgrind --disable-dconf --disable-gio --disable-ext-nlpsolver --disable-scripting-beanshell --disable-scripting-javascript --disable-ext-wiki-publisher
********************************************************************
*
* Running LibreOffice build configuration.
*
********************************************************************
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for product name... LibreOffice
checking for package version... 24.2.4.2
checking for product version... 24.2
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for grep... (cached) /bin/grep
checking for GNU Make... /usr/bin/make
checking for sed... /bin/sed
checking whether to use link-time optimization... no
configure: VCL platform has a usable dynamic loading API: yes
configure: VCL platform uses freetype+fontconfig: yes
configure: VCL platform uses headless plugin: yes
configure: VCL platform uses X11: yes
checking for explicit AFLAGS... no
checking for explicit CFLAGS... -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing
checking for explicit CXXFLAGS... -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing
checking for explicit OBJCFLAGS... no
checking for explicit OBJCXXFLAGS... no
checking for explicit LDFLAGS... -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wl,--undefined-version
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/config.log
* ERROR: app-office/libreoffice-24.2.4.2-r1::gentoo failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 136: Called src_configure
* environment, line 5137: Called econf '--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=more' '--enable-python=system' '--enable-randr' '--enable-release-build' '--disable-atspi-tests' '--disable-breakpad' '--disable-bundle-mariadb' '--disable-ccache' '--disable-epm' '--disable-fetch-external' '--disable-gtk3-kde5' '--disable-online-update' '--disable-openssl' '--disable-pdfium' '--disable-qt6' '--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-24.2.4.2-r1/distdir' '--with-lang=' '--with-parallelism=8' '--with-system-openjpeg' '--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-abseil' '--without-system-dragonbox' '--without-system-frozen' '--without-system-jfreereport' '--without-system-libfixmath' '--without-system-sane' '--without-system-zxcvbn' '--disable-report-builder' '--disable-sdremote-bluetooth' '--disable-coinmp' '--disable-cups' '--enable-dbus' '--disable-debug' '--disable-evolution2' '--disable-firebird-sdbc' '--disable-gstreamer-1-0' '--disable-gtk3' '--disable-kf5' '--disable-qt5' '--disable-ldap' '--disable-odk' '--disable-pdfimport' '--disable-postgresql-sdbc' '--enable-skia' '--without-lxml' '--without-system-coinmp' '--without-gdrive-client-id' '--without-gdrive-client-secret' '--without-java' '--without-doxygen' '--without-valgrind' '--disable-dconf' '--disable-gio' '--disable-ext-nlpsolver' '--disable-scripting-beanshell' '--disable-scripting-javascript' '--disable-ext-wiki-publisher'
* phase-helpers.sh, line 732: Called __helpers_die 'econf failed'
* isolated-functions.sh, line 112: Called die
* The specific snippet of code:
* die "$@"
*
* If you need support, post the output of `emerge --info '=app-office/libreoffice-24.2.4.2-r1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=app-office/libreoffice-24.2.4.2-r1::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 =app-office/libreoffice-24.2.4.2-r1
* The complete build log is located at '/var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/temp/environment'.
* Working directory: '/var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2'
* S: '/var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2'
* Messages for package app-office/libreoffice-24.2.4.2-r1:
* If you plan to use Base application you must enable USE base.
* Without USE java, several wizards are not going to be available.
* Messages for package app-office/libreoffice-24.2.4.2-r1:
* ERROR: app-office/libreoffice-24.2.4.2-r1::gentoo failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 136: Called src_configure
* environment, line 5137: Called econf '--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=more' '--enable-python=system' '--enable-randr' '--enable-release-build' '--disable-atspi-tests' '--disable-breakpad' '--disable-bundle-mariadb' '--disable-ccache' '--disable-epm' '--disable-fetch-external' '--disable-gtk3-kde5' '--disable-online-update' '--disable-openssl' '--disable-pdfium' '--disable-qt6' '--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-24.2.4.2-r1/distdir' '--with-lang=' '--with-parallelism=8' '--with-system-openjpeg' '--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-abseil' '--without-system-dragonbox' '--without-system-frozen' '--without-system-jfreereport' '--without-system-libfixmath' '--without-system-sane' '--without-system-zxcvbn' '--disable-report-builder' '--disable-sdremote-bluetooth' '--disable-coinmp' '--disable-cups' '--enable-dbus' '--disable-debug' '--disable-evolution2' '--disable-firebird-sdbc' '--disable-gstreamer-1-0' '--disable-gtk3' '--disable-kf5' '--disable-qt5' '--disable-ldap' '--disable-odk' '--disable-pdfimport' '--disable-postgresql-sdbc' '--enable-skia' '--without-lxml' '--without-system-coinmp' '--without-gdrive-client-id' '--without-gdrive-client-secret' '--without-java' '--without-doxygen' '--without-valgrind' '--disable-dconf' '--disable-gio' '--disable-ext-nlpsolver' '--disable-scripting-beanshell' '--disable-scripting-javascript' '--disable-ext-wiki-publisher'
* phase-helpers.sh, line 732: Called __helpers_die 'econf failed'
* isolated-functions.sh, line 112: Called die
* The specific snippet of code:
* die "$@"
|
do any of you know why does this happen?
Last edited by setan on Tue Jul 02, 2024 7:02 am; edited 2 times in total |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 3005 Location: Edge of marsh USA
|
Posted: Mon Jul 01, 2024 3:14 am Post subject: |
|
|
I can't specifically solve your problem, but I just did a routine update with app-office/libreoffice-24.2.4.2-r1 and the only thing remarkable was that it took 30 minutes longer than the previous update; 2 hours 28 minutes; CFLAGS="-O2 -march=x86-64 -mtune=sandybridge -pipe" and runs from the shell without any visible errors.
I don't push the optimization or features envelope. eix shows:
Code: | Installed versions: 24.2.4.2-r1^t(05:59:27 PM 06/30/2024)(branding cups dbus gtk mariadb pdfimport -accessibility -base -bluetooth -clang -coinmp -custom-cflags -debug -eds -firebird -googledrive -gstreamer -java -kde -ldap -odk -postgres -test -valgrind -vulkan LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11") |
_________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31257 Location: here
|
Posted: Mon Jul 01, 2024 4:21 am Post subject: |
|
|
Can you post your no-lto env? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
setan Tux's lil' helper
Joined: 21 Feb 2024 Posts: 86
|
Posted: Mon Jul 01, 2024 7:10 am Post subject: |
|
|
fedeliallalinea wrote: | Can you post your no-lto env? |
Here it is:
Code: | $ cat /etc/portage/env/no-lto.conf
# supossed to nullify default make.conf's lto flags:
# "-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
NO_LTO="-fno-lto -Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing"
CFLAGS="${CFLAGS} ${NO_LTO}"
CXXFLAGS="${CXXFLAGS} ${NO_LTO}"
FCFLAGS="${FCFLAGS} ${NO_LTO}"
FFLAGS="${FFLAGS} ${NO_LTO}" |
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31257 Location: here
|
Posted: Mon Jul 01, 2024 8:31 am Post subject: |
|
|
Post also /var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/config.log.
Try to force C/CXXFLAGS only to -march=native -O2 -pipe. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
setan Tux's lil' helper
Joined: 21 Feb 2024 Posts: 86
|
Posted: Mon Jul 01, 2024 8:41 am Post subject: |
|
|
Here's the config.log:
https://pastebin.com/bAjwDRbn
It built fine with the suggested flags.
Last edited by setan on Mon Jul 01, 2024 11:53 am; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31257 Location: here
|
Posted: Mon Jul 01, 2024 8:53 am Post subject: |
|
|
Quote: | configure:7815: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wl,--undefined-version conftest.c >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/temp/ccysqcXw.o: plugin needed to handle lto object
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/temp/ccysqcXw.o: plugin needed to handle lto object
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../lib64/Scrt1.o: in function `_start': |
Something seems wrong. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2398
|
Posted: Mon Jul 01, 2024 9:28 am Post subject: Re: libreoffice 24 fails to emerge |
|
|
setan wrote: |
Quote: |
$ emerge --info libreoffice
...
=================================================================
Package Settings
=================================================================
...
CFLAGS="-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto"
CXXFLAGS="-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto"
...
LDFLAGS="-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -Wl,--undefined-version"
|
|
Do you see it?
Should I point out where your mistake is? Hint: in your no-lto.conf file. In fact, if you say you've done the same for other packages, then you were just lucky and they worked with lto.
Best Regards,
Georgi |
|
Back to top |
|
|
setan Tux's lil' helper
Joined: 21 Feb 2024 Posts: 86
|
Posted: Mon Jul 01, 2024 10:54 am Post subject: |
|
|
I thought that if I put -ftto=8 and -fno-lto that the last one will take priority.
Is that not the case? |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2398
|
Posted: Mon Jul 01, 2024 12:30 pm Post subject: |
|
|
setan wrote: | I thought that if I put -ftto=8 and -fno-lto that the last one will take priority.
Is that not the case? |
I don't know. Check the documentation. What I see is two conflicting switches and the error suggests it's not the way you think it is.
Best Regards,
Georgi |
|
Back to top |
|
|
setan Tux's lil' helper
Joined: 21 Feb 2024 Posts: 86
|
Posted: Mon Jul 01, 2024 3:38 pm Post subject: |
|
|
gcc manpage says:
Quote: | The important thing to keep in mind is that to enable link-time optimizations you need to use the GCC driver to perform the link step.
GCC automatically performs link-time optimization if any of the objects involved were compiled with the -flto command-line option.
You can always override the automatic decision to do link-time optimization by passing -fno-lto to the link command.
|
so I don't know why that happened. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2398
|
Posted: Mon Jul 01, 2024 4:38 pm Post subject: |
|
|
setan wrote: | gcc manpage says:
Quote: | The important thing to keep in mind is that to enable link-time optimizations you need to use the GCC driver to perform the link step.
GCC automatically performs link-time optimization if any of the objects involved were compiled with the -flto command-line option.
You can always override the automatic decision to do link-time optimization by passing -fno-lto to the link command.
|
so I don't know why that happened. |
Me neither. Modify your no-lto.conf and see if the error is gone. If it is, it maybe is time to file a bug for GCC.
Best Regards,
Georgi |
|
Back to top |
|
|
setan Tux's lil' helper
Joined: 21 Feb 2024 Posts: 86
|
Posted: Mon Jul 01, 2024 6:07 pm Post subject: |
|
|
The flags
Code: | CFLAGS=" -march=native -O2 -pipe -flto=8 -fno-lto"
CXXFLAGS="-march=native -O2 -pipe -flto=8 -fno-lto"
FCFLAGS=" -march=native -O2 -pipe -flto=8 -fno-lto"
FFLAGS=" -march=native -O2 -pipe -flto=8 -fno-lto" |
produce
Code: | checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2':
configure: error: C compiler cannot create executables
See `config.log' for more details |
I think that I will ask GCC experienced people if that is a bug
weird thing happens. With my env.conf set to the first listing this happens:
Code: | $ emerge --info libreoffice | grep FLAGS | head -5
CFLAGS=" -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
CXXFLAGS="-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
FCFLAGS=" -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
FFLAGS=" -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
LDFLAGS=" -march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
|
Does the env not apply?
I think it should as emerge --info also says that the current package was built with cflags from clean.conf (-march=native -o2 -pipe) |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2398
|
Posted: Mon Jul 01, 2024 6:15 pm Post subject: |
|
|
Did you try fedeliallalinea's suggestion?
Best Regards,
Georgi |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1948
|
Posted: Mon Jul 01, 2024 6:36 pm Post subject: |
|
|
I was going to say it sounds like the LO ebuild gets confused but we use `tc-is-lto` these days for this reason. Dunno. Anyway, it's not going to be a GCC bug. It looks a bit like CFLAGS gets set correctly but CXXFLAGS doesn't, or something like that (CXXFLAGS set but not LDFLAGS perhaps). |
|
Back to top |
|
|
setan Tux's lil' helper
Joined: 21 Feb 2024 Posts: 86
|
Posted: Mon Jul 01, 2024 8:07 pm Post subject: |
|
|
logrusx wrote: | Did you try fedeliallalinea's suggestion? |
If y mean building with just -march=native -o2 -pipe (clean.conf), then yes -- it built fine.
Code: | =================================================================
Package Settings
=================================================================
app-office/libreoffice-24.2.4.2-r1::gentoo was built with the following:
USE="branding dbus mariadb vulkan -accessibility -base -bluetooth -clang (-coinmp) -cups -custom-cflags -debug -eds (-firebird) -googledrive -gstreamer -gtk -java -kde -ldap -odk -pdfimport -postgres -test -valgrind" ABI_X86="(64)" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="-march=native -O2 -pipe"
...
LDFLAGS="-march=native -O2 -pipe -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wl,--undefined-version"
|
As you can see LDFLAGS are not affected by my package.env., so Sam was right.
I will fix that and let you know if it builds fine
EDIT: with LDFLAGS set it builds fine. |
|
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
|
|