[RTEMS Project] #4208: GMP not configured correctly in MSYS in newlib build step
RTEMS trac
trac at rtems.org
Fri Jan 1 14:34:30 UTC 2021
#4208: GMP not configured correctly in MSYS in newlib build step
-----------------------+--------------------
Reporter: rmueller | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 6.1
Component: admin | Version: 6
Severity: normal | Keywords:
Blocked By: | Blocking:
-----------------------+--------------------
I had issues with a Cxc cross-compiled toolchain (ARM) on Windows so I
tried to recompile it natively (there were some updates, GMP is built
now).
However, there are issues building newlib related to GMP. The build is
configured with the following options:
configure: summary of build options:
Version: GNU MP 6.1.0
Host type: none-w64-mingw32
ABI: standard
Install prefix: /c/Users/Robin/Documents/RTEMS/rtems-tools/rtems/6
Compiler: x86_64-w64-mingw32-gcc -O2 -g -pipe
-I/c/Users/Robin/Documents/RTEMS/rtems-
tools/src/rsb/rtems/build/tmp/sb-197609/6a/c/Users/Robin/Documents/RTEMS
/rtems-tools/rtems/6/include
Static libraries: yes
Shared libraries: no
And the build fails with the following error:
In file included from ../../../gnu-mirror-gcc-03e2d83/gmp/gmp-impl.h:146,
from fib_table.c:4:
../fib_table.h:4:1: warning: data definition has no type or storage class
4 | Error, error, this data is for 32 bits
| ^~~~~
../fib_table.h:4:1: warning: type defaults to 'int' in declaration of
'Error' [-Wimplicit-int]
I tried to compile GMP separately, using the following commands:
./configure --prefix=/c/Users/Robin/Documents/RTEMS/rtems-tools/rtems/6
--disable-shared --enable-static
make
make install
And this appeared to work.
configure: summary of build options:
Version: GNU MP 6.1.0
Host type: x86_64-w64-mingw32
ABI: 64
Install prefix: /c/Users/Robin/Documents/RTEMS/rtems-tools/rtems/6
Compiler: gcc
Static libraries: yes
Shared libraries: no
Maybe ABI is not set properly? Also, GMP was alreay (successfully) built
so I am confused that it is built again as part of the newlib build with
these settings.
I am also a bit confused that Host was set to none-w64-mingw32
because the sb program recognized that the systemis a x86_64 system as
well (I printed out the value which is assigned to _build to test this in
the sb program).
I attached the error report as well
Kind Regards
Robin
--
Ticket URL: <http://devel.rtems.org/ticket/4208>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list