Opened on 05/26/23 at 13:15:02
Last modified on 06/06/23 at 09:20:05
#4911 assigned defect
RSB failed during canadian cross building
Reported by: | hguerard | Owned by: | Chris Johns |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | tool/rsb | Version: | 6 |
Severity: | normal | Keywords: | rsp |
Cc: | Blocked By: | ||
Blocking: |
Description
I am on a Linux Ubuntu build host with the MinGW packages installed (mingw-w64). The command line used is:
./source-builder/sb-set-builder --prefix=/home/vagrant/rtems-toolchain/output --with-rtems-bsp=xilinx_zynq_a9_qemu --host=i686-w64-mingw32 6/rtems-arm
During the build process, I have the following error:
make: Entering directory '/home/vagrant/rtems-toolchain/rsb/build/arm-rtems6-gcc-efc21f1-newlib-9ae9eef-i686-w64-mingw32-1/build-cxc' make[1]: Entering directory '/home/vagrant/rtems-toolchain/rsb/build/arm-rtems6-gcc-efc21f1-newlib-9ae9eef-i686-w64-mingw32-1/build-cxc' mkdir -p -- ./libiberty mkdir -p -- ./fixincludes mkdir -p -- ./intl mkdir -p -- ./mpfr Configuring in ./libiberty Configuring in ./fixincludes Configuring in ./intl Configuring in ./mpfr configure: creating cache ./config.cache checking for i686-w64-mingw32-gcc... i686-w64-mingw32-gcc ... ... configure: error: gmp.h can't be found, or is unusable. ... make[1]: *** [configure-mpfr] Error 1
Can you help me to resolve this issue?
Thanks,
Hubert
Change History (3)
comment:1 Changed on 05/30/23 at 11:12:10 by Frank Kuehndel
comment:2 Changed on 06/02/23 at 11:41:50 by hguerard
Hi Frank,
I have pin-point the commit which breaks the canadian cross-compilation. It is this one.
Looking at the commit diff, GMP is removed from the preparation of the compilation of GCC without telling GCC where the staged files for GMP are.
Hope this helps,
Hubert
comment:3 Changed on 06/06/23 at 09:20:05 by Frank Kuehndel
Component: | build → tool/rsb |
---|---|
Owner: | set to Chris Johns |
Status: | new → assigned |
Thanks Hubert!
Since the patch you found as cause of this problem is from Chris Johns, I will assign this ticked to him. Maybe he has an idea how to fix this issues and can help you.
Greetings
Frank
Hello Hubert,
I have no knowledge about MinGW. Without the
--host=i686-w64-mingw32
I would expect thesb-set-builder
to build the tools because it builds thegmp
itself during this process.The error above indicates that - for whatever reason - the
gmp
package cannot be found. The most pragmatic solution is to install it on the host. The package you need is usually calledgmp-devel
orlibgmp-devel
. Yet, in this case the gmp-library needs also be available on the machine on which the tools (esp.gdb
) are used.Greetings
Frank