[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Build problems on s390 & hppa (compiler/assembler bugs?)



On Tue, 03 Dec 2002 18:46:29 +0100
Xavier Roche <rocheml@httrack.com> wrote:

> The first problem is a weird assembler message, on s390 & mipsel, it seems that gcc is producing invalid assembly instructions (range error):
> 
> ...
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -DINET6 -DPREFIX=\"/usr\" -DSYSCONFDIR=\"/etc\" -DDATADIR=\"/usr/share\" -DLIBDIR=\"/usr/lib\" -O -g3 -Wall -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wnested-externs -D_REENTRANT -c htscore.c -Wp,-MD,.deps/htscore.TPlo  -fPIC -DPIC -o .libs/htscore.lo
> /tmp/cc1jAxPo.s: Assembler messages:
> /tmp/cc1jAxPo.s:13670: Error: operand out of range (00000000000012be not between 0 and 4095)
> /tmp/cc1jAxPo.s:21074: Error: operand out of range (0000000000002a3c not between 0 and 4095)
> ...
> make[4]: *** [htscore.lo] Error 1
> 
> According to various previous discussions here, it seems that using -O0 is fixing the problem (compiler bug), so I'll have to patch the configure.in - is there any cleaner way?
> 

This is in debian/rules in one of my packages, the very first lines are:

ifneq (,$(findstring alpha,$(DEB_BUILD_ARCH)))
CFLAGS = -O0 -g -mieee
else
CFLAGS = -O2 -g -Wall
endif

You could adopt this for mipsel or s390...

Regards,
Joop



Reply to: