Hi,
Is arm-linux-gnueabihf-gcc not a cross compiler then?, it is in make output
Thanks
Jose
El 11/6/25 a las 23:53, Segher Boessenkool escribió:
Hi!
On Wed, Jun 11, 2025 at 11:17:06PM +0200, Jose Gomez wrote:
El 11/6/25 a las 19:55, Segher Boessenkool escribió:
$SOURCE_DIR/gcc-$GCC_VERSION/configure --prefix="$INSTALL_DIR"
--build=$MACHTYPE --host=arm-linux-gnueabihf
--target=arm-linux-gnueabihf --enable-languages=c,c++ --enable-multilib
--with-sysroot=/usr/arm-linux-gnueabihf
--with-native-system-header-dir=/include
make V=1 -j$(nproc)
That is not a cross-compiler. That is a cross-built native compiler.
To build that you need to have a cross-compiler already.
You want to just do a
$SOURCE_DIR/configure --prefix=$PREFIX --target=$TARGET
and no --host, and the other configure options only after you have seen
you do need them.
Make command stops:
arm-linux-gnueabihf-gcc -g -O2 -O2 -g -O2 -DIN_GCC -W -Wall
-Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC
-fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector
-fPIC -fno-inline -I. -I. -I../.././gcc
-I/gcc-host/source/gcc-14.2.0/libgcc
-I/gcc-host/source/gcc-14.2.0/libgcc/.
-I/gcc-host/source/gcc-14.2.0/libgcc/../gcc
-I/gcc-host/source/gcc-14.2.0/libgcc/../include -DHAVE_CC_TLS -o
pr-support.o -MT pr-support.o -MD -MP -MF pr-support.dep -fexceptions -c
/gcc-host/source/gcc-14.2.0/libgcc/config/arm/pr-support.c
-fvisibility=hidden -DHIDE_EXPORTS
/gcc-host/source/gcc-14.2.0/libgcc/config/arm/pr-support.c: In function
'__gnu_unwind_execute':
/gcc-host/source/gcc-14.2.0/libgcc/config/arm/pr-support.c:260:45:
error: '_UVRSC_PAC' undeclared (first use in this function); did you
mean '_UVRSC_FPA'?
260 | if (_Unwind_VRS_Pop (context,
_UVRSC_PAC, 0, _UVRSD_UINT32)
| ^~~~~~~~~~
| _UVRSC_FPA
This is defined in ginclude/unwind-arm-common.h . Figure out why that
isn't included in your config?
Or maybe it already works better if you no longer do superfluous and/or
cargo-cult configure options :-)
Segher