linux-mips
[Top] [All Lists]

Re: ALSA compile error

To: linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu
Subject: Re: ALSA compile error
From: ralf@uni-koblenz.de
Date: Sat, 3 Apr 1999 01:31:01 +0200
In-reply-to: <19990402223303.A20067@bun.falkenberg.se>; from Ulf Carlsson on Fri, Apr 02, 1999 at 10:33:17PM -0500
References: <19990402223303.A20067@bun.falkenberg.se>
Sender: owner-linux@cthulhu.engr.sgi.com
On Fri, Apr 02, 1999 at 10:33:17PM -0500, Ulf Carlsson wrote:

> I've been trying with egcs 1.0.2, gcc 2.7.2, binutils 2.8.1 and binutils 2.9.1
> and it doesn't make any difference. I've also been trying without -pipe and
> -fomit-frame-pointer.

Use egcs 1.0.x and binutils 2.8.1.

> This is the error message:
> 
> gcc -O2  -DLINUX -mips2 -mcpu=r4600 -Wall -Wstrict-prototypes 
> -fomit-frame-pointer -pipe -I/usr/src/linux/include -I../include -c -o 
> sound.o sound.c
> /tmp/cca03757.s: Assembler messages:
> /tmp/cca03757.s:1228: Error: Can not represent BFD_RELOC_16_PCREL_S2 
> relocation in this object file format
> /tmp/cca03757.s:1285: Error: Can not represent BFD_RELOC_16_PCREL_S2 
> relocation in this object file format

> It was something about the haifa scheduler I think.

Haifa is innocent.  You are trying to compile the thing into PIC code and
that won't work for kernel code.  Add -fno-pic -mno-abicalls and for modules
also add -mlong-calls.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>