xfs
[Top] [All Lists]

Re: gcc 2.95.2

To: GCS <gcs@xxxxxxxxxxxxxxxx>
Subject: Re: gcc 2.95.2
From: Steve Lord <lord@xxxxxxx>
Date: Wed, 14 Mar 2001 11:11:56 -0600
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: Message from GCS <gcs@agentsinside.com> of "Wed, 14 Mar 2001 17:26:24 +0100." <20010314172624.A32147@esparrall.udg.es>
Sender: owner-linux-xfs@xxxxxxxxxxx
> 
> 
> Hi,
> 
> On SZE, MAR 14, 2001 at 10:15:53 -0600, Steve Lord wrote:
> 
> > I can work past the compile errors, but then I end up with failing mounts.
>  What kind of errors do you get?
>  I get internal error as:
> make[3]: Cambiando a directorio `/usr/src/linux/fs/xfs'
> gcc -D__KERNEL__ -I/usr/src/linux/include  -Wall -Wstrict-prototypes -O2 -fno
> -strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=i686  -Wno-unused 
>  -Wno-parentheses -Wno-uninitialized -I. -funsigned-char  -Wno-unknown-pragma
> s -DDEBUG -DXFSDEBUG  -c -o xfs_bmap.o xfs_bmap.c
> xfs_bmap.c: In function `xfs_bmap_del_extent':
> xfs_bmap.c:3130: internal error--unrecognizable insn:
> (insn/i 468 467 2149 (parallel[ 
>             (set (reg:SI 0 %eax)
>                 (asm_operands ("") ("=a") 0[ 
>                         (reg:DI 1 %edx)
>                     ] 
>                     [ 
>                         (asm_input:DI ("A"))
>                     ]  ("linux/xfs_linux.h") 267))
>             (set (reg:SI 1 %edx)
>                 (asm_operands ("") ("=d") 1[ 
>                         (reg:DI 1 %edx)
>                     ] 
>                     [ 
>                         (asm_input:DI ("A"))
>                     ]  ("linux/xfs_linux.h") 267))
>         ] ) -1 (insn_list 435 (nil))
>     (nil))
> cpp: output pipe has been closed
> make[3]: *** [xfs_bmap.o] Error 1
> 
> Thanks, Laszlo


This error is easy to get rid of, the xfs_do_div, xfs_do_mod  and roundup_64
inline functions in fs/xfs/linux/xfs_linux.h need to be moved to a .c file and
made into regular functions. This moves the problem to being a runtime one,
if you build a kernel like this, do not do it on a system where parts of the
OS depend on xfs working.

Steve




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