GCC building help (GCC_NO_EXECUTABLES)

I’ve been trying to compile the devkitpro toolchain, it gets to stage2 of gcc and fails building libstdc++ giving the error below, they seem to either not be doing anything with their forum anymore or are incredibly slow at responding. Can anyone who has some experience with this explain what’s going on?

Code: Select all

checking for ISO C99 support to TR1 in <complex.h>... yes
checking for ISO C99 support to TR1 in <ctype.h>... yes
checking for fenv.h... (cached) yes
checking for ISO C99 support to TR1 in <fenv.h>... yes
checking for ISO C99 support to TR1 in <stdint.h>... yes
checking for ISO C99 support to TR1 in <math.h>... yes
checking for ISO C99 support to TR1 in <inttypes.h>... yes
checking for wchar_t ISO C99 support to TR1 in <inttypes.h>... yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking stdalign.h usability... yes
checking stdalign.h presence... yes
checking for stdalign.h... yes
checking for the value of EOF... -1
checking for the value of SEEK_CUR... 1
checking for the value of SEEK_END... 2
checking for gettimeofday... checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for gettimeofday... yes
checking for clock_gettime... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
gmake[1]: *** [Makefile:12192: configure-target-libstdc++-v3] Error 1
gmake[1]: Leaving directory '/home/laguest/src/game-dev/dsi/buildscripts-devkitARM_r67/.devkitARM/arm-none-eabi/gcc'
gmake: *** [Makefile:1057: all] Error 2
Error building gcc stage2

Checking the config.log:

configure:21536: checking for clock_gettime
configure:21536: error: Link tests are not allowed after GCC_NO_EXECUTABLES.

But that function does exist.

I’ve also tried to install their binaries and got nowhere. I really don’t understand how these people manage to build their own tools unless they’re releasing unbuildable scripts.

If none of the machines that toolchain targets is big endian, why build big endian?

Ok, just changed the target to armel-none-eabi and it built, so it really is missing clock_gettime for be systems. “Pro.” Pfft, hardly.

Ok, found out what the issue was.

I already had an arm-none-eabi toolchain from gentoo’s cross dev installed and it was referencing those libs for some reason.

This is what happens when you don’t port the tools properly, use a custom target triple and embed all the options into the toolchain.

So, deleted those crossdev packages and it built.

Jesus, everything they have is broken, either it doesn’t download or it doesn’t build.