Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71867 - mjpegtools-1.6.3-r2 won't build
Summary: mjpegtools-1.6.3-r2 won't build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on: 66927
Blocks:
  Show dependency tree
 
Reported: 2004-11-20 10:45 UTC by Marc Hildebrand (RETIRED)
Modified: 2005-03-15 12:16 UTC (History)
1 user (show)

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


Attachments
2 commands to run just after the sources were expanded during the emerge mjegtools (astuce_mjpegtools,347 bytes, text/plain)
2005-03-14 09:20 UTC, Francois B.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Hildebrand (RETIRED) gentoo-dev 2004-11-20 10:45:40 UTC
Hi!
I tried to emerge media-video/mjpegtools-1.6.2-r3
This is the error message:
-------------------------------------------------------------------------------
 powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../utils -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fomit-frame-pointer -fno-strict-aliasing -funroll-loops -pipe -DHAVE_ALTIVEC_H=1 -maltivec -mabi=altivec -MT fdct_idct.lo -MD -MP -MF .deps/fdct_idct.Tpo -c fdct_idct.c  -fPIC -DPIC -o .libs/fdct_idct.o
fdct_idct.c:180: error: initializer element is not constant
fdct_idct.c:180: error: (near initialization for `PostScale[0]')
fdct_idct.c:181: error: initializer element is not constant
fdct_idct.c:181: error: (near initialization for `PostScale[1]')
fdct_idct.c:182: error: initializer element is not constant
fdct_idct.c:182: error: (near initialization for `PostScale[2]')
fdct_idct.c:183: error: initializer element is not constant
fdct_idct.c:183: error: (near initialization for `PostScale[3]')
fdct_idct.c:184: error: initializer element is not constant
fdct_idct.c:184: error: (near initialization for `PostScale[4]')
fdct_idct.c:185: error: initializer element is not constant
fdct_idct.c:185: error: (near initialization for `PostScale[5]')
fdct_idct.c:186: error: initializer element is not constant
fdct_idct.c:186: error: (near initialization for `PostScale[6]')
fdct_idct.c:188: error: initializer element is not constant
fdct_idct.c:188: error: (near initialization for `PostScale[7]')
fdct_idct.c:367: error: initializer element is not constant
fdct_idct.c:367: error: (near initialization for `PreScale[0]')
fdct_idct.c:368: error: initializer element is not constant
fdct_idct.c:368: error: (near initialization for `PreScale[1]')
fdct_idct.c:369: error: initializer element is not constant
fdct_idct.c:369: error: (near initialization for `PreScale[2]')
fdct_idct.c:370: error: initializer element is not constant
fdct_idct.c:370: error: (near initialization for `PreScale[3]')
fdct_idct.c:371: error: initializer element is not constant
fdct_idct.c:371: error: (near initialization for `PreScale[4]')
fdct_idct.c:372: error: initializer element is not constant
fdct_idct.c:372: error: (near initialization for `PreScale[5]')
fdct_idct.c:373: error: initializer element is not constant
fdct_idct.c:373: error: (near initialization for `PreScale[6]')
fdct_idct.c:375: error: initializer element is not constant
fdct_idct.c:375: error: (near initialization for `PreScale[7]')
make[3]: *** [fdct_idct.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2/utils/altivec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2/utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2'
make: *** [all] Error 2
----------------------------------------------------------------------------

emerge info:
Portage 2.0.51-r3 (default-linux/ppc/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-pegasos-r2 ppc)
=================================================================
System uname: 2.6.9-pegasos-r2 ppc 7447/7457, altivec supported
Gentoo Base System version 1.6.6
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.3-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fomit-frame-pointer -fno-strict-aliasing -funroll-loops -pipe"
CHOST="powerpc-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fomit-frame-pointer -fno-strict-aliasing -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib alsa altivec artswrappersuid audiofile berkdb bzlib cairo caps cddb cdparanoia cdr clanVoice codecs curl dga dmx dri dts dv dvd dvdr dvdread encode esd ethereal f77 faac faad fam fbcon fbdev ffmpeg fftw flac flash fluidsynth fortran freetype gd gdbm geoip ggi gif glx gphoto2 gps gtk gtk2 hyriand imagemagick imap imlib imlib2 insecure-drivers jack java jbig jce jikes jit jpeg kde ladcca libcaca libsamplerate linguas_de live lzo mad maildir matroska mmap mng moznocompose moznoirc mp3 mpeg ncurses nls no_wxgtk1 nothemes nptl objc oggvorbis ooo-kde openal opengl oss pam pcmcia pcre pda perl pic png pnp portaudio posix ppc ppds psyco pthreads python qemu-fast qt quicktime readline recode rtc samba sasl scanner sdl sheep skey slang sndfile snmp sockets softmmu soundtouch speex sqlite ssl svg theora tiff transcode truetype truetype-fonts trusted usb userlocales v4l v4l2 wifi wmf wxwindows xchattext xgetdefault xine xml2 xosd xprint xrandr xv xvid yv12 zlib"

Of course, I tried to strip down my CFLAGS, but nothing helped so far.

Any clues?

Cheers,

Marc.
Comment 1 Luca Barbato gentoo-dev 2004-11-20 10:49:21 UTC
more interesting errors on my box

aclocal: configure.in: 380: macro `AM_PATH_SDL' not found in library
autoreconf-2.59: aclocal failed with exit status: 1
Comment 2 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2004-11-20 12:20:21 UTC
The problem is known and bug 66927 is there for it. Sorry, I've been a bit lazy in the last weeks. I'll try to fix 66927 as soon as possible.
Comment 3 Luca Barbato gentoo-dev 2004-11-20 13:11:14 UTC
the problem early reported looks like due gcc-3.4.3 seems that we could just workaround it
Comment 4 Luca Barbato gentoo-dev 2004-11-20 14:18:12 UTC
Upstream bug filed http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18583
That is a transient issue introduced between gcc-3.4.2 and gcc-3.4.3.
Once gcc-3.4.2 is phased out we could just remove the const attributes.
Comment 5 Toby Gnutzmann 2004-11-25 10:51:24 UTC
same is true for mjpegtools-1.6.3-r3 on AMD64

* Applying mjpegtools-1.6.2-gcc34-altivec.patch ... [ ok ]gtk 
amd64 
aclocal: configure.in: 380: macro `AM_PATH_SDL' not found in library 
autoreconf-2.59: aclocal failed with exit status: 1 

!!! ERROR: media-video/mjpegtools-1.6.2-r3 failed. 
Comment 6 Jannick Kuhr 2005-01-11 03:47:29 UTC
Emerging media-libs/libsdl-1.2.7-r3 solves this issue for me. Probably media-libs/libsdl-1.2.7-r3 should be a dependency of mjpegtools...
Comment 7 Luca Barbato gentoo-dev 2005-01-11 04:08:39 UTC
I'll update the dep then
Comment 8 Neil McKenzie 2005-02-12 21:15:33 UTC
This ebuild also needs:

'libtoolize --copy --force'

in the src_unpack() before the 'autoreconf || die'
otherwise the configure fails on ~ppc with this:

  *** Gentoo sanity check failed! ***
  *** libtool.m4 and ltmain.sh have a version mismatch! ***
  *** (libtool.m4 = 1.5.10, ltmain.sh = 1.5) ***

is this a new bug? (this ebuild fails in compile anyway)
Comment 9 Francois B. 2005-03-14 09:20:15 UTC
Created attachment 53434 [details]
2 commands to run just after the sources were expanded during the emerge mjegtools
Comment 10 Luca Barbato gentoo-dev 2005-03-15 12:16:45 UTC
I added a workaround for that gcc issue (reported upstream already)

tell me if is working ok for you