Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1890 closed defect (invalid)

r10055-r10056 compile error on P4 cpu with -enable-proc-opt

Reported by: spam@… Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: low Keywords: compile error mmx
Cc: Ticket locked: no

Description

r10055 compile error on P4 cpu. running Debian unstable.

./configure --prefix=/usr --enable-dvb --enable-xvmc --enable-opengl-vsync --disable-joystick-menu --enable-proc-opt --disable-xvmcw

# Basic Settings
Compile type     release
Compiler cache   yes
DistCC           no
Install prefix   /usr
CPU              x86 (model name        : Intel(R) Celeron(R) CPU 2.13GHz)
Big Endian       no
MMX enabled      yes
Vector Builtins  yes
ccache gcc -c -pipe -march=pentium4 -w -Wall -Wno-switch -Os -fomit-frame-pointer -D_REENTRANT -DPIC -fPIC  -DMMX -Di386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib\" -DHAVE_AV_CONFIG_H -D_LARGEFILE_SOURCE -DHAVE_XVMC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I.. -I../.. -I../libavutil -I../../../../include/qt3 -o dsputil_mmx.o i386/dsputil_mmx.c
i386/dsputil_mmx.c: In function 'gmc_mmx':
i386/dsputil_mmx.c:2484: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
make[2]: *** [dsputil_mmx.o] Error 1
make[2]: Leaving directory `/usr/src/mythtv/libs/libavcodec'
make[1]: *** [sub-libavcodec] Error 2
make[1]: Leaving directory `/usr/src/mythtv/libs'
make: *** [sub-libs] Error 2


Seems ok on AMD hardware.

Change History (6)

comment:1 Changed 13 years ago by Isaac Richards

Resolution: invalid
Status: newclosed

Was fixed almost an hour ago.

comment:2 Changed 13 years ago by spam@…

Resolution: invalid
Status: closedreopened
Summary: r10055 compile error on P4 cpur10055-r10056 compile error on P4 cpu with -enable-proc-opt

Still have the same error message with r10056 if -enable-proc-opt used.

With no -enable-proc-opt it compiles ok.

ccache gcc -c -pipe -march=pentiumpro -w -O3 -Wall -Wno-switch -fomit-frame-pointer -D_REENTRANT -DPIC -fPIC  -DMMX -Di386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib\" -DHAVE_AV_CONFIG_H -D_LARGEFILE_SOURCE -DHAVE_XVMC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I.. -I../.. -I../libavutil -I../../../../include/qt3 -o dsputil_mmx.o i386/dsputil_mmx.c
ccache gcc -c -pipe -march=pentiumpro -w -O3 -Wall -Wno-switch -fomit-frame-pointer -D_REENTRANT -DPIC -fPIC  -DMMX -Di386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib\" -DHAVE_AV_CONFIG_H -D_LARGEFILE_SOURCE -DHAVE_XVMC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I.. -I../.. -I../libavutil -I../../../../include/qt3 -o mpegvideo_mmx.o i386/mpegvideo_mmx.c

comment:3 Changed 13 years ago by anonymous

Resolution: invalid
Status: reopenedclosed

comment:4 Changed 13 years ago by anonymous

Priority: majorminor
Resolution: invalid
Severity: mediumlow
Status: closedreopened

So are we not to compile with -enable-proc-opt on intel chips anymore? With your changes to the i386 mmx code, asm is running out of regs with -Os which is the selected optimize for several cpu types in configure.

comment:5 Changed 13 years ago by Isaac Richards

Resolution: invalid
Status: reopenedclosed

There haven't been _any_ changes to the mmx code in question.

comment:6 Changed 13 years ago by spam@…

r10061 fixes problem.

Note: See TracTickets for help on using tickets.