Opened on 01/01/21 at 14:34:30
Last modified on 11/29/22 at 23:28:05
#4208 assigned defect
RSB: GMP not configured correctly in MSYS in newlib build step
Reported by: | rmueller | Owned by: | Needs Funding |
---|---|---|---|
Priority: | normal | Milestone: | Indefinite |
Component: | admin | Version: | 7 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: |
Description
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
Change History (4)
comment:1 Changed on 01/01/21 at 14:39:18 by rmueller
Summary: | GMP not configured correctly in MSYS in newlib build step → RSB: GMP not configured correctly in MSYS in newlib build step |
---|
comment:2 Changed on 01/01/21 at 14:41:37 by rmueller
comment:3 Changed on 05/17/22 at 05:41:02 by zhengxiaojun
edit the Makefile.in in gcc source directory, change GMP configure line "--host=none-${host_vendor}-${host_os} --target=none-${host_vendor}-${host_os}"
to "--host=${host_alias} --target=${host_alias}", the build will be success.
comment:4 Changed on 11/29/22 at 23:28:05 by Chris Johns
Milestone: | 6.1 → Indefinite |
---|---|
Owner: | set to Needs Funding |
Status: | new → assigned |
Version: | 6 → 7 |
Could not attach file. Find it here:
https://drive.google.com/file/d/1zKp7IWn9hW_5QvE92UA2oNz24TKs6uMc/view?usp=sharing
To reproduce the issue, run the following RSB set-builder command on Windows 10 on a x86_64 system:
../source-builder/sb-set-builder --prefix=$RTEMS_TOOLS 6/rtems-arm