On Fri, Apr 1, 2022 at 3:37 AM jameszxj <james...@gmail.com> wrote:

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

So the patch you posted fixes this?

This should be the ticket https://devel.rtems.org/ticket/4208

Ryan.. the patch he posted got turned into HTML and can't be applied. Can
you try to make the change and verify it.

https://lists.rtems.org/pipermail/devel/2022-April/071042.html

Please give him authorship credit when you commit it.

>
>
> I change "--host=none-${host_vendor}-${host_os}
> --target=none-${host_vendor}-${host_os}"
> to "--host=${host_alias} --target=${host_alias}", the
> building&nbsp;succeeds.
> &nbsp;&nbsp;
>
>
> ------------------&nbsp;Original&nbsp;------------------
> 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
>
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to