It has been there for a while. It is caused by the gmp configure parameter 
(in gcc/makefile.in line 12644 )


I change "--host=none-${host_vendor}-${host_os} 
--target=none-${host_vendor}-${host_os}"
to "--host=${host_alias} --target=${host_alias}", the building succeeds.
  


------------------ Original ------------------
From:                                                                           
                                             "Ryan Long"                        
                                                            
<ryan.l...@oarcorp.com&gt;;
Date:&nbsp;Tue, Mar 22, 2022 05:33 AM
To:&nbsp;"devel"<devel@rtems.org&gt;;

Subject:&nbsp;GMP error when building aarch64-rtems-gcc on Mingw64



While building gcc, arg3nexwm1 fails. The error follows

In file included from ../../../gnu-mirror-gcc-348fb9d/gmp/gmp-impl.h:146,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 from fib_table.c:4:
../fib_table.h:4:1: warning: data definition has no type or storage class
&nbsp;&nbsp;&nbsp; 4 | Error, error, this data is for 32 bits
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | ^~~~~
../fib_table.h:4:1: warning: type defaults to 'int' in declaration of 
'Error' [-Wimplicit-int]
../fib_table.h:4:8: warning: type defaults to 'int' in declaration of 
'error' [-Wimplicit-int]
&nbsp;&nbsp;&nbsp; 4 | Error, error, this data is for 32 bits
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^~~~~
../fib_table.h:4:20: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'data'
&nbsp;&nbsp;&nbsp; 4 | Error, error, this data is for 32 bits
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 ^~~~
fib_table.c:7:1: warning: data definition has no type or storage class
&nbsp;&nbsp;&nbsp; 7 | Error, error, this data is for 32 bits
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | ^~~~~
fib_table.c:7:1: warning: type defaults to 'int' in declaration of 
'Error' [-Wimplicit-int]
fib_table.c:7:8: warning: type defaults to 'int' in declaration of 
'error' [-Wimplicit-int]
&nbsp;&nbsp;&nbsp; 7 | Error, error, this data is for 32 bits
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^~~~~
fib_table.c:7:20: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'data'
&nbsp;&nbsp;&nbsp; 7 | Error, error, this data is for 32 bits
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 ^~~~

This is due to GMP_NUMB_BITS not being equal to 32. Has anyone 
encountered this?

Thanks,

Ryan

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to