Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522192 - media-libs/libsdl-1.2.15-r4 USE=ps3 - ld: cannot find -lbilin_scaler_spu/-lfb_writer_spu/-lyuv2rgb_spu
Summary: media-libs/libsdl-1.2.15-r4 USE=ps3 - ld: cannot find -lbilin_scaler_spu/-lfb...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: PPC64 Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-05 10:06 UTC by Michael Dec
Modified: 2015-03-31 20:33 UTC (History)
0 users

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


Attachments
build log (libsdl-1.2.15-r4-ps3-build.log,86.64 KB, text/plain)
2014-09-05 10:21 UTC, Michael Dec
Details
fixes SDL spulibs makefile for Gentoo (libsdl-ps3-gentoo.patch,863 bytes, patch)
2014-09-05 11:00 UTC, Michael Dec
Details | Diff
Portage patch (fix-sdl-for-ps3.tar.xz,3.59 KB, application/x-xz)
2014-09-12 12:20 UTC, Michael Dec
Details
successful build log (sdl-with-use-ps3-builds.txt,153.77 KB, text/plain)
2014-09-13 11:34 UTC, Michael Dec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Dec 2014-09-05 10:06:52 UTC
media-libs/libsdl-1.2.15-r4 fails to compile the main shared object file when USEflag "ps3" is turned on

Reproducible: Always

Steps to Reproduce:
1. Install Gentoo on a PS3. It doesn't matter if your userland is 32 or 64bit.
2. emerge =media-libs/libsdl-1.2.15-r4
3. Wait until the very end because the bug occurs when build/.libs/libSDL-1.2.so.0.11.4 is about to be made
Actual Results:  
libsdl-1.2.15-r4 fails to output build/.libs/libSDL-1.2.so.0.11.4 because it is missing 3 libraries.

Expected Results:  
libsdl-1.2.15-r4 should link and compile without errors.

Portage 2.2.8-r1 (default/linux/powerpc/ppc64/13.0/32bit-userland/desktop, gcc-4.8.3, glibc-2.19-r1, 3.15.10-tycho ppc64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.15.10-tycho-ppc64-Cell_Broadband_Engine,_altivec_supported-with-gentoo-2.2
KiB Mem:      216544 total,     54288 free
KiB Swap:    3964064 total,   3959540 free
Timestamp of tree: Mon, 04 Aug 2014 00:45:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=cell -mtune=cell -mabi=altivec -maltivec -mno-spe --param l1-cache-size=64 --param l1-cache-line-size=16 --param l2-cache-size=512"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mcpu=cell -mtune=cell -mabi=altivec -maltivec -mno-spe --param l1-cache-size=64 --param l1-cache-line-size=16 --param l2-cache-size=512"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X a52 aac acl alsa altivec berkdb bluetooth branding bzip2 c++0x cairo cdda cdr cli consolekit cracklib crypt cups custom-cflags cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gcc64 gdbm gif gpm iconv ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppc ppcsha1 ppds ps3 qt3support qt4 razor readline sdl session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis vpx wxwidgets x264 xcb xml xv xvid zlib" ABI_PPC="32" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl_PL en_GB ru_RU zh_CN" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-libs/libsdl-1.2.15-r4 was built with the following:
USE="X alsa custom-cflags joystick opengl ps3 sound video xv -aalib -dga -directfb -fbcon -ggi -libcaca -nas -oss -pulseaudio -static-libs (-svga) -tslib -xinerama|
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-05 10:14:36 UTC
Please attach the entire build log to this bug report.
Comment 2 Michael Dec 2014-09-05 10:21:04 UTC
Created attachment 384226 [details]
build log
Comment 3 Michael Dec 2014-09-05 10:22:11 UTC
The missing libraries are actually contained in libsdl-1.2.15-r4 but they aren't compiled as part of the main "all" target for make. They would fail to compile anyway because we don't have the right toolchain to do so.
From /var/tmp/portage/media-libs/libsdl-1.2.15-r4/work/SDL-1.2.15/src/video/ps3/spulibs/Makefile line 5: SPU_GCC=/usr/bin/spu-gcc
To provide it, crossdev the spu toolchain. This isn't enough though, as it will install as "spu-elf" instead of "spu".
Changing the line to "SPU_GCC=/usr/bin/spu-elf-gcc" will render that Makefile useful once again.
Comment 4 Michael Dec 2014-09-05 11:00:40 UTC
Created attachment 384234 [details, diff]
fixes SDL spulibs makefile for Gentoo
Comment 5 Michael Dec 2014-09-12 12:20:14 UTC
Created attachment 384622 [details]
Portage patch

This patch adds media-libs/sdl-spulibs, which depends on cross-spu-elf/gcc and displays a message how to get it before any compilation takes place.

This patch also includes an updated ebuild of media-libs/libsdl, which depends on the aforementioned package if the ps3 USE is enabled.
Comment 6 Michael Dec 2014-09-12 12:23:59 UTC
Extract the Portage patch in /usr. After that, libsdl will compile when cross-spu-elf/gcc is present.
Comment 7 Julian Ospald 2014-09-12 13:20:40 UTC
I don't see how this bug is "fixed", but since 1.2.15-r8 doesn't have ps3 USE flag anyway, it's probably WONTFIX/OBSOLETE.
Comment 8 Michael Dec 2014-09-13 11:34:57 UTC
Created attachment 384668 [details]
successful build log

I consider the bug fixed because libsdl-1.2.15 with USE ps3 builds correctly with the new package and imposed dependency on it. Here's the emerge log for both packages.
Comment 9 Julian Ospald 2014-09-13 12:00:41 UTC
(In reply to Michael Dec from comment #8)
> Created attachment 384668 [details]
> successful build log
> 
> I consider the bug fixed because libsdl-1.2.15 with USE ps3 builds correctly
> with the new package and imposed dependency on it.

None of it is in portage, so it's hardly fixed.
Comment 10 Mr. Bones. (RETIRED) gentoo-dev 2015-03-31 20:33:11 UTC
dropped support for ps3 flag in later versions.