Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103053 - amarok-1.3 can't find correct endianess on ppc
Summary: amarok-1.3 can't find correct endianess on ppc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: PPC Porters
URL: http://bugs.kde.org/show_bug.cgi?id=1...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-19 05:27 UTC by Lars Weiler (RETIRED)
Modified: 2005-10-13 01:57 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Weiler (RETIRED) gentoo-dev 2005-08-19 05:27:20 UTC
I try to install amarok-1.3 on my Pegasos.  The compilation fails with:

In file included from /usr/include/endian.h:37,
                 from /usr/include/sys/types.h:213,
                 from /usr/include/sys/param.h:42,
                 from ./helix-include/common/include/hxtypes.h:343,
                 from ./helix-include/common/include/hxcom.h:17,
                 from ./helix-include/common/include/hxvalue.h:17,
                 from ./helix-include/common/include/ihxpckts.h:19,
                 from ./helix-include/common/container/hxbuffer.h:17,
                 from hspcontext.cpp:15:
/usr/include/bits/endian.h:27:4: #error Both BIG_ENDIAN and LITTLE_ENDIAN defined!
In file included from /usr/include/endian.h:37,
                 from /usr/include/sys/types.h:213,
                 from /usr/include/sys/param.h:42,
                 from ./helix-include/common/include/hxtypes.h:343,
                 from ./helix-include/common/include/hxcom.h:17,
                 from ./helix-include/common/include/hxengin.h:17,
                 from ./helix-include/common/include/hxcomm.h:17,
                 from hspadvisesink.cpp:16:
/usr/include/bits/endian.h:27:4: #error Both BIG_ENDIAN and LITTLE_ENDIAN defined!
make[6]: *** [hspcontext.lo] Error 1
make[6]: *** Waiting for unfinished jobs....
make[6]: *** [hspadvisesink.lo] Error 1
make[6]: Leaving directory
`/var/tmp/portage/amarok-1.3/work/amarok-1.3/amarok/src/engine/helix/helix-sp'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory
`/var/tmp/portage/amarok-1.3/work/amarok-1.3/amarok/src/engine/helix'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/var/tmp/portage/amarok-1.3/work/amarok-1.3/amarok/src/engine'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/amarok-1.3/work/amarok-1.3/amarok/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/amarok-1.3/work/amarok-1.3/amarok'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/amarok-1.3/work/amarok-1.3'
make: *** [all] Error 2

I rebuilt the complete toolchain, as I used a stage3 before and wanted to make
sure, that this isn't the cause.

ppc is bi-endian.  Usually it's big-endian, but it's just a switch in the
Firmware to set it to little-endian.  Probably glibc is aware of it.

Portage 2.0.51.22-r2 (default-linux/ppc/2005.1/ppc/G4, gcc-3.4.4,
glibc-2.3.4.20041102-r1, 2.6.12-gentoo-r6 ppc)
=================================================================
System uname: 2.6.12-gentoo-r6 ppc 7447/7457, altivec supported
Gentoo Base System version 1.6.13
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.90.0.3-r5
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O3 -mtune=G4 -mcpu=G4 -mabi=altivec -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mtune=G4 -mcpu=G4 -mabi=altivec -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig cvs digest distlocks sandbox sfperms strict userpriv
usersandbox"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync1.de.gentoo.org/gentoo-portage"
USE="ppc X X509 a52 aac aalib alsa altivec apache2 bash-completion berkdb
bitmap-fonts bzip2 cdr crypt cscope cups curl dbus dvd dvdr eds emboss encode
esd exif fam fbcon ffmpeg flac fortran ftp gd gdbm gif gimpprint gnome gpm
gstreamer gtk gtk2 hal howl ieee1394 imagemagick imap imlib ipv6 jabber java
jpeg kde kdeenablefinal kdepim kdexdeltas latex ldap libwww mad maildir mikmod
mime motif mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mpeg4
multislot multitarget ncurses new-login nls nntp nptl nptlonly ogg oggvorbis
on-the-fly-crypt opengl pam pdflib perl png python qt quicktime readline recode
samba sdl slang spell ssl svg tcpd tetex theora threads tiff truetype
truetype-fonts type1-fonts unicode videos vorbis wmf xine xinerama xml2 xosd
xprint xv xvid zeroconf zlib linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Joe Jezak (RETIRED) gentoo-dev 2005-09-28 22:20:38 UTC
I can't reproduce this, can you please check with the latest amarok?
Comment 2 Joe Jezak (RETIRED) gentoo-dev 2005-10-11 11:28:14 UTC
http://bugs.kde.org/show_bug.cgi?id=113429
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-11 12:15:20 UTC
Hrm I think I'll just disable helix/realplayer, as I don't really think anyone 
is going to support them on Gentoo right now (realplayer is binary only, 
helixplayer has its own issues, starting from being unable to build out of 
x86/ppc.. and this one doesn't seem to work so well...). 
 
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-11 12:22:46 UTC
Disabled helix forcefully in ebuild, can anyone test if this is fixed now? 
Comment 5 Lars Weiler (RETIRED) gentoo-dev 2005-10-11 13:25:28 UTC
(In reply to comment #4)
> Disabled helix forcefully in ebuild, can anyone test if this is fixed now? 

I didn't tested your fixed ebuild yet, but I tried to manually compile and
install amarok a couple of weeks ago.  This didn't worked; see the comment in
http://bugs.kde.org/show_bug.cgi?id=113429.  The problem are the configure
scripts, which set helixplayer-capabilities everytime on true.
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-11 13:33:57 UTC
I looked at the configure but seems fixed at least on 1.3.3... can you try 
with this one? 
Comment 7 Lars Weiler (RETIRED) gentoo-dev 2005-10-13 01:57:00 UTC
(In reply to comment #6)
> I looked at the configure but seems fixed at least on 1.3.3... can you try 
> with this one? 

Yep, works! :-)