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

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

On Tue, Dec 03, 2002 at 06:46:29PM +0100, Xavier Roche wrote:
> Hi,
> I am currently in "new maintainer phase", and my package was sponsored by Christian Marillat, and uploaded to the autobuilder. (I am also the author of the original package)
> I have two build problems ; one on s390, mips & mipsel architectures, and one on hppa architecture.
> (see http://buildd.debian.org/build.php?arch=&pkg=httrack)
> 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?

No, you don't have to patch configure.in. Simply doing

CFLAGS=-O0 -Whatever_you_want ./configure

should do it. Of course, you want to put that in a make if-statement, so
that it's only executed on the specific failing architectures...

[...not familiar with hppa myself...]

wouter at grep dot be

"Human knowledge belongs to the world"
  -- From the movie "Antitrust"

Reply to: