Subject: Re: compiling gcc 2.95.2 on -current?
To: None <hubert.feyrer@informatik.fh-regensburg.de>
From: Frank van der Linden <frank@wins.uva.nl>
List: tech-toolchain
Date: 02/29/2000 16:36:26
On Tue, Feb 29, 2000 at 02:33:21PM +0100, Hubert Feyrer wrote:
> 
> _floatdidf
> HF: ./xgcc -B/usr/local/gcc-2.95.2/i386-unknown-netbsd1.4T/bin/ -B./
> -I/usr/local/gcc-2.95.2/i386-unknown-netbsd1.4T/include -O2 -DIN_GCC -g
> -I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I./config
> -I./../include -c -DL_floatdidf -DUSE_COLLECT2 ./libgcc2.c -o _floatdidf.o
> /tmp/cc8o5sjL.s: Assembler messages:
> /tmp/cc8o5sjL.s:130: Error: Alignment not a power of 2
> *** Error code 1
> Stop.
> 
> Any clue on how to fix this? This is a build out of sources, after
> "./configure --prefix/usr/local/gcc-2.95.2", not pkgsrc. (Do we have
> gcc2.95.2 in pkgsrc?).

That's probably the error you get due to a SysV-type or "other" type
of .align directive. SysV style (IIRC) is to specify the number
as the power of 2 that the alignment should be. I.e. .align 3 gets
you an alignment of 8. The other alternative is just to specify the
number of bytes. Check for a ASM_OUTPUT_ALIGN define somewhere
in the config/* files that it is using.

Presumably the configuration for NetBSD on i386 ELF isn't right
in gcc 2.95.x. It probably was never sent in to be integrated.
Maybe Andrew or Matt know if this is being fixed.

- Frank