target triplets

Autoconf-generated configure scripts can make decisions based on a canonical name for the system type, or target triplet, which has the form: ‘cpu-vendor-os’, where os can be ‘system’ or ‘kernel-system’

configure can  guess the canonical name for the type of system it‘s running on. To do so it runs a script called config.guess, which infers the name using the uname command or symbols predefined by the C preprocessor.

Alternately, the user can specify the system type with command line arguments to configure (see System Type. Doing so is necessary when cross-compiling. In the most complex case of cross-compiling, three system types are involved. The options to specify them are:

--build=build-type

the type of system on which the package is being configured and compiled. It defaults to the result of running config.guess.

--host=host-type

the type of system on which the package runs. By default it is the same as the build machine. Specifying it enables the cross-compilation mode.

--target=target-type

the type of system for which any compiler tools in the package produce code (rarely needed). By default, it is the same as host.

gcc

-dumpmachine

Print the compiler’s target machine (for example, i686-pc-linux-gnu)---and don’t do anything else.

-dumpversion

Print the compiler version (for example, 3.0)---and don’t do anything else.

-dumpspecs

Print the compiler’s built-in specs---and don’t do anything else.  (This is used when GCC itself is being built.)

[[email protected] ~]$ gcc -dumpmachine

x86_64-redhat-linux

[[email protected] ~]$ gcc -v

Using built-in specs.

Target: x86_64-redhat-linux

[[[email protected] ~]$ ld -V

GNU ld version 2.20.51.0.2-5.44.el6 20100205

Supported emulations:

elf_x86_64

elf_i386

i386linux

elf_l1om

[[email protected] ~]$ uname -m -o

x86_64 GNU/Linux

$ as -v

GNU assembler version 2.20.51.0.2 (x86_64-redhat-linux) using BFD version version 2.20.51.0.2-5.44.el6

[[email protected] ~]$ file /usr/bin/file

/usr/bin/file: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

时间: 2024-11-08 19:17:04

target triplets的相关文章

rpm宏

/usr/lib/rpm/macros                rpm-4.8.0 /usr/lib/rpm/%{_target}/macros      rpm-4.8.0 /usr/lib/rpm/redhat/macros  redhat-rpm-config-9.0.3 /etc/rpm/macros.*   centos-release [/usr/lib/rpm/macros] # ---- per-platform macros. #   Macros that are sp

安装ARM交叉编译器

1.开发平台 虚拟机:VMware 12 操作系统:Ubuntu 14.04 64bit 2.准备ARM交叉编译工具包 编译uboot和linux kernel都需要ARM交叉工具链支持,这里使用Linaro提供的交叉编译工具.下载地址为:http://releases.linaro.org/ 注意:如果主机是64bit,请选择64位的交叉编译器工具链,32bit的主机选择32位的交叉工具链. The Linaro Toolchain Working Group is pleased to an

GCC 5 Release Series Changes, New Features, and Fi

GCC 5 Release Series Changes, New Features, and Fixes Caveats The default mode for C is now -std=gnu11 instead of -std=gnu89. The Graphite framework for loop optimizations no longer requires the CLooG library, only ISL version 0.14 (recommended) or 0

使用 IDEA 创建 Maven Web 项目 (异常)- Disconnected from the target VM, address: '127.0.0.1:59770', transport: 'socket'

运行环境: JDK 版本:1.8 Maven 版本:apache-maven-3.3.3 IDEA 版本:14 maven-jetty-plugin 配置: <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <configuration> <webAppSourceDirectory>${pro

10.23 linux任务计划cron10.24chkconfig工具10.25 systemd管理服务10.26 unit介绍 10.27 target介绍

- 10.23 linux任务计划cron - 10.24 chkconfig工具 - 10.25 systemd管理服务 - 10.26 unit介绍 - 10.27 target介绍 - 扩展 1. anacron http://blog.csdn.net/strikers1982/article/details/4787226  2. xinetd服(默认机器没有安装这个服务,需要yum install xinetd安装) http://blog.sina.com.cn/s/blog_46

[lintcode 14] First Position of Target

For a given sorted array (ascending order) and a target number, find the first index of this number in O(log n) time complexity. If the target number does not exist in the array, return -1. Example If the array is [1, 2, 3, 3, 4, 5, 10], for given ta

mv command:unable to remove target: Is a director

mv command:unable to remove target: Is a director This is somewhat simple as long as we understand the concept. mv or move does not actually move the file/folder to another location within the same device, it merely replaces the pointer in the first

targetcli搭建Fibre Channel(FC) target

硬件信息 获取WWN的方法可以执行以下命令来获取 cat /sys/class/fc_host/host*/port_name | sed -e s/0x// -e 's/../&:/g' -e s/:$// 作为target端的机器 系统 : Ubuntu 14.04 Server HBA : QLogic ISP2432 WWN1 : 21:01:00:1b:32:31:43:XX WWN2 : 21:00:00:1b:32:11:43:XX 作为initiator端的机器 系统: Ubun

AndroidStudio运行程序提示Error running app : No target device found

原因是adb没检测到设备(包括真机和虚拟机).在Terminal执行adb devices命令,查看有没有连接到的设备. 1. 如果没有设备,确认虚拟机是否正确打开,真机是否连接打开USB调试并安装驱动.可执行adb kill-server和adb start-server这两个命令重启adb.   2.如果有设备,选择run ->EditConfiguration->General,查看Deployment Target Options选项,查看设置的Taget是否有问题,以及是否选中了Us