Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86264 - media-video/mjpegtools-1.6.2-r3 fails to build with hardened gcc-3.3.5-r1
Summary: media-video/mjpegtools-1.6.2-r3 fails to build with hardened gcc-3.3.5-r1
Status: RESOLVED DUPLICATE of bug 77694
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-22 08:18 UTC by spiritus
Modified: 2005-07-17 13:06 UTC (History)
4 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 spiritus 2005-03-22 08:18:41 UTC
# emerge mjpegtools
...
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I ../utils -I ..   -funroll-all-loops -finline-functions -ffast-math -frerun-cse-after-loop -frerun-loop-opt -fexpensive-optimizations -fmove-all-movables -march=pentium3 -O2 -mno-sse2 -MT motion.o -MD -MP -MF ".deps/motion.Tpo" \
  -c -o motion.o `test -f 'motion.c' || echo './'`motion.c; \
then mv -f ".deps/motion.Tpo" ".deps/motion.Po"; \
else rm -f ".deps/motion.Tpo"; exit 1; \
fi
motion.c: In function `calc_SAD_mmx':
motion.c:143: 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/mjpegtools-1.6.2-r3/temp/ccIauNAe.out file, please attach this to your bugreport.
make[2]: *** [motion.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2/yuvdenoise'
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

!!! ERROR: media-video/mjpegtools-1.6.2-r3 failed.
!!! Function src_compile, Line 105, Exitcode 2
!!! compile problem
!!! If you need support, post the topmost build error, NOT this status message.

It builds without any problems after switching gcc to vanilla gcc 3.3.5:
# gcc-config -l
[1] i686-pc-linux-gnu-3.3.5
[2] i686-pc-linux-gnu-3.3.5-hardenednopie
[3] i686-pc-linux-gnu-3.3.5-hardenednossp
[4] i686-pc-linux-gnu-3.3.5-vanilla *
[5] i686-pc-linux-gnu-3.4.3
[6] i686-pc-linux-gnu-3.4.3-hardenednopie
[7] i686-pc-linux-gnu-3.4.3-hardenednossp
[8] i686-pc-linux-gnu-3.4.3-vanilla


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




# emerge -pv gcc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-devel/gcc-3.3.5-r1  (-altivec) -bootstrap -boundschecking -
build -debug +fortran -gcj +gtk +hardened (-ip28) (-multilib) +multislot* (-n32) 
(-n64) +nls -nocxx -objc -static (-uclibc) 0 kB

Total size of downloads: 0 kB

# emerge info
Portage 2.0.51.19 (default-linux/x86/2004.2, gcc-3.3.5-vanilla, glibc-2.3.4.
20041102-r0, 2.6.11-gentoo-r3 i686)
=================================================================
System uname: 2.6.11-gentoo-r3 i686 Intel(R) Celeron(TM) CPU                
1100MHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 21 2005, 00:29:46)
]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.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 /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://ftp.du.se/pub/os/gentoo 
http://trumpetti.atm.tut.fi/gentoo/ ftp://mirrors1.netvisao.pt/gentoo/ http://
www.gigaload.org/gentoo.org/"
LANG="ru_RU.cp1251"
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="x86 X aalib acl activefilter alsa apache2 apm arts artswrappersuid 
audiofile avi bash-completion berkdb bitmap-fonts caps cdparanoia cdr crypt cups 
curl dba dhcp directfb divx4linux divxforlinux doc emboss encode erandom esd fam 
fbcon flac font-server foomaticdb fortran gd gd-external gdbm gif gnome gphoto2 
gpm gstreamer gtk gtk2 guile hardened imagemagick imlib ipv6 jack java jpeg 
junit kde kerberos ldap libclamav libg++ libwww lirc lm_sensors logrotate mad 
mbox mikmod milter mime mmap mmx motif mp3 mpeg mppe-mppc multislot mysql 
ncurses nls nptl ntlm oggvorbis opengl oss pam pascal pdflib perl pic png 
portaudio povray procmail python qt quicktime quotas rdesktop readline recode 
reiserfs ruby samba sasl scanner sdl sftplogging slang slp snmp socks5 speex 
spell sse ssl svga tcltk tcpd threads tiff truetype truetype-fonts type1-fonts 
usb v4l v4l2 wifi winbind wmf xine xinerama xml xml2 xmms xscreensaver xv xvid 
zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
Comment 1 solar (RETIRED) gentoo-dev 2005-03-22 09:46:55 UTC

*** This bug has been marked as a duplicate of 77694 ***
Comment 2 Dirk Heinrichs 2005-03-24 01:09:49 UTC
Hmm, the errors in both bug reports are different, why is it a duplicate, then?
Comment 3 Dirk Heinrichs 2005-03-24 01:19:03 UTC
After applying the patch from bug 77694, I run into the error described here.

Since I use gcc 3.4.3 the error message is a bit different, but it occurs in
the same place:

motion.c: In function `calc_SAD_mmx':
motion.c:143: error: PIC register `%ebx' clobbered in `asm'
motion.c: In function `calc_SAD_mmxe':
motion.c:190: error: PIC register `%ebx' clobbered in `asm'
motion.c: In function `calc_SAD_uv420_mmx':
motion.c:251: error: PIC register `%ebx' clobbered in `asm'
motion.c: In function `calc_SAD_uv411_mmx':
motion.c:297: error: PIC register `%ebx' clobbered in `asm'
motion.c: In function `calc_SAD_uv420_mmxe':
motion.c:347: error: PIC register `%ebx' clobbered in `asm'
motion.c: In function `calc_SAD_uv411_mmxe':
motion.c:384: error: PIC register `%ebx' clobbered in `asm'
motion.c: In function `calc_SAD_half_mmx':
motion.c:447: error: PIC register `%ebx' clobbered in `asm'
motion.c: In function `calc_SAD_half_mmxe':
motion.c:496: error: PIC register `%ebx' clobbered in `asm'
make[2]: *** [motion.o] Error 1
make[2]: Leaving directory `/gentoo/build/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2/yuvdenoise'
make[1]: *** [all-recursive] Error 1

Please reopen.
Comment 4 Daniel Black (RETIRED) gentoo-dev 2005-06-05 06:14:02 UTC
Dirk - have you tried 1.6.2-r4? Works for me 
Portage 2.0.51.22-r1 (hardened/x86/2.6, gcc-3.4.4, glibc-2.3.4.20041102-r1, 
2.6.11-gentoo-r9 i686) 
================================================================= 
System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) XP 2500+ 
Gentoo Base System version 1.4.16 
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    1.2.8 
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.92.0.2-r10 
sys-devel/libtool:   1.4.3-r4, 1.5.16 
virtual/os-headers:  2.6.11-r1 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" 
CHOST="i686-pc-linux-gnu" 
 
Comment 5 Dirk Heinrichs 2005-06-06 02:33:02 UTC
Yes, works now. 
Comment 6 Daniel Black (RETIRED) gentoo-dev 2005-06-06 04:12:22 UTC
 
media-{video/tv} people - any change of pushing the following to stable? 
*mjpegtools-1.6.2-r4 (17 Apr 2005) 
Comment 7 Jan Brinkmann (RETIRED) gentoo-dev 2005-06-06 07:55:23 UTC
stable on amd64 and x86 now