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

:~/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

[email protected]:~/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

[email protected]:~/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"

[email protected]:~/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‘.

[email protected]:~/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‘.

[email protected]:~/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] 中断

[email protected]:~/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] 中断

[email protected]:~/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] 中断

[email protected]:~/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] / [email protected]:~/ARM9/Tools/arm-linux-tools/crosstool$

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

时间: 2024-09-29 13:33:04

Ubuntu 编译 ARM-Linux-Gcc 工具链 -- 编译过程的相关文章

【转】Ubuntu安装ARM架构GCC工具链(ubuntu install ARM toolchain)最简单办法

原文网址:http://www.cnblogs.com/muyun/p/3370996.html 一.安装ARM-Linux-GCC工具链 只需要一句命令: sudo apt-get install gcc-arm-linux-gnueabi 前提是你的Ubuntu系统版本是官网支持的最新的版本,若不是,请升级.执行以上命令即可. 二.使用工具链 注意!这里不能使用 gcc 命令来召唤它.它的名字是 arm-linux-gnueabi-gcc .如果出现 Command Not Found,请关

嵌入式交叉工具链编译

读者可能会有疑问,为什么要用交叉编译器?交叉编译通俗地讲就是在一种平台上编译出能运行在体系结构不同的另一种平台上的程序,比如在PC平台 (X86 CPU)上编译出能运行在以ARM为内核的CPU平台上的程序,编译得到的程序在X86 CPU平台上是不能运行的,必须放到ARM CPU平台上才能运行,虽然两个平台用的都是Linux系统.这种方法在异平台移植和嵌入式开发时非常有用.相对与交叉编译,平常做的编译叫本地编译,也 就是在当前平台编译,编译得到的程序也是在本地执行.用来编译这种跨平台程序的编译器就

Linux下开发stm32(一) | 使用gcc-arm-none-eabi工具链编译(转)

[STM32开发环境]Linux下开发stm32(一) | 使用gcc-arm-none-eabi工具链编译 原文地址:https://www.cnblogs.com/LittleTiger/p/12696038.html

Linux下获取arm的交叉编译工具链

转载请注明文章:Linux下获取arm的交叉编译工具链 出处:多客博图 这里介绍,Linux下获取arm的交叉编译工具链,比如arm-linux-gnueabihf-gcc.arm-linux-gneabihf-gcc等. 前言 这里有一个专门的说法: “arm-linux-gnueabihf-gcc是由 Linaro 公司基于GCC推出的的ARM交叉编译工具.可用于交叉编译ARM系统中所有环节的代码,包括裸机程序.u-boot.Linux kernel.filesystem和App应用程序.使

ubuntu下stm32交叉工具链 构建过程1

说实话,这个过程将是十分折腾的过程,而且不一定成功,所以,我的很多朋友在听到我说要做这件事情的时候,都给我泼冷水. 但是,我还是想努力,因为这次我是下决心,非要反微软到底. 就算这个过程再难——我脑海里经常闪现起 勇敢的心 里 华伦士 最后受尽极性 仍然高喊 自由的情景. 我对自己说,也是激励自己:只有这样的人才有权利追求和获得自由. 这件事,难就难在我发现我光是为了获取一个可用的gcc编译器,在codesourcery codebench上下载下来都这么费劲. 我的网络速度相当快,但不知为什么

arm嵌入式交叉编译工具链

1.arm-linux-gcc 常用的参数:-o[制定输出文件名] -c[只到编译停止,不连接] -g[键入调试信息] -xO[优化级别] -w/W(警告等级) arm-linux-gcc -o dest source,直接编译出可执行文件elf格式 arm-linux-gcc -o dest source -c 只编译不连接,生成.o格式的库文件,用来提供给连接器连接成elf 其他的参数可以在GCC的手册中了解所有信息. 2.arm-linux-ld 如果GCC中使用的-c,需要arm-lin

64位的ubuntu14.04 LTS安装 Linux交叉编译工具链及32位“ia32-libs”依赖库

ubuntu又迎来了其新一代的长期支持版本 14.04 LTS,其带来了许多令人期待的新特新,遂决定进行升级. 装好了64位版本及安装 Linux交叉编译工具链 运行GCC,${CROSS_COMPILE}gcc -v 依然会提示那经典的“没有那个文件或目录”提示. 根据以往的经验,对于64位版本ubuntu我们需要安装“ia32-libs”依赖库. 遂输入: sudo apt-get install ia32-lib 却提示查无此货? ubuntu 14.04强制安装ia32-libs 参考u

嵌入式linux交叉工具链的简单使用

交叉工具链 对于一个简单的hello.c程序 #include<stdio.h> void main() { printf("hello world ->\n"); } 我们在Linux编译时使用gcc gcc hello.c -o hello  (-o重命名):但是编译后拷贝到arm里面无法使用,我们需要专门的编译器来编译,我们将写好的程序hello.c在 Linux里面不在使用gcc编译了,使用arm-gcc来编译了 arm-linux-gcc hello.c -

gcc工具链简述

工具链软件包括BINUTILS.GCC.GLIBC.GDB等. BINUTILS是二进制程序处理工具,包括链接器.汇编器等目标程序处理的工具. GCC(GNU Compiler Collection)是编译器.对于C/C++语言的完整支持,需要支持glibc库. GLIBC是应用程序编程的函数库软件包,可以编译生成静态库和共享库.完整的GCC需要支持glibc. GDB是调试工具,可以读取可执行程序中的符号表,对程序进行源码调试. 默认情况下,GNU编译器生成的目标文件格式为elf格式. elf

ubuntu 交叉编译arm linux 内核小例子

下载arm-linux-gcc 4.2.3http://code.google.com/p/princess-alist/downloads/detail?name=arm-linux-gcc-4.3.2.tgz&can=2&q= 安装arm-linux-gcc 4.2.3sudo tar  xvzf arm-linux-gcc-4.3.2.tar.gz  -C / 此时将安装到/usr/local/arm下面 设置环境变量 gedit ~/.profile在打开的文件最后加入以下命令ex