[ros-dev] Build Error
Hartmut Birr
hartmut.birr at gmx.de
Sat May 28 10:59:59 CEST 2005
James Tabor wrote:
> 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
Are you sure that is a semicolon at the end of line 422 in hal.h?
- Hartmut
More information about the Ros-dev
mailing list