Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634572 - dev-libs/weston-3.0.0: error: undefined reference to '__start_test_section'
Summary: dev-libs/weston-3.0.0: error: undefined reference to '__start_test_section'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: James Le Cuirot
URL: https://cgit.freedesktop.org/wayland/...
Whiteboard:
Keywords:
Depends on: 711820
Blocks:
  Show dependency tree
 
Reported: 2017-10-17 20:30 UTC by Quentin Minster
Modified: 2020-03-08 17:22 UTC (History)
1 user (show)

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


Attachments
weston-3.0.0-lto-fix-sections.patch (file_634572.txt,1.28 KB, text/plain)
2017-10-17 20:30 UTC, Quentin Minster
Details
build.log (build.log,248.23 KB, text/x-log)
2017-10-17 20:32 UTC, Quentin Minster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Quentin Minster 2017-10-17 20:30:47 UTC
Created attachment 499022 [details]
weston-3.0.0-lto-fix-sections.patch

When building Weston with -flto, the build fails with the following error:

  tests/weston-test-runner.c:87: error: undefined reference to '__start_test_section'
  tests/weston-test-runner.c:87: error: undefined reference to '__stop_test_section'
  tests/weston-test-runner.c:202: error: undefined reference to '__start_test_section'
  tests/weston-test-runner.c:202: error: undefined reference to '__stop_test_section'
  tests/weston-test-runner.c:58: error: undefined reference to '__start_test_section'
  tests/weston-test-runner.c:58: error: undefined reference to '__stop_test_section'
  collect2: error: ld returned 1 exit status
  make[1]: *** [Makefile:4162: vertex-clip.test] Error 1

This has been reported upstream, with a suggested fix: https://bugs.freedesktop.org/show_bug.cgi?id=94602

The attached patch fixes the build for =dev-libs/weston-3.0.0.
Comment 1 Quentin Minster 2017-10-17 20:32:47 UTC
Created attachment 499024 [details]
build.log
Comment 2 Quentin Minster 2017-10-17 20:34:35 UTC
My `emerge --info`:

Portage 2.3.11 (python 3.5.4-final-0, hardened/linux/amd64/no-multilib, gcc-7.2.0, glibc-2.26-r2, 4.9.24-hardened x86_64)
=================================================================
System uname: Linux-4.9.24-hardened-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem:    16307456 total,   4854912 free
KiB Swap:   17825788 total,  14791260 free
Head commit of repository pentoo: 4841d1531ddbbec083dab745d8079eede6311b69

Timestamp of repository gentoo: Sun, 15 Oct 2017 01:44:12 +0000
Head commit of repository gentoo: 398af555dcdbfc6930b9f18135aa556e3e6f73af

Head commit of repository science: 9185fe6eceba00773c1bff591c322dec33a8e9de

Head commit of repository ago: cb315985f3f8b7ad3f795f07d5ffb60ec7a4e644

Head commit of repository laomaiweng-overlay: 05980eca3e8aa7f00c5a38b2c4ab25ee6c2e039a

Head commit of repository rust: 426d8542b74eb5b124538dd6b59dfb9511dc29f0

Head commit of repository sage-on-gentoo: d5c60e936acc4e42a088f19c9b9f91aa7b1650ac

sh bash 4.4_p12
ld GNU gold (Gentoo 2.28.1 p1.0 2.28.1) 1.14
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1::gentoo
dev-lang/python:          2.7.14-r100::sage-on-gentoo, 3.5.4::gentoo, 3.6.3::gentoo
dev-util/cmake:           3.9.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.33::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo, 2.29::gentoo, 2.29.1::gentoo
sys-devel/gcc:            6.4.0::gentoo, 7.2.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r2::gentoo
Repositories:

pentoo
    location: /var/lib/overlays/pentoo
    sync-type: git
    sync-uri: https://github.com/pentoo/pentoo-overlay
    masters: gentoo
    priority: -1001

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

science
    location: /var/lib/overlays/science
    sync-type: git
    sync-uri: https://github.com/gentoo-science/sci
    masters: gentoo
    priority: -1000

ago
    location: /var/lib/overlays/ago
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/dev/ago.git
    masters: gentoo

laomaiweng-overlay
    location: /var/lib/overlays/laomaiweng-overlay
    sync-type: git
    sync-uri: file:///home/quentin/Code/Quentin/laomaiweng-overlay
    masters: gentoo

rust
    location: /var/lib/overlays/rust
    sync-type: git
    sync-uri: https://github.com/gentoo/gentoo-rust
    masters: gentoo

sage-on-gentoo
    location: /var/lib/overlays/sage-on-gentoo
    sync-type: git
    sync-uri: https://github.com/cschwan/sage-on-gentoo
    masters: gentoo science

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx-i -O2 -ftree-vectorize -pipe -flto=8 -fuse-linker-plugin -floop-nest-optimize -fgraphite-identity "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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="-march=core-avx-i -O2 -ftree-vectorize -pipe -flto=8 -fuse-linker-plugin -floop-nest-optimize -fgraphite-identity  "
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask-enter-invalid"
FCFLAGS="-march=core-avx-i -O2 -ftree-vectorize -pipe -flto=8 -fuse-linker-plugin -floop-nest-optimize -fgraphite-identity "
FEATURES="assume-digests binpkg-logs cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=core-avx-i -O2 -ftree-vectorize -pipe -flto=8 -fuse-linker-plugin -floop-nest-optimize -fgraphite-identity "
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/ http://gentoo.modulix.net/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed -march=core-avx-i -O2 -ftree-vectorize -pipe -flto=8 -fuse-linker-plugin -floop-nest-optimize -fgraphite-identity "
MAKEOPTS="-j8 -l9"
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 acl acpi aes alsa amd64 avx bash-completion berkdb branding bzip2 cairo caps cli cracklib crypt cscope cxx dbus dri egl exif ffmpeg filecaps flac fontconfig gdbm gif git gmp gpm graphviz gsl gtk3 hardened iconv icu idn imagemagick inotify ipv6 jpeg justify lcms libcaca libnotify lm_sensors lzma maildir matroska mmx mmxext modules mp3 ncurses nls nptl ogg opengl openmp pam pax_kernel pcre pdf pie png policykit popcnt posix qt5 readline seccomp session smp sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 svg taglib threads truetype udev unicode urandom usb vaapi vdpau vim-syntax vorbis wayland x264 xattr xcb xcomposite xinerama xscreensaver xtpax xv 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="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev joystick keyboard libinput mouse wacom" KERNEL="linux" L10N="en en-US fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-minimizer" LINGUAS="en en_US fr fr_FR" LLVM_TARGETS="X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-1" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 python3_6" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby23 ruby24" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nouveau intel i965" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Jonas Stein gentoo-dev 2017-10-18 21:01:34 UTC
confirmed upstream (id=94602)
Comment 4 Matt Turner gentoo-dev 2018-05-27 23:43:14 UTC
A patch has gone upstream to fix this in 4.0.0.
Comment 5 Larry the Git Cow gentoo-dev 2018-11-16 23:05:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64a36e616a2c524af2375f75dbee9b952fe2030a

commit 64a36e616a2c524af2375f75dbee9b952fe2030a
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2018-11-16 23:01:44 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2018-11-16 23:04:51 +0000

    dev-libs/weston: Version bump to 5.0.0
    
    Bug: https://bugs.gentoo.org/634572
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 dev-libs/weston/Manifest            |   1 +
 dev-libs/weston/weston-5.0.0.ebuild | 150 ++++++++++++++++++++++++++++++++++++
 2 files changed, 151 insertions(+)