码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu 编译 ARM-Linux-Gcc 工具链 -- 编译过程

时间:2018-02-14 12:53:54      阅读:877      评论:0      收藏:0      [点我收藏+]

标签:user   info   let   str   extract   bic   armv6   dbi   ace   

:~/ARM9/Tools/arm-linux-tools/crosstool$ ct-ng list-samples

Status Sample name

LN config

MKDIR config.gen

IN config.gen/arch.in

IN config.gen/kernel.in

IN config.gen/cc.in

IN config.gen/binutils.in

IN config.gen/libc.in

IN config.gen/debug.in

IN config.gen/companion_tools.in

[G..] aarch64-rpi3-linux-gnueabi

[G..] aarch64-unknown-linux-gnueabi

[G..] aarch64-unknown-linux-uclibcgnueabi

[G..] alphaev56-unknown-linux-gnu

[G..] alphaev67-unknown-linux-gnu

[G..] arm-bare_newlib_cortex_m3_nommu-eabi

[G..] arm-cortex_a15-linux-gnueabihf

[G.X] arm-cortexa5-linux-uclibcgnueabihf

[G..] arm-cortex_a8-linux-gnueabi

[G.X] arm-cortexa9_neon-linux-gnueabihf

[G.X] x86_64-w64-mingw32,arm-cortexa9_neon-linux-gnueabihf

[G..] armeb-unknown-eabi

[G..] armeb-unknown-linux-gnueabi

[G..] armeb-unknown-linux-uclibcgnueabi

[G..] arm-multilib-linux-uclibcgnueabi

[G..] arm-nano-eabi

[G..] arm-unknown-eabi

[G..] arm-unknown-linux-gnueabi

[G.X] arm-unknown-linux-musleabi

[G..] arm-unknown-linux-uclibcgnueabi

[G.X] arm-unknown-linux-uclibcgnueabihf

[G..] armv6-nommu-linux-uclibcgnueabi

[G..] armv6-rpi-linux-gnueabi

[G..] armv7-rpi2-linux-gnueabihf

[G..] armv8-rpi3-linux-gnueabihf

[G..] avr

[G..] i586-geode-linux-uclibc

[G..] i686-centos6-linux-gnu

[G..] i686-centos7-linux-gnu

[G..] i686-nptl-linux-gnu

[G..] i686-ubuntu12.04-linux-gnu

[G..] i686-ubuntu14.04-linux-gnu

[G..] i686-ubuntu16.04-linux-gnu

[G.X] i686-w64-mingw32

[G..] m68k-unknown-elf

[G..] m68k-unknown-uclinux-uclibc

[G..] powerpc-unknown-linux-uclibc,m68k-unknown-uclinux-uclibc

[G..] mips64el-multilib-linux-uclibc

[G..] mips-ar2315-linux-gnu

[G..] mipsel-multilib-linux-gnu

[G..] mipsel-sde-elf

[G..] mipsel-unknown-linux-gnu

[G..] mips-malta-linux-gnu

[G..] mips-unknown-elf

[G..] mips-unknown-linux-uclibc

[G.X] i686-w64-mingw32,nios2-spico-elf

[G..] powerpc-405-linux-gnu

[G..] powerpc64le-unknown-linux-gnu

[G..] powerpc64-multilib-linux-gnu

[G..] powerpc64-unknown-linux-gnu

[G..] powerpc-860-linux-gnu

[G..] powerpc-e300c3-linux-gnu

[G..] powerpc-e500v2-linux-gnuspe

[G..] x86_64-multilib-linux-uclibc,powerpc-unknown-elf

[G..] powerpc-unknown-linux-gnu

[G..] powerpc-unknown-linux-uclibc

[G..] powerpc-unknown_nofpu-linux-gnu

[G.X] s390-ibm-linux-gnu

[G..] s390x-ibm-linux-gnu

[G..] sh4-multilib-linux-gnu

[G..] sh4-multilib-linux-uclibc

[G..] sh4-unknown-linux-gnu

[G..] sparc64-multilib-linux-gnu

[G..] sparc-leon-linux-uclibc

[G..] sparc-unknown-linux-gnu

[G..] x86_64-centos6-linux-gnu

[G..] x86_64-centos7-linux-gnu

[G..] x86_64-multilib-linux-gnu

[G.X] x86_64-multilib-linux-musl

[G..] x86_64-multilib-linux-uclibc

[G.X] x86_64-w64-mingw32,x86_64-pc-linux-gnu

[G..] x86_64-ubuntu12.04-linux-gnu

[G..] x86_64-ubuntu14.04-linux-gnu

[G..] x86_64-ubuntu16.04-linux-gnu

[G..] x86_64-unknown-linux-gnu

[G..] x86_64-unknown-linux-uclibc

[G.X] x86_64-w64-mingw32

[G..] xtensa-fsf-linux-uclibc

L (Local) : sample was found in current directory

G (Global) : sample was installed with crosstool-NG

X (EXPERIMENTAL): sample may use EXPERIMENTAL features

B (BROKEN) : sample is currently broken

liu@liu:~/ARM9/Tools/arm-linux-tools/crosstool$ ct-ng show-arm-unknown-linux-gnueabi

IN config.gen/arch.in

IN config.gen/kernel.in

IN config.gen/cc.in

IN config.gen/binutils.in

IN config.gen/libc.in

IN config.gen/debug.in

[G..] arm-unknown-linux-gnueabi

OS : linux-4.10.8

Companion libs : gmp-6.1.2 mpfr-3.1.5 isl-0.16.1 mpc-1.0.3 libelf-0.8.13 expat-2.2.0 ncurses-6.0

binutils : binutils-2.28

C compilers : gcc | 6.3.0

Languages : C,C++

C library : glibc-2.25 (threads: nptl)

Tools : duma-2_5_15 gdb-7.12.1 ltrace-0.7.3 strace-4.16

liu@liu:~/ARM9/Tools/arm-linux-tools/crosstool$ ct-ng arm-unknown-linux-gnueabi

CONF config/config.in

#

# configuration written to .config

#

 

***********************************************************

 

Initially reported by: Alexander BIGGA

URL: http://sourceware.org/ml/crossgcc/2008-06/msg00031.html

 

***********************************************************

 

Now configured for "arm-unknown-linux-gnueabi"

liu@liu:~/ARM9/Tools/arm-linux-tools/crosstool$ ct-ng menuconfig

CONF config/config.in

 

 

*** End of the configuration.

*** Execute ‘ct-ng build‘ to start the build or try ‘ct-ng help‘.

 

liu@liu:~/ARM9/Tools/arm-linux-tools/crosstool$ ct-ng menuconfig

CONF config/config.in

 

 

*** End of the configuration.

*** Execute ‘ct-ng build‘ to start the build or try ‘ct-ng help‘.

 

liu@liu:~/ARM9/Tools/arm-linux-tools/crosstool$ ct-ng build.4

[INFO ] Performing some trivial sanity checks

[INFO ] Build started 20180202.100904

[INFO ] Building environment variables

[EXTRA] Preparing working directories

[EXTRA] Installing user-supplied crosstool-NG configuration

[EXTRA] =================================================================

[EXTRA] Dumping internal crosstool-NG configuration

[EXTRA] Building a toolchain for:

[EXTRA] build = x86_64-pc-linux-gnu

[EXTRA] host = x86_64-pc-linux-gnu

[EXTRA] target = arm-s3c2440a-linux-gnueabi

[EXTRA] Dumping internal crosstool-NG configuration: done in 0.13s (at 00:04)

[INFO ] =================================================================

[INFO ] Retrieving needed toolchain components‘ tarballs

[EXTRA] Retrieving ‘libtool-2.4.6‘

[EXTRA] Saving ‘libtool-2.4.6.tar.xz‘ to local storage

[EXTRA] Retrieving ‘gmp-6.1.2‘

[EXTRA] Saving ‘gmp-6.1.2.tar.xz‘ to local storage

[EXTRA] Retrieving ‘mpfr-3.1.5‘

[EXTRA] Saving ‘mpfr-3.1.5.tar.xz‘ to local storage

[EXTRA] Retrieving ‘isl-0.16.1‘

[EXTRA] Saving ‘isl-0.16.1.tar.xz‘ to local storage

[EXTRA] Retrieving ‘mpc-1.0.3‘

[EXTRA] Saving ‘mpc-1.0.3.tar.gz‘ to local storage

[EXTRA] Retrieving ‘libelf-0.8.13‘

[EXTRA] Saving ‘libelf-0.8.13.tar.gz‘ to local storage

[EXTRA] Retrieving ‘expat-2.2.0‘

[EXTRA] Saving ‘expat-2.2.0.tar.bz2‘ to local storage

[EXTRA] Retrieving ‘ncurses-6.0‘

[EXTRA] Saving ‘ncurses-6.0.tar.gz‘ to local storage

[EXTRA] Retrieving ‘libiconv-1.15‘

[EXTRA] Saving ‘libiconv-1.15.tar.gz‘ to local storage

[EXTRA] Retrieving ‘gettext-0.19.8.1‘

[EXTRA] Saving ‘gettext-0.19.8.1.tar.xz‘ to local storage

[EXTRA] Retrieving ‘binutils-2.28‘

[EXTRA] Saving ‘binutils-2.28.tar.bz2‘ to local storage

[EXTRA] Retrieving ‘gcc-5.4.0‘

[36:54] \ ^C/home/liu/ARM9/Tools/arm-linux-tools/coosstool-install/bin/ct-ng:147: recipe for target ‘build‘ failed

make[1]: *** [build] 中断

/home/liu/ARM9/Tools/arm-linux-tools/coosstool-install/bin/ct-ng:150: recipe for target ‘build.4‘ failed

make: *** [build.4] 中断

 

liu@liu:~/ARM9/Tools/arm-linux-tools/crosstool$ ct-ng build.4

[INFO ] Performing some trivial sanity checks

[INFO ] Build started 20180202.104604

[INFO ] Building environment variables

[EXTRA] Preparing working directories

[EXTRA] Installing user-supplied crosstool-NG configuration

[EXTRA] =================================================================

[EXTRA] Dumping internal crosstool-NG configuration

[EXTRA] Building a toolchain for:

[EXTRA] build = x86_64-pc-linux-gnu

[EXTRA] host = x86_64-pc-linux-gnu

[EXTRA] target = arm-s3c2440a-linux-gnueabi

[EXTRA] Dumping internal crosstool-NG configuration: done in 0.11s (at 00:02)

[INFO ] =================================================================

[INFO ] Retrieving needed toolchain components‘ tarballs

[EXTRA] Retrieving ‘glibc-2.25‘

[00:04] / ^C/home/liu/ARM9/Tools/arm-linux-tools/coosstool-install/bin/ct-ng:147: recipe for target ‘build‘ failed

make[1]: *** [build] 中断

/home/liu/ARM9/Tools/arm-linux-tools/coosstool-install/bin/ct-ng:150: recipe for target ‘build.4‘ failed

make: *** [build.4] 中断

 

liu@liu:~/ARM9/Tools/arm-linux-tools/crosstool$ ct-ng build.4

[INFO ] Performing some trivial sanity checks

[INFO ] Build started 20180202.104633

[INFO ] Building environment variables

[EXTRA] Preparing working directories

[EXTRA] Installing user-supplied crosstool-NG configuration

[EXTRA] =================================================================

[EXTRA] Dumping internal crosstool-NG configuration

[EXTRA] Building a toolchain for:

[EXTRA] build = x86_64-pc-linux-gnu

[EXTRA] host = x86_64-pc-linux-gnu

[EXTRA] target = arm-s3c2440a-linux-gnueabi

[EXTRA] Dumping internal crosstool-NG configuration: done in 0.11s (at 00:02)

[INFO ] =================================================================

[INFO ] Retrieving needed toolchain components‘ tarballs

[EXTRA] Retrieving ‘duma_2_5_15‘

[EXTRA] Saving ‘duma_2_5_15.tar.gz‘ to local storage

[EXTRA] Retrieving ‘gdb-7.12.1‘

[00:35] / ^C/home/liu/ARM9/Tools/arm-linux-tools/coosstool-install/bin/ct-ng:147: recipe for target ‘build‘ failed

make[1]: *** [build] 中断

/home/liu/ARM9/Tools/arm-linux-tools/coosstool-install/bin/ct-ng:150: recipe for target ‘build.4‘ failed

make: *** [build.4] 中断

 

liu@liu:~/ARM9/Tools/arm-linux-tools/crosstool$ ct-ng build.4

[INFO ] Performing some trivial sanity checks

[INFO ] Build started 20180202.104750

[INFO ] Building environment variables

[EXTRA] Preparing working directories

[EXTRA] Installing user-supplied crosstool-NG configuration

[EXTRA] =================================================================

[EXTRA] Dumping internal crosstool-NG configuration

[EXTRA] Building a toolchain for:

[EXTRA] build = x86_64-pc-linux-gnu

[EXTRA] host = x86_64-pc-linux-gnu

[EXTRA] target = arm-s3c2440a-linux-gnueabi

[EXTRA] Dumping internal crosstool-NG configuration: done in 0.11s (at 00:03)

[INFO ] =================================================================

[INFO ] Retrieving needed toolchain components‘ tarballs

[INFO ] Retrieving needed toolchain components‘ tarballs: done in 0.22s (at 00:03)

[INFO ] =================================================================

[INFO ] Extracting and patching toolchain components

[EXTRA] Extracting ‘libtool-2.4.6‘

[EXTRA] Patching ‘libtool-2.4.6‘

[EXTRA] Extracting ‘linux-3.2.87‘

[EXTRA] Patching ‘linux-3.2.87‘

[EXTRA] Extracting ‘gmp-6.1.2‘

[EXTRA] Patching ‘gmp-6.1.2‘

[EXTRA] Extracting ‘mpfr-3.1.5‘

[EXTRA] Patching ‘mpfr-3.1.5‘

[EXTRA] Extracting ‘isl-0.16.1‘

[EXTRA] Patching ‘isl-0.16.1‘

[EXTRA] Extracting ‘mpc-1.0.3‘

[EXTRA] Patching ‘mpc-1.0.3‘

[EXTRA] Extracting ‘libelf-0.8.13‘

[EXTRA] Patching ‘libelf-0.8.13‘

[EXTRA] Extracting ‘expat-2.2.0‘

[EXTRA] Patching ‘expat-2.2.0‘

[EXTRA] Extracting ‘ncurses-6.0‘

[EXTRA] Patching ‘ncurses-6.0‘

[EXTRA] Extracting ‘libiconv-1.15‘

[EXTRA] Patching ‘libiconv-1.15‘

[EXTRA] Extracting ‘gettext-0.19.8.1‘

[EXTRA] Patching ‘gettext-0.19.8.1‘

[EXTRA] Extracting ‘binutils-2.28‘

[EXTRA] Patching ‘binutils-2.28‘

[EXTRA] Extracting ‘gcc-5.4.0‘

[EXTRA] Patching ‘gcc-5.4.0‘

[EXTRA] Extracting ‘glibc-2.25‘

[EXTRA] Patching ‘glibc-2.25‘

[EXTRA] Extracting ‘duma_2_5_15‘

[EXTRA] Patching ‘duma-2_5_15‘

[EXTRA] Extracting ‘gdb-7.12.1‘

[EXTRA] Patching ‘gdb-7.12.1‘

[EXTRA] Extracting ‘ltrace-0.7.3‘

[EXTRA] Patching ‘ltrace-0.7.3‘

[EXTRA] Extracting ‘strace-4.16‘

[EXTRA] Patching ‘strace-4.16‘

[INFO ] Extracting and patching toolchain components: done in 95.60s (at 01:39)

[INFO ] =================================================================

[INFO ] Installing libtool for build

[EXTRA] Configuring libtool

[EXTRA] Building libtool

[EXTRA] Installing libtool

[INFO ] Installing libtool for build: done in 29.05s (at 02:08)

[INFO ] =================================================================

[INFO ] Installing ncurses for build

[EXTRA] Configuring ncurses

[EXTRA] Building ncurses

[EXTRA] Installing ncurses

[INFO ] Installing ncurses for build: done in 37.30s (at 02:45)

[INFO ] =================================================================

[INFO ] Installing GMP for host

[EXTRA] Configuring GMP

[EXTRA] Building GMP

[EXTRA] Installing GMP

[INFO ] Installing GMP for host: done in 114.64s (at 04:40)

[INFO ] =================================================================

[INFO ] Installing MPFR for host

[EXTRA] Configuring MPFR

[EXTRA] Building MPFR

[EXTRA] Installing MPFR

[INFO ] Installing MPFR for host: done in 53.98s (at 05:34)

[INFO ] =================================================================

[INFO ] Installing ISL for host

[EXTRA] Configuring ISL

[EXTRA] Building ISL

[EXTRA] Installing ISL

[INFO ] Installing ISL for host: done in 61.79s (at 06:35)

[INFO ] =================================================================

[INFO ] Installing MPC for host

[EXTRA] Configuring MPC

[EXTRA] Building MPC

[EXTRA] Installing MPC

[INFO ] Installing MPC for host: done in 25.10s (at 07:01)

[INFO ] =================================================================

[INFO ] Installing expat for host

[EXTRA] Configuring expat

[EXTRA] Building expat

[EXTRA] Installing expat

[INFO ] Installing expat for host: done in 10.33s (at 07:11)

[INFO ] =================================================================

[INFO ] Installing ncurses for host

[EXTRA] Configuring ncurses

[EXTRA] Building ncurses

[EXTRA] Installing ncurses

[INFO ] Installing ncurses for host: done in 35.98s (at 07:47)

[INFO ] =================================================================

[INFO ] Installing libiconv for host

[EXTRA] Skipping (included in GNU C library)

[INFO ] Installing libiconv for host: done in 0.02s (at 07:47)

[INFO ] =================================================================

[INFO ] Installing gettext for host

[EXTRA] Skipping (included in GNU C library)

[INFO ] Installing gettext for host: done in 0.01s (at 07:47)

[INFO ] =================================================================

[INFO ] Installing binutils for host

[EXTRA] Configuring binutils

[EXTRA] Building binutils

[EXTRA] Installing binutils

[EXTRA] Installing ld wrapper

[INFO ] Installing binutils for host: done in 365.27s (at 13:52)

[INFO ] =================================================================

[INFO ] Installing pass-1 core C gcc compiler

[EXTRA] Configuring core C gcc compiler

[EXTRA] Building gcc

[EXTRA] Installing gcc

[EXTRA] Housekeeping for core gcc compiler

[EXTRA] ‘‘ --> lib (gcc) lib (os)

[INFO ] Installing pass-1 core C gcc compiler: done in 682.13s (at 25:14)

[INFO ] =================================================================

[INFO ] Installing kernel headers

[EXTRA] Installing kernel headers

[INFO ] Installing kernel headers: done in 5.13s (at 25:20)

[INFO ] =================================================================

[INFO ] Installing C library headers & start files

[INFO ] =================================================================

[INFO ] Building for multilib 1/1: ‘‘

[EXTRA] Configuring C library

[EXTRA] Installing C library headers

[EXTRA] Installing C library start files

[INFO ] Building for multilib 1/1: ‘‘: done in 24.14s (at 25:44)

[INFO ] Installing C library headers & start files: done in 24.22s (at 25:44)

[INFO ] =================================================================

[INFO ] Installing pass-2 core C gcc compiler

[EXTRA] Configuring core C gcc compiler

[EXTRA] Building gcc

[EXTRA] Installing gcc

[EXTRA] Housekeeping for core gcc compiler

[EXTRA] ‘‘ --> lib (gcc) lib (os)

[INFO ] Installing pass-2 core C gcc compiler: done in 873.50s (at 40:17)

[INFO ] =================================================================

[INFO ] Installing C library

[INFO ] =================================================================

[INFO ] Building for multilib 1/1: ‘‘

[EXTRA] Cleaning up start files

[EXTRA] Configuring C library

[EXTRA] Building C library

[EXTRA] Installing C library

[INFO ] Building for multilib 1/1: ‘‘: done in 614.55s (at 50:32)

[INFO ] Installing C library: done in 614.63s (at 50:32)

[INFO ] =================================================================

[INFO ] Installing final gcc compiler

[EXTRA] Configuring final gcc compiler

[EXTRA] Building final gcc compiler

[EXTRA] Installing final gcc compiler

[EXTRA] Housekeeping for final gcc compiler

[EXTRA] ‘‘ --> lib (gcc) lib (os)

[INFO ] Installing final gcc compiler: done in 1050.18s (at 68:02)

[INFO ] =================================================================

[INFO ] Installing libelf for the target

[EXTRA] Configuring libelf

[EXTRA] Building libelf

[EXTRA] Installing libelf

[INFO ] Installing libelf for the target: done in 7.71s (at 68:10)

[INFO ] =================================================================

[INFO ] Installing expat for target

[EXTRA] Configuring expat

[EXTRA] Building expat

[EXTRA] Installing expat

[INFO ] Installing expat for target: done in 14.14s (at 68:24)

[INFO ] =================================================================

[INFO ] Installing ncurses for target

[EXTRA] Configuring ncurses

[EXTRA] Building ncurses

[EXTRA] Installing ncurses

[INFO ] Installing ncurses for target: done in 57.66s (at 69:22)

[INFO ] =================================================================

[INFO ] Installing D.U.M.A.

[EXTRA] Copying sources

[EXTRA] Building D.U.M.A

[EXTRA] Installing D.U.M.A

[EXTRA] Installing wrapper script

[INFO ] Installing D.U.M.A.: done in 2.84s (at 69:25)

[INFO ] =================================================================

[INFO ] Installing cross-gdb

[EXTRA] Configuring cross-gdb

[EXTRA] Building cross-gdb

[EXTRA] Installing cross-gdb

[EXTRA] Installing ‘.gdbinit‘ template

[INFO ] Installing cross-gdb: done in 257.35s (at 73:42)

[INFO ] =================================================================

[INFO ] Installing native gdb

[EXTRA] Configuring native gdb

[EXTRA] Building native gdb

[EXTRA] Installing native gdb

[INFO ] Installing native gdb: done in 338.63s (at 79:21)

[INFO ] =================================================================

[INFO ] Installing gdbserver

[EXTRA] Configuring gdbserver

[EXTRA] Building gdbserver

[EXTRA] Installing gdbserver

[INFO ] Installing gdbserver: done in 79.49s (at 80:40)

[INFO ] =================================================================

[INFO ] Installing ltrace

[EXTRA] Copying sources to build dir

[EXTRA] Configuring ltrace

[EXTRA] Building ltrace

[EXTRA] Installing ltrace

[INFO ] Installing ltrace: done in 29.12s (at 81:09)

[INFO ] =================================================================

[INFO ] Installing strace

[EXTRA] Configuring strace

[EXTRA] Building strace

[EXTRA] Installing strace

[INFO ] Installing strace: done in 54.00s (at 82:03)

[INFO ] =================================================================

[INFO ] Finalizing the toolchain‘s directory

[INFO ] Stripping all toolchain executables

[EXTRA] Installing the populate helper

[EXTRA] Installing a cross-ldd helper

[EXTRA] Creating toolchain aliases

[INFO ] Finalizing the toolchain‘s directory: done in 2.41s (at 82:06)

[INFO ] Build completed at 20180202.120955

[INFO ] (elapsed: 82:04.54)

[INFO ] Finishing installation (may take a few seconds)...

[82:06] / liu@liu:~/ARM9/Tools/arm-linux-tools/crosstool$

 

Ubuntu 编译 ARM-Linux-Gcc 工具链 -- 编译过程

标签:user   info   let   str   extract   bic   armv6   dbi   ace   

原文地址:https://www.cnblogs.com/liuyunxiang/p/8448150.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!