[ros-dev] Build Error

James Tabor jimtabor at adsl-64-217-116-74.dsl.hstntx.swbell.net
Sat May 28 08:42:51 CEST 2005


Hi,
Hartmut Birr wrote:
> 
> I get this only for an optimized build. Please try:
> 
> M:\Sandbox\ros_work\reactos>svn diff hal\halx86\include\hal.h
> Index: hal/halx86/include/hal.h
> ===================================================================
> --- hal/halx86/include/hal.h    (Revision 15545)
> +++ hal/halx86/include/hal.h    (Arbeitskopie)
> @@ -419,7 +419,7 @@
>  static inline BYTE Ki386ReadFsByte(ULONG offset)
>  {
>     BYTE b;
> -   __asm__ __volatile__("movb %%fs:(%1),%0":"=r" (b):"r" (offset));
> +   __asm__ __volatile__("movb %%fs:(%1),%0":"=A" (b):"0" (offset));
>     return b;
>  }
> 
> - Hartmut
> 
It broke this,

halup: [CC] ../generic/adapter.c
In file included from ../generic/adapter.c:20:
../include/hal.h: In function `Ki386ReadFsByte':
../include/hal.h:423: error: syntax error before "return"
../include/hal.h:424: warning: no return statement in function returning non-void
make[1]: *** [adapter.o] Error 1
make: *** [halx86/up] Error 2

Thanks,
James


More information about the Ros-dev mailing list