Bug#47572: Tyler in kdeaddons fails to build under gcc3.2 using -march=pentium4

mhillary at btopenworld.com mhillary at btopenworld.com
Sat Sep 7 19:00:01 BST 2002


Package: noatun
Version: 2.0.0 (using KDE 3.0.3 )
Severity: normal
Installed from:    Gentoo Packages
Compiler:          gcc3.2
OS:                Linux
OS/Compiler notes: gentoo .1.4 

Configured with: /var/tmp/portage/gcc-3.2-r1/work/gcc-3.2/configure --prefix=/usr --mandir=/usr/share/man -infodir=/usr/share/info --enable-shared --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=i686-pc-gnu --with-system-zlib -enable-languages=c,c++,ada,f77,abjc,java --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --withgxx-include-dir=/ust/include/g++-v32 --with-local-prefix=/usr/local --enable-shared --enable0nls --without-included-gettext
Thread model: posix
gcc version 3.2
CFLAGS=-march=pentium4 -O3 -pipe -fprefetch-loop=arrays -falign-functions=4 -funroll-loops -fomit-frame-pointer -fstrict-aliasing -momit-leaf-frame-pointer -fforce-addr
CXXFLAGS=-march=pentium4 -O3 -pipe -fprefetch-loop=arrays -falign-functions=4 -funroll-loops -fomit-frame-pointer -fstrict-aliasing -momit-leaf-frame-pointer -fforce-addr

Info from /proc/cpuinfo
cpu family	:15
model		:2
model name	:Intel(R) Pentium(R) 4 Mobile CPU 1.60Ghz
stepping	:4

In kdeaddons/noatun-plugins/tyler/compute.c

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. _I../.. -I/usr/kde/3/include -I/usr/qt/3/include -I/usr/X11R6/include -I/usr/nclude/SDL -D_REENTRANT -DQT_THREAD_SUPPORT -D_REENTRANT -DNDEBUG -O2 -march=pentium4 -O3 -pipe -fprefetch-loop=arrays -falign-functions=4 -funroll-loops -fomit-frame-pointer -fstrict-aliasing -momit-leaf-frame-pointer -fforce-addr -c `test -f compute.c !! echo ' ./' `compute.c
compute.c: In function `generate_sector':
compute.c:175: unable to find a register to spill in class 'FLOAT_REGS'
compute.c:175: this is the insn:
(insn 187 184 189 (set (reg:DF 9 st(1) [117])
		(float_extend:DF (subreg:SF (reg/v:DI rxmm0 [82]) 0))) 133 {*extendsfdf2_1} (nil)
	(nil))
compute.c:175: confused by earlier errors, bailing out
make: *** [compute.o] Error 1

The work around for this is to not include the flag -march=pentium4, or to include the flag -mno-sse2
This allows the make to complete succesfully.

Notes: The whole system (i.e everying this file includes) is built with the same flags. Unless the flag is flitered by gentoo's portage. Desovered which flag to omit by removing one flag at a time and rerunning the make (after a make clean).

(Submitted via bugs.kde.org)


(Complete bug history is available at http://bugs.kde.org/db/47/47572.html)



More information about the kde-multimedia mailing list