Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200866 - aften-0.0.8 fails to compile on ppc
Summary: aften-0.0.8 fails to compile on ppc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-30 20:24 UTC by nixnut (RETIRED)
Modified: 2008-01-06 01:36 UTC (History)
3 users (show)

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


Attachments
try to be a fix (aftenppc.patch,348 bytes, patch)
2007-12-02 14:04 UTC, Alexis Ballier
Details | Diff
build log (media-libs:aften-0.0.8:20071202-165941.log,61.58 KB, text/plain)
2007-12-02 17:06 UTC, nixnut (RETIRED)
Details
second patch (altivec.patch,3.22 KB, patch)
2007-12-02 17:15 UTC, Alexis Ballier
Details | Diff
Fix compile issue (aften.patch,357 bytes, patch)
2007-12-23 17:15 UTC, Joe Jezak (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nixnut (RETIRED) gentoo-dev 2007-11-30 20:24:11 UTC
[ 60%] Building C object CMakeFiles/aften_static.dir/libaften/ppc/ppc_cpu_caps.o
In file included from /var/tmp/portage/media-libs/aften-0.0.8/work/aften-0.0.8/libaften/cpu_caps.h:26,
                 from /var/tmp/portage/media-libs/aften-0.0.8/work/aften-0.0.8/libaften/ppc/ppc_cpu_caps.c:21:
/var/tmp/portage/media-libs/aften-0.0.8/work/aften-0.0.8/libaften/ppc/ppc_cpu_caps.h:29: error: expected ‘)’ before ‘*’ token
[ 62%] Building C object CMakeFiles/aften.dir/libaften/ppc/ppc_cpu_caps.o
/var/tmp/portage/media-libs/aften-0.0.8/work/aften-0.0.8/libaften/ppc/ppc_cpu_caps.c: In function ‘sig_ill_handler’:
/var/tmp/portage/media-libs/aften-0.0.8/work/aften-0.0.8/libaften/ppc/ppc_cpu_caps.c:37: warning: unused parameter ‘sig’
/var/tmp/portage/media-libs/aften-0.0.8/work/aften-0.0.8/libaften/ppc/ppc_cpu_caps.c: In function ‘cpu_caps_detect’:
/var/tmp/portage/media-libs/aften-0.0.8/work/aften-0.0.8/libaften/ppc/ppc_cpu_caps.c:62: warning: unused variable ‘oldhandler’
/var/tmp/portage/media-libs/aften-0.0.8/work/aften-0.0.8/libaften/ppc/ppc_cpu_caps.c: At top level:
/var/tmp/portage/media-libs/aften-0.0.8/work/aften-0.0.8/libaften/ppc/ppc_cpu_caps.c:95: error: expected ‘)’ before ‘*’ token
make[2]: *** [CMakeFiles/aften_static.dir/libaften/ppc/ppc_cpu_caps.o] Error 1
make[1]: *** [CMakeFiles/aften_static.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
etc...

Happens both on ppc system and ~ppc chroot.

emerge --info:

Portage 2.1.4_rc4 (default-linux/ppc/ppc32/2007.0/G4, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-hardened-r2 ppc)
=================================================================
System uname: 2.6.23-hardened-r2 ppc 7447A, altivec supported
Timestamp of tree: Fri, 30 Nov 2007 16:30:08 +0000
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc6
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -Wstrict-aliasing -pipe -msecure-plt"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -Wstrict-aliasing -pipe -msecure-plt"
DISTDIR="/var/tmp/portage/distfiles"
FEATURES="cvs distlocks loadpolicy metadata-transfer parallel-fetch sandbox selinux sesandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa altivec berkdb bitmap-fonts cairo cli cracklib crypt cups divx4linux dlloader dri dvd dvdread flac fortran gdbm gif gpm hardened iconv ipv6 isdnlog jpeg midi mp3 mpeg mudflap ncurses network nls nptl nptlonly ogg opengl openmp pcre perl pic png ppc pppd python readline reflection selinux session spl ssl tcpd theora truetype truetype-fonts type1-fonts unicode userlocales vorbis xine xorg xv xvid zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2007-12-01 08:06:57 UTC
default-linux/ppc/package.use.mask, hardened/ppc/package.use.mask:

# Samuli Suominen <drac@gentoo.org> (30 Nov 2007)
# media-libs/aften broken, and not keyworded.
media-video/avidemux aften

req. dep of media-video/avidemux-2.4_pre3, now in tree.
Comment 2 Alexis Ballier gentoo-dev 2007-12-02 14:04:22 UTC
Created attachment 137534 [details, diff]
try to be a fix

could you please try with this patch ?
Comment 3 nixnut (RETIRED) gentoo-dev 2007-12-02 17:06:52 UTC
Created attachment 137550 [details]
build log

Not there yet. See attached log
Comment 4 Alexis Ballier gentoo-dev 2007-12-02 17:15:39 UTC
Created attachment 137552 [details, diff]
second patch

and adding this one ?

those patches are the two changes in libaften/ppc in upstream svn; in case it works, feel free to apply them unconditionally in aften ebuild when keywording
Comment 5 Joe Jezak (RETIRED) gentoo-dev 2007-12-23 17:15:21 UTC
Created attachment 139193 [details, diff]
Fix compile issue

The above patches do not fix the problem, but this one seems to do the trick.  Not sure if it's acceptable for upstream, but it should produce the proper code.
Comment 6 Alexis Ballier gentoo-dev 2008-01-04 11:45:33 UTC
(In reply to comment #5)
> Created an attachment (id=139193) [edit]
> Fix compile issue
> 
> The above patches do not fix the problem, but this one seems to do the trick. 
> Not sure if it's acceptable for upstream, but it should produce the proper
> code.

Dont wait for me to apply it if you need it; as long as it modifies only ppc related code, just do it ;) but please make sure a proper fix is applied upstream. As I'm not a ppc guru and cannot test this, I cant help much there, sorry :/
Comment 7 Joe Jezak (RETIRED) gentoo-dev 2008-01-06 01:36:16 UTC
Marked ~ppc, added patch and removed use mask.  I'll push the change upstream and see what they say.