Package: tvtime
Version: 0.9.15-1

Since the change of the build environment over to gcc-4.0 in Sid, something has
happened to the build environment for *all* of the compilers (including gcc-3.3
and gcc-3.4). At the beginning the the debian/rules in the tvtime source
package, there are these lines which get DEB_HOST_GUN_TYPE and 
DEB_BUILD_GNU_TYPE:

--SNIP--

DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

--SNIP--

When I manually run these commands I get this value for both in return:

i486-linux-gnu

So, when tvtime is built, it appears the rules are trying to optimize for an
i486 (even though my machine in an athon XP2100+ or i686):

--SNIP--

checking whether we are using the GNU C compiler... yes
checking whether i486-linux-gnu-gcc accepts -g... yes
checking for i486-linux-gnu-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of i486-linux-gnu-gcc... gcc3
checking for i486-linux-gnu-gcc... yes
checking for i486-linux-gnu-g++... i486-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether i486-linux-gnu-g++ accepts -g... yes
checking dependency style of i486-linux-gnu-g++... gcc3
checking for i486-linux-gnu-g++... yes

--SNIP--

This causes the build to fail using gcc-3.3 and gcc-3.4 (I have not tried
gcc-4.0).  But, the point is that previous to debians compiler upgrades,
DEB_BUILD_GNU_TYPE and DEB_HOST_GNU_TYPE returned i386 *not* i486.

--SNIP--

`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
if i486-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT greedyh.o -MD
-MP -MF ".deps/greedyh.Tpo" \
  -c -o greedyh.o `test -f '../plugins/greedyh.cpp' || echo
'./'`../plugins/greedyh.cpp; \
then mv -f ".deps/greedyh.Tpo" ".deps/greedyh.Po"; \
else rm -f ".deps/greedyh.Tpo"; exit 1; \
fi
../plugins/greedyh.asm: In function 'void 
greedyh_filter_mmx(TDeinterlaceInfo*)':
../plugins/greedyh.asm:270: error: unknown register name 'mm7' in 'asm'
../plugins/greedyh.asm:270: error: unknown register name 'mm6' in 'asm'
../plugins/greedyh.asm:270: error: unknown register name 'mm5' in 'asm'
../plugins/greedyh.asm:270: error: unknown register name 'mm4' in 'asm'
../plugins/greedyh.asm:270: error: unknown register name 'mm3' in 'asm'
../plugins/greedyh.asm:270: error: unknown register name 'mm2' in 'asm'
../plugins/greedyh.asm:270: error: unknown register name 'mm1' in 'asm'
../plugins/greedyh.asm:270: error: unknown register name 'mm0' in 'asm'
make[3]: *** [greedyh.o] Error 1

--SNIP--

It appears that tvtime will not build if it is optimized to i486.  If I remove
these two lines in the rules file, then tvtime builds fine optimized towards
i686 (which i what .configure detects):

--SNIP--

./configure --host=$(DEB_HOST_GNU_TYPE)       \
            --build=$(DEB_BUILD_GNU_TYPE)     \

--SNIP--

So, my question is why doesnt DEB_BUILD_GNU_TYPE and DEB_HOST_GNU_TYPE return
i686 in the first place? Or, why do we hardcode the build types in our debian
rules when autoconf should do this for us?

Best Regards,
C.

Note: This is also the same issue with MjpegTools.







-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to