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.
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
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.
the problem early reported looks like due gcc-3.4.3 seems that we could just workaround it
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.
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.
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...
I'll update the dep then
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)
Created attachment 53434 [details] 2 commands to run just after the sources were expanded during the emerge mjegtools
I added a workaround for that gcc issue (reported upstream already) tell me if is working ok for you