项目作者: onlyuser

项目描述 :
gnu-tools is a collection of recipes for building gnu-tools from scratch
高级语言: Makefile
项目地址: git://github.com/onlyuser/gnu-tools.git
创建时间: 2013-03-09T13:35:33Z
项目社区:https://github.com/onlyuser/gnu-tools

开源协议:

下载


Build Status

gnu-tools

Copyright (C) 2011-2017 onlyuser@gmail.com

About

gnu-tools is a collection of recipes for building gnu-tools from scratch.

Currently, only these tools & versions are supported, but you can switch versions easily:

  • gcc 4.6.3
  • bison 2.5

Requirements

  1. bash make gcc wget curl ftp://gcc.gnu.org/pub/gcc/infrastructure http://www.mr511.de/software http://ftp.gnu.org/gnu/gcc

Installation (Debian)

  1. git clone https://github.com/onlyuser/gnu-tools.git
  2. sudo aptitude install make
  3. sudo aptitude install gcc
  4. sudo aptitude install wget
  5. sudo aptitude install curl

Usage

  1. If you use Ubuntu 11.04 x86_64 and wish to build gcc, you may need two extra environment variables:
    • $C_INCLUDE_PATH — where “asm/errno.h” resides (“/usr/include/x86_64-linux-gnu” on my machine)
    • $CPLUS_INCLUDE_PATH — where “asm/errno.h” resides (“/usr/include/x86_64-linux-gnu” on my machine)
  2. Change into the directory for the tool you wish to build and enter “make”.

Make Targets





target action
all make binaries
clean remove all intermediate files

References


“How to install GCC from scratch with GMP, MPFR, MPC, ELF, without shared libraries?”

http://stackoverflow.com/questions/9450394/how-to-install-gcc-from-scratch-with-gmp-mpfr-mpc-elf-without-shared-librari

“How to build GNU Compiler Collection”

http://www.acsu.buffalo.edu/~charngda/cc_build.html

“Compilation cannot find file asm/errno.h”

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48879

Keywords

  1. gnu, gcc, bison, Linux