help-hurd
[Top][All Lists]
Advanced

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

Re: Problems compiling Hurd and Gnumach


From: Neal H Walfield
Subject: Re: Problems compiling Hurd and Gnumach
Date: Wed, 12 Sep 2001 11:21:39 +0200
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7

> but I got the following error:
>
> I edited the file '/usr/bin/mig' and changed          
> default_cc=''i386-gnu-gcc'' to default_cc=''gcc-3.0''
> and tried to compile again, getting the errors:

No one has tested gcc 3.0 yet.

> ld -Ttext 100000 -o kernel kernel.o clib-routines.o
> clib-routines.o: In function `strpbrk':
> clib-routines.o(.text+0x330): multiple definition of
> `strpbrk'
> kernel.o(.text+0x464e0): first defined here
> ld: Warning: size of symbol `strpbrk' changed from 53
> to 179 in clib-routines.o
> make: *** [kernel] Error 1

This is a known bug that I have not yet gotten around to fix.

> After trying to compile Gnumach without success, I
> tried to compile the Hurd but there was no  'configure'
> script so I tried 'autoconf' to generate it.  I did:

This is the correct action to take.

>                       gcc -O -Wall -g -O3  -I.  -I..  -I../include
>                       -D_GNU_SOURCE -D_IO_MTSAFE_IO    -c -o file-syncfs.o
>                       file-syncfs.c
>                       file-syncfs.c: In function `helper':
>                       file-syncfs.c:61: Internal compiler error:
>                       file-syncfs.c:61: internal error--unrecognizable insn:
>                       (insn/i 112 111 113 (parallel[ 
>                                   (set (reg/v:SI 42)
>                                       (asm_operands/v ("xchgl %0, %1")
>                       ("=&r") 0[ 
>                                               (reg:SI 41)
>                                           ] 
>                                           [ 
>                                               (asm_input:SI ("0"))
>                                           ]  ("/include/machine-lock.h") 53))
>                                   (set (mem/v:SI (reg/v:SI 39) 0)
>                                       (asm_operands/v ("xchgl %0, %1") ("=m")
>                       1[ 
>                                               (reg:SI 41)
>                                           ] 
>                                           [ 
>                                               (asm_input:SI ("0"))
>                                           ]  ("/include/machine-lock.h") 53))
>                               ] ) -1 (insn_list 106 (insn_list 111 (nil)))
>                           (expr_list:REG_DEAD (reg:SI 41)
>                               (nil)))
>                       make[1]: *** [file-syncfs.o] Error 1
>                       make[1]: Leaving directory
>                       `/linux.home/lalucas/hurd_src/hurd/libdiskfs'
>                       make: *** [libdiskfs] Error 2
>

This is a bug in gcc.  You need to compile with -O2.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]