[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Initial cross-compilation support
From: |
Ludovic Courtès |
Subject: |
Re: Initial cross-compilation support |
Date: |
Thu, 28 Mar 2013 14:38:07 +0100 |
User-agent: |
Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) |
Nikita Karetnikov <address@hidden> 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’.
- Re: Initial cross-compilation support, Andreas Enge, 2013/03/03
- Re: Initial cross-compilation support, Ludovic Courtès, 2013/03/03
- Re: Initial cross-compilation support, Nikita Karetnikov, 2013/03/28
- Re: Initial cross-compilation support,
Ludovic Courtès <=
- Re: Initial cross-compilation support, Nikita Karetnikov, 2013/03/28
- Re: Initial cross-compilation support, Ludovic Courtès, 2013/03/28
- Re: Initial cross-compilation support, Nikita Karetnikov, 2013/03/28
- Re: Initial cross-compilation support, Ludovic Courtès, 2013/03/29
- Re: Initial cross-compilation support, Nikita Karetnikov, 2013/03/29
- Re: Initial cross-compilation support, Ludovic Courtès, 2013/03/29
- Re: Initial cross-compilation support, Nikita Karetnikov, 2013/03/29
Re: Initial cross-compilation support, Nikita Karetnikov, 2013/03/03