[Clfs-support] Building ARMv6 uClibc-ng cross-compiler

Michele Bucca michele.bucca at gmail.com
Fri Nov 18 14:38:34 PST 2016


Il 18 nov 2016 9:27 PM, "Andrew Bradford"
<andrew at bradfordembedded.com> ha scritto:
>
> Hi Michele,
>
> On 11/16 10:08, Michele Bucca wrote:
> > Hello, I'm trying to build a cross compiler for arm v6 machines  without
> > float on my computer. Debian 8
> >
> > the target I'm trying to use for the build is arm-linux-uclibc but
> > configure recognises it as arm-unknown-linux-uclibc and gcc does not
> > recognise as a valid target when I give the command "make"
>
> Can you share what the actual build error is?  And does this error from
> make happen when you're compiling the first pass of GCC or at some other
> time?

the  error was gcc-all target not valid during the make process

>
> arm-unknown-linux-uclibc should be a valid triplet according to GCC, as
> far as I can tell.

I've used arm-unknown-linux-uclibcgnueabi

>
> What versions of binutils, GCC, and uClibc are you using?

Gcc 6.2.0
Binutiils 2.27
uClibc-ng 1.0.17
MPC 1.0.3
GMP 6.1.1
MPFR 3.1.4
Linux 4.7.2

>
> > There's no book on clfs.org that builds by hand a uclibc toolchain and I
> > want to learn to build one to compile static software (qemu as a console
> > command)to run on android. I've already succeeded building qemu statically
> > with a glibc arm compiler but it does not work well as glibc suck for
> > static compiling. Can you help me with building GCC? I'm building the first
> > pass GCC
>
> Are you building for a no-mmu system?  If not, are you able to follow
> the current embedded book using musl libc and compile statically linked
> executables?
>

The CPU that will run the executables is a Qualcomm Snapdragon 400/410
Architecture ARM Cortex-A53 (revision r0p0)
I don't know anything else

GCC is built using --with-arch=armv6 --with-float=soft


> If you are able to build using musl, then at least it would narrow down
> the problem to how you're using uClibc.

On the page below it is shown that QEMU can't be build with musl. I
know that there are patches out there but I don't want to edit the
code of the tarball as I want to keep it as intact as possible.

http://wiki.musl-libc.org/wiki/Pkgsrc_results

Like now I've installed uClibc, let's hope that anything will go well
(at least when building the toolchain)
I wanted to learn how to make this toolchain because all I can find
about arm uclibc toolchains is the buildroot package that may be
really neat for what I want to do but it does not let me to study how
the toolchain is made. To build this thing I'm using multiple sources:
the clfs-embedded book, the LFS book and sometimes even the CLFS-3.0
(sysvinit) book.

I'll keep you Informed if you wish
If you have other suggestions or warnings that would be appreciated

-- Michele
>
> Thanks,
> Andrew
> _______________________________________________
> Clfs-support mailing list
> Clfs-support at lists.clfs.org
> http://lists.clfs.org/listinfo.cgi/clfs-support-clfs.org



More information about the Clfs-support mailing list