Nikita Karetnikov <[email protected]> skribis:
> I tried to add
>
> "--with-arch=mips64"
> "--with-abi=64"
>
> to '#:configure-flags' of 'cross-gcc'. It failed:
So it’s glibc that fails to build, but the initial “sans libc”
cross-compiler is correctly built.
> /nix/store/g9js73bwv1fl92h1nnf50vf1619irnxf-gcc-cross-sans-libc-mips64el-linux-gnu-4.7.2/libexec/gcc/mips64el-linux-gnu/ld:
>
> /nix/store/g9js73bwv1fl92h1nnf50vf1619irnxf-gcc-cross-sans-libc-mips64el-linux-gnu-4.7.2/lib/gcc/mips64el-linux-gnu/4.7.2/libgcc.a(_fpcmp_parts_tf.o):
> ABI is incompatible with that of the selected emulation
This may indicate that glibc was built for N32, whereas libgcc &
co. were built for N64.
Can you run ‘file’ on libgcc.a (or one of the .o files it contains)?
Can you check in the glibc log whether a -mabi flag is passed?
You may need to explicitly add -mabi=64 for glibc. It should be
possible to do it with something like:
#:configure-flags '("CFLAGS=-mabi=64 -g -O2")
HTH,
Ludo’.