Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55353 - jpeg-mmx-1.1.2-r1 doesn't compile
Summary: jpeg-mmx-1.1.2-r1 doesn't compile
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on: 2380
Blocks:
  Show dependency tree
 
Reported: 2004-06-27 12:54 UTC by Martin Mokrejš
Modified: 2005-07-28 01:53 UTC (History)
6 users (show)

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


Attachments
Preprocessed source and debug info from compile attempt (compile_error.log,148.75 KB, text/plain)
2004-10-25 03:52 UTC, Darrin Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2004-06-27 12:54:14 UTC
./libtool --mode=compile gcc -mpni -O3 -march=pentium4 -funroll-loops -pipe  -I. -c ./jdapistd.c
gcc -mpni -O3 -march=pentium4 -funroll-loops -pipe -I. -c ./jdapistd.c
`-mpni' is deprecated. Use `-msse3' instead.
{standard input}: Assembler messages:
{standard input}:76: Error: symbol `NOT_SUPPORTED' is already defined
make: *** [jdapimin.lo] Error 1
make: *** Waiting for unfinished jobs....
echo timestamp > jdapistd.lo

!!! ERROR: media-libs/jpeg-mmx-1.1.2-r1 failed.



# emerge -pv gcc info
Portage 2.0.50-r8 (default-x86-1.4, gcc-3.4.0, glibc-2.3.3.20040420-r0, 2.4.27-rc2)
=================================================================
System uname: 2.4.27-rc2 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE=""
ARCH="x86"
AUTOCLEAN="yes"
AUTO_SYMLINK="no"
BASH_ENV="/etc/portage/bashrc"
BLASTDB="/usr/var/ncbi/db"
CAD_HOME="/usr"
CC="gcc"
CFLAGS="-mpni -O3 -march=pentium4 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CLASSPATH="/opt/blackdown-jdk-1.4.1/jre/lib/rt.jar:."
CLEAN_DELAY="5"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CVS_RSH="ssh"
CXX="g++"
CXXFLAGS="-mpni -O3 -march=pentium4 -funroll-loops -pipe"
DISPLAY="localhost:10.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
EMBOSS_ACDROOT="/usr/share/EMBOSS/acd"
ENV_VARS="JAVACC_HOME"
FEATURES="autoaddcvs ccache sandbox"
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
GLIBC_SSP_CHECKED="1"
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses"
GUILE_LOAD_PATH="/usr/share/guile/1.6"
G_BROKEN_FILENAMES="1"
HOME="/root"
HOSTNAME="aquarius"
IA32ROOT="/opt/intel/compiler80"
INFODIR="/usr/share/info:/usr/X11R6/info"
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info"
INPUTRC="/etc/inputrc"
INTEL_FLEXLM_LICENSE="/opt/intel/compiler80/licenses"
INTEL_LICENSE_FILE="/opt/intel/licenses/l_cpp_58408918.lic"
JAVAC="/opt/blackdown-jdk-1.4.1/bin/javac"
JAVACC_HOME="/usr/share/@PN@"
JAVA_HOME="/opt/blackdown-jdk-1.4.1"
JDK_HOME="/opt/blackdown-jdk-1.4.1"
KBUILD_OUTPUT_PREFIX=""
KDEDIR="/usr/kde/3.2"
KDEDIRS="/usr"
LC_CTYPE="cs_CZ"
LESS="-R"
LESSOPEN="|lesspipe.sh %s"
LINUX_PORTAGE_WRITABLE="no"
LOGNAME="root"
MAIL="/var/mail/root"
MAKEOPTS="-j2"
MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man:/opt/intel/compiler80/man:/usr/X11R6/man:/opt/blackdown-jdk-1.4.1/man:/usr/qt/3/man:/usr/qt/3/doc/man:/opt/vmware/man"
MOZILLA_FIVE_HOME="/usr/lib/mozilla"
NOCOLOR="false"
OLDPWD="/var/tmp/portage/mjpegtools-1.6.1.90-r2/work/mjpegtools-1.6.1.90/lavtools"
PAGER="/usr/bin/less"
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/athena/bin:/usr/local/sbin:/usr/local/bin:/usr/src/wifi/prism25/hostap-utils-0.1.2:/usr/local/bin:/opt/bin:/usr/afsws/bin:/etc/afs/afsws:/usr/afs/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4:/opt/intel/compiler80/bin:/opt/ati/bin:/opt/Acrobat5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.1/bin:/opt/blackdown-jdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.2/sbin:/usr/kde/3.2/bin:/usr/kde/3.1/sbin:/usr/kde/3.1/bin:/opt/vmware/bin:/var/qmail/bin"
PKGDIR="/usr/portage/packages"
PLPLOT_LIB="/usr/share/EMBOSS/plplot/lib"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CACHEDIR="/var/cache/edb/dep/"
PORTAGE_CALLER="emerge"
PORTAGE_GID="250"
PORTAGE_MASTER_PID="17560"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK=""
PS1="\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]"
PWD="/var/tmp/portage/mjpegtools-1.6.1.90-r2/work/mjpegtools-1.6.1.90"
PYTHONDOCS="/usr/share/doc/python-docs-2.3.3/html"
QMAIL_CONTROLDIR="/var/qmail/control"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
R3D_LIB="/usr/share/Raster3D/materials"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
RPMDIR="/usr/portage/rpm"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="180"
SANE_CONFIG_DIR="/etc/sane.d"
SHELL="/bin/bash"
SHLVL="1"
SSH_CLIENT="::ffff:127.0.0.1 32791 22"
SSH_CONNECTION="::ffff:127.0.0.1 32791 ::ffff:127.0.0.1 22"
SSH_TTY="/dev/pts/2"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
USE="X Xaw3d aalib acpi afs alsa apache2 apm arts ati avi berkdb bidi bonobo cdr crypt cscope cups curl dga directfb doc dvb dvd dvdr emacs emacs-w3 encode esd ethereal evo fam fbcom flash foomaticdb fvwm fvwm2 gb gd gdbm ggi gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile icc imagemagick imlib innodb java jpeg kde kde3 lcms ldap leim libg++ libwww mad mbox mcal mesa mikmod mmx motif mozilla mpeg mule mysql ncurses nls oggvorbis opengl oss pam pda pdflib perl plotutils png ppds pthread pthreads python qt quicktime readline ruby samba sasl scanner sdl slang slp spell sse ssl svga tcltk tcpd tetex thread threads tiff truetype unicode usb video_cards_radeon wmf x86 xml xml2 xmms xosd xv zeo zlib"
USER="root"
USERLAND="GNU"
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS"
VERSION="JavaCC @PV@"
VIDEO_CARDS="radeon"
XARGS="xargs -r"
XGUILOADPATH="/usr/share/doc/snns-4.2-r4/"
XINITRC="/etc/X11/xinit/xinitrc"
_="/usr/bin/emerge"



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Chris White (RETIRED) gentoo-dev 2004-06-28 08:29:14 UTC
CFLAGS="-mpni -O3 -march=pentium4 -funroll-loops -pipe"

to

CFLAGS="-O2 -march=pentium4 -fommit-frame-pointer -pipe"

See if it still works.
Comment 2 Martin Mokrejš 2004-06-28 16:14:28 UTC
Yes, that works:

CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" emerge jpeg-mmx
Comment 3 Darrin Smith 2004-10-25 03:52:53 UTC
Created attachment 42551 [details]
Preprocessed source and debug info from compile attempt

Looking at the original bug posting, I noticed that the compilation error was
due to an undefined token.

However, the failure in my attempts seems to be due to an internal compiler
error.
Below is the error generated during the emerge

./libtool --mode=compile gcc -O2 -march=pentium3 -fomit-frame-pointer -pipe 
-I. -c ./jdtrans.c
jdapimin.c: In function `mmxsupport':
jdapimin.c:463: internal compiler error: asm clobber conflict with output
operand

Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into
/var/tmp/portage/jpeg-mmx-1.1.2-r1/temp/cc8OUrnC.out file, please attach this
to your bugreport
make: *** [jdapimin.lo] Error 1
make: *** Waiting for unfinished jobs....
gcc -O2 -march=pentium3 -fomit-frame-pointer -pipe -I. -c -fPIC -DPIC
./jdtrans.c
mv -f jdtrans.o jdtrans.lo

!!! ERROR: media-libs/jpeg-mmx-1.1.2-r1 failed.
!!! Function src_compile, Line 29, Exitcode 2
!!! make failed
Comment 4 Darrin Smith 2004-10-25 08:02:18 UTC
I tried with 

CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe" emerge jpeg-mmx

but it did not work. I've added an attachment
Comment 5 Jesus Gonzalez Alvarez 2004-11-17 01:59:21 UTC
I alsa had this problem when trying to compile it. Using the solution in comment #2 solved the problem. But now, any gnome application that deals with jpeg files segfaults (gqview, eog, GDM can not show thems based on jpeg files, the backgroung can not be a jpeg file...). I've tried opening jpeg files with imagemagick and it works.

Gimp can neither open the fail, but doesn't crash. It says:
"JPEG parameter struct mismatch: library thinks size is 464, caller expects 3085633328"

I guess that thereis a problem with gtk compiled against jpeg or jpeg-mmx. Any hints?
Comment 6 Martin Mokrejš 2005-02-25 04:35:04 UTC
I cannot reproduce the problem anymore:

CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe" emerge jpeg-mmx
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" emerge jpeg-mmx
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe" emerge jpeg-mmx
CFLAGS="-mpni -O3 -march=pentium4 -funroll-loops -pipe" emerge jpeg-mmx
CFLAGS="-O3 -march=pentium4 -funroll-loops -pipe -msse -msse2 -msse3" emerge jpeg-mmx

The ebuild is still same, so it was a gcc issue. I'd close the bug (although am now on ~x86 branch).

# gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs
Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --disable-multilib --disable-libgcj --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.3.5  (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)


Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20050125-r0, 2.6.11-rc4-bk7 i686)
=================================================================
System uname: 2.6.11-rc4-bk7 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 21 2005, 21:57:42)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.4_p6, 1.6.3, 1.9.4, 1.8.5-r3, 1.7.9-r1
sys-devel/binutils:  2.15.92.0.2-r3
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.19-r1, 2.4.22-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mmmx -msse -msse2 -fomit-frame-pointer -march=pentium4 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/lib/X11/xkb /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/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mmmx -msse -msse2 -fomit-frame-pointer -march=pentium4 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.muni.cz/pub/linux/gentoo http://gentoo.mirror.icd.hu/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 FFmpeg X Xaw3d aalib acpi adns afs alsa apache2 apm arts ati avcodec avi berkdb bidi bitmap-fonts bonobo caca cdparanoia cdr crypt cscope cups curl dba dga directfb divx divx4 divx4linux divx5 divx5linux doc dvb dvd dvdr dvdread emacs emacs-w3 emboss encode esd ethereal evo f77 faac faad faad2 fam fame fbcon ffmpeg flac flash font-server foomaticdb fortran fvwm fvwm2 gb gd gdbm ggi gif gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile i8x0 icc imagemagick imlib imlib2 innodb java jpeg junit lcms leim libg++ libwww live lpthread lzo lzw-tiff mad mcal mesa mikmod mmx mmx2 motif mozilla mpeg mule mysql ncurses network nls oggvorbis opengl oss pam pda pdflib perl php php4 plotutils png ppds pthread pthreads python qt qtx quicktime readline rtc ruby samba scanner sdl slang slp speex spell sse sse2 ssl svga tcltk tcpd tetex theora thread threads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 win32 winvidix wmf xml xml2 xmms xosd xv xvid xvmc zeo zlib video_cards_radeon linguas_cs linguas_cz linguas_en"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 7 Pekka Paalanen 2005-03-20 12:41:25 UTC
Has anyone noticed, that 1.1.2 seems to be actually 0.1.2 mistyped?
Check the time stamps at http://dl.sourceforge.net/sourceforge/mjpeg/

Oh yeah, you have noticed, the Bug 2380 (FIXED). Really?

All files inside http://dl.sourceforge.net/sourceforge/mjpeg/jpeg-mmx-1.1.2.tar.gz are year 2000. The latest package seems to be 0.1.5 on Feb 2004.

There's also some patch at https://sourceforge.net/tracker/index.php?func=detail&aid=1107275&group_id=5776&atid=305776

I have no connection to this issue and thanks for this info go to sibbe.
Comment 8 Stian Skjelstad 2005-06-28 05:37:03 UTC
jpeg-mmx-0.1.6.tar.gz  	583 kb 	Mar 25, 2005 22:53
jpeg-mmx-1.1.2.tar.gz 	556 kb 	Dec 07, 2000 08:12

2380 should be re-opened again?
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-07-27 17:14:51 UTC
(In reply to comment #8)
> jpeg-mmx-0.1.6.tar.gz  	583 kb 	Mar 25, 2005 22:53
> jpeg-mmx-1.1.2.tar.gz 	556 kb 	Dec 07, 2000 08:12
> 
> 2380 should be re-opened again?

Allegedly fixed three years ago. Please, remove the stuff from portage if you
cannot maintain it. 

Comment 10 SpanKY gentoo-dev 2005-07-27 20:46:46 UTC
punted 1.1.2 and added a cleaned up 0.1.6
Comment 11 Ruud Althuizen 2005-07-28 01:42:08 UTC
(In reply to comment #10)
> punted 1.1.2 and added a cleaned up 0.1.6

Right... Did you check if there where dependencies on it? Because now
media-video/mjpegtools-1.6.2-r4 starts complaining that it can't find the ebuild
anymore.
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2005-07-28 01:53:28 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > punted 1.1.2 and added a cleaned up 0.1.6
> 
> Right... Did you check if there where dependencies on it? Because now
> media-video/mjpegtools-1.6.2-r4 starts complaining that it can't find the ebuild
> anymore.

There's Bug 100555 about it. 

@vapier: thanks for fixing this.