Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689564 - media-libs/openal-1.19.1 fails to build, linking with SDL2
Summary: media-libs/openal-1.19.1 fails to build, linking with SDL2
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-09 18:58 UTC by Christian Loosli
Modified: 2019-07-10 17:53 UTC (History)
1 user (show)

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


Attachments
log of the failed build (build.log,101.12 KB, text/x-log)
2019-07-09 18:58 UTC, Christian Loosli
Details
log of the failed build with LC_ALL=C (build.log,100.61 KB, text/x-log)
2019-07-10 17:53 UTC, Christian Loosli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Loosli 2019-07-09 18:58:14 UTC
Created attachment 582336 [details]
log of the failed build

Hi all, 

I recently switched my profile over to 17.1. Rebuilding stuff worked, after some quirks, except for openal which always fails during linking. 


Snippet that fails (Full log attached):


[ 92%] Building C object CMakeFiles/OpenAL.dir/Alc/backends/sdl2.c.o
/usr/bin/x86_64-pc-linux-gnu-gcc -m32 -DAL_ALEXT_PROTOTYPES -DAL_BUILD_LIBRARY -DHAVE_STRUCT_TIMESPEC -DOpenAL_EXPORTS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -I/var/tmp/portage/media-libs/openal-1.19.1/work/openal-soft-1.19.1/include -I/var/tmp/portage/media-libs/openal-1.19.1/work/openal-soft-1.19.1/common -I/var/tmp/portage/media-libs/openal-1.19.1/work/openal-soft-1.19.1-abi_x86_32.x86 -I/var/tmp/portage/media-libs/openal-1.19.1/work/openal-soft-1.19.1/OpenAL32/Include -I/var/tmp/portage/media-libs/openal-1.19.1/work/openal-soft-1.19.1/Alc -I/usr/include/SDL2   -DNDEBUG -fno-gnu89-inline -std=c11 -march=corei7-avx -O2 -pipe -fPIC   -Winline -Wall -Wextra -fno-math-errno -fvisibility=hidden -msse2 -mfpmath=sse -pthread -o CMakeFiles/OpenAL.dir/Alc/backends/sdl2.c.o -c /var/tmp/portage/media-libs/openal-1.19.1/work/openal-soft-1.19.1/Alc/backends/sdl2.c
[ 94%] Building C object CMakeFiles/OpenAL.dir/Alc/backends/wave.c.o
/usr/bin/x86_64-pc-linux-gnu-gcc -m32 -DAL_ALEXT_PROTOTYPES -DAL_BUILD_LIBRARY -DHAVE_STRUCT_TIMESPEC -DOpenAL_EXPORTS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -I/var/tmp/portage/media-libs/openal-1.19.1/work/openal-soft-1.19.1/include -I/var/tmp/portage/media-libs/openal-1.19.1/work/openal-soft-1.19.1/common -I/var/tmp/portage/media-libs/openal-1.19.1/work/openal-soft-1.19.1-abi_x86_32.x86 -I/var/tmp/portage/media-libs/openal-1.19.1/work/openal-soft-1.19.1/OpenAL32/Include -I/var/tmp/portage/media-libs/openal-1.19.1/work/openal-soft-1.19.1/Alc -I/usr/include/SDL2   -DNDEBUG -fno-gnu89-inline -std=c11 -march=corei7-avx -O2 -pipe -fPIC   -Winline -Wall -Wextra -fno-math-errno -fvisibility=hidden -msse2 -mfpmath=sse -pthread -o CMakeFiles/OpenAL.dir/Alc/backends/wave.c.o -c /var/tmp/portage/media-libs/openal-1.19.1/work/openal-soft-1.19.1/Alc/backends/wave.c
[ 95%] Linking C shared library libopenal.so
/usr/bin/cmake -E cmake_link_script CMakeFiles/OpenAL.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-gcc -m32 -fPIC -fno-gnu89-inline -std=c11 -march=corei7-avx -O2 -pipe -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname,libopenal.so.1 -o libopenal.so.1.19.1 CMakeFiles/OpenAL.dir/OpenAL32/alAuxEffectSlot.c.o CMakeFiles/OpenAL.dir/OpenAL32/alBuffer.c.o CMakeFiles/OpenAL.dir/OpenAL32/alEffect.c.o CMakeFiles/OpenAL.dir/OpenAL32/alError.c.o CMakeFiles/OpenAL.dir/OpenAL32/alExtension.c.o CMakeFiles/OpenAL.dir/OpenAL32/alFilter.c.o CMakeFiles/OpenAL.dir/OpenAL32/alListener.c.o CMakeFiles/OpenAL.dir/OpenAL32/alSource.c.o CMakeFiles/OpenAL.dir/OpenAL32/alState.c.o CMakeFiles/OpenAL.dir/OpenAL32/event.c.o CMakeFiles/OpenAL.dir/OpenAL32/sample_cvt.c.o CMakeFiles/OpenAL.dir/Alc/ALc.c.o CMakeFiles/OpenAL.dir/Alc/ALu.c.o CMakeFiles/OpenAL.dir/Alc/alconfig.c.o CMakeFiles/OpenAL.dir/Alc/bs2b.c.o CMakeFiles/OpenAL.dir/Alc/converter.c.o CMakeFiles/OpenAL.dir/Alc/mastering.c.o CMakeFiles/OpenAL.dir/Alc/ringbuffer.c.o CMakeFiles/OpenAL.dir/Alc/effects/autowah.c.o CMakeFiles/OpenAL.dir/Alc/effects/chorus.c.o CMakeFiles/OpenAL.dir/Alc/effects/compressor.c.o CMakeFiles/OpenAL.dir/Alc/effects/dedicated.c.o CMakeFiles/OpenAL.dir/Alc/effects/distortion.c.o CMakeFiles/OpenAL.dir/Alc/effects/echo.c.o CMakeFiles/OpenAL.dir/Alc/effects/equalizer.c.o CMakeFiles/OpenAL.dir/Alc/effects/fshifter.c.o CMakeFiles/OpenAL.dir/Alc/effects/modulator.c.o CMakeFiles/OpenAL.dir/Alc/effects/null.c.o CMakeFiles/OpenAL.dir/Alc/effects/pshifter.c.o CMakeFiles/OpenAL.dir/Alc/effects/reverb.c.o CMakeFiles/OpenAL.dir/Alc/filters/filter.c.o CMakeFiles/OpenAL.dir/Alc/filters/nfc.c.o CMakeFiles/OpenAL.dir/Alc/filters/splitter.c.o CMakeFiles/OpenAL.dir/Alc/helpers.c.o CMakeFiles/OpenAL.dir/Alc/hrtf.c.o CMakeFiles/OpenAL.dir/Alc/uhjfilter.c.o CMakeFiles/OpenAL.dir/Alc/ambdec.c.o CMakeFiles/OpenAL.dir/Alc/bformatdec.c.o CMakeFiles/OpenAL.dir/Alc/panning.c.o CMakeFiles/OpenAL.dir/Alc/mixvoice.c.o CMakeFiles/OpenAL.dir/Alc/mixer/mixer_c.c.o CMakeFiles/OpenAL.dir/Alc/mixer/mixer_sse.c.o CMakeFiles/OpenAL.dir/Alc/mixer/mixer_sse2.c.o CMakeFiles/OpenAL.dir/Alc/mixer/mixer_sse3.c.o CMakeFiles/OpenAL.dir/Alc/mixer/mixer_sse41.c.o CMakeFiles/OpenAL.dir/Alc/backends/base.c.o CMakeFiles/OpenAL.dir/Alc/backends/loopback.c.o CMakeFiles/OpenAL.dir/Alc/backends/null.c.o CMakeFiles/OpenAL.dir/Alc/backends/alsa.c.o CMakeFiles/OpenAL.dir/Alc/backends/oss.c.o CMakeFiles/OpenAL.dir/Alc/backends/portaudio.c.o CMakeFiles/OpenAL.dir/Alc/backends/pulseaudio.c.o CMakeFiles/OpenAL.dir/Alc/backends/sdl2.c.o CMakeFiles/OpenAL.dir/Alc/backends/wave.c.o -pthread libcommon.a -Wl,-Bstatic -lSDL2main -Wl,-Bdynamic -lSDL2 -lrt -lpthread -ldl -latomic -lm 
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lSDL2main
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [CMakeFiles/OpenAL.dir/build.make:894: libopenal.so.1.19.1] Fehler 1
make[2]: Verzeichnis „/var/tmp/portage/media-libs/openal-1.19.1/work/openal-soft-1.19.1-abi_x86_32.x86“ wird verlassen
make[1]: *** [CMakeFiles/Makefile2:143: CMakeFiles/OpenAL.dir/all] Fehler 2
make[1]: Verzeichnis „/var/tmp/portage/media-libs/openal-1.19.1/work/openal-soft-1.19.1-abi_x86_32.x86“ wird verlassen
make: *** [Makefile:130: all] Fehler 2
 * ERROR: media-libs/openal-1.19.1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-libs/openal-1.19.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/openal-1.19.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/openal-1.19.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/openal-1.19.1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/openal-1.19.1/work/openal-soft-1.19.1-abi_x86_32.x86'
 * S: '/var/tmp/portage/media-libs/openal-1.19.1/work/openal-soft-1.19.1'


--------------

emerge --info 

Portage 2.3.68 (python 2.7.16-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-8.3.0, glibc-2.29-r2, 5.0.7-gentoo x86_64)
=================================================================
System uname: Linux-5.0.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-3520M_CPU_@_2.90GHz-with-gentoo-2.6
KiB Mem:    12034692 total,   6379396 free
KiB Swap:   17825788 total,  17825788 free
Timestamp of repository gentoo: Tue, 02 Jul 2019 17:45:01 +0000
Head commit of repository gentoo: c49669e635143d33086ffb14e456f0327c174a4f
sh bash 5.0_p7
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p7::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.8::gentoo, 3.7.3::gentoo
dev-util/cmake:           3.14.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.17::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo, 9.1.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage/
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

localportage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

abendbrot
    location: /var/lib/layman/abendbrot
    masters: gentoo
    priority: 50

java
    location: /var/lib/layman/java
    masters: gentoo
    priority: 50

jorgicio
    location: /var/lib/layman/jorgicio
    masters: gentoo
    priority: 50

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 50

qt
    location: /var/lib/layman/qt
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

Installed sets: @kde-frameworks
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7-avx -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --autounmask-write"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://ftp.fau.de/gentoo https://mirror.netcologne.de/gentoo/ https://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="de_CH.UTF-8"
LC_ALL="de_CH.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j3"
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"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth bluray branding bzip2 cairo cdda cdr cli crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg flac fortran gdbm gif glamor gpm gtk iconv ipv6 joystick jpeg kde kipi kwallet lcms ldap libnotify libtirpc mad mmx mng modemmanager mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop spell sse sse2 sse3 ssl ssse3 startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb v4l vdpau vorbis widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" 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="braindump flow karbon krita sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" 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 mouse evdev joystick synaptics" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="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, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


If you need more info, let me know. I tried rebuilding SDL2 related packages beforehand. 

Thanks in advance and kind regards, 

Fuchs
Comment 1 Jonas Stein gentoo-dev 2019-07-09 22:03:05 UTC
Please generate logs with LANG=C
Your log is partially translated to German.

https://wiki.gentoo.org/wiki/Bugzilla/Guide#Set_locale_to_C_or_English
Comment 2 Christian Loosli 2019-07-10 17:53:49 UTC
Created attachment 582384 [details]
log of the failed build with LC_ALL=C

Re-uploaded build log in all English.