
Base Reference GNU/Linux Build Sequence
Source code is available here.
To compile and install, run these commands:
cd /sources &&
rm -rf /sources/binutils-build &&
rm -rf /sources/binutils-2.17 &&
tar -xjf binutils-2.17.tar.bz2 &&
cd binutils-2.17 &&
mkdir ../binutils-build &&
cd ../binutils-build &&
../binutils-2.17/configure --prefix=/usr --enable-shared &&
make tooldir=/usr &&
make install &&
cp -v ../binutils-2.17/include/libiberty.h /usr/include &&
cd /sources &&
rm -rf /sources/binutils-build &&
rm -rf /sources/binutils-2.17
|
The output should look something like this:
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gnatbind... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... no
checking for runtest... no
checking for i686-pc-linux-gnu-ar... no
checking for ar... ar
checking for i686-pc-linux-gnu-as... no
checking for as... as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking for i686-pc-linux-gnu-ld... /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../
../i686-pc-linux-gnu/bin/ld
checking for i686-pc-linux-gnu-lipo... no
checking for lipo... no
checking for i686-pc-linux-gnu-nm... no
checking for nm... nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for i686-pc-linux-gnu-windres... no
checking for windres... no
checking for i686-pc-linux-gnu-objcopy... no
checking for objcopy... objcopy
checking for i686-pc-linux-gnu-objdump... no
checking for objdump... objdump
checking for i686-pc-linux-gnu-cc... no
checking for cc... cc
checking for i686-pc-linux-gnu-c++... i686-pc-linux-gnu-c++
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for i686-pc-linux-gnu-gcj... no
checking for gcj... no
checking for i686-pc-linux-gnu-gfortran... no
checking for gfortran... no
checking for ar... no
checking for i686-pc-linux-gnu-ar... no
checking for ar... ar
checking for as... no
checking for i686-pc-linux-gnu-as... no
checking for as... as
checking for dlltool... no
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking for ld... no
checking for i686-pc-linux-gnu-ld... no
checking for ld... ld
checking for lipo... no
checking for i686-pc-linux-gnu-lipo... no
checking for lipo... no
checking for nm... no
checking for i686-pc-linux-gnu-nm... no
checking for nm... nm
checking for objdump... no
checking for i686-pc-linux-gnu-objdump... no
checking for objdump... objdump
checking for ranlib... no
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for strip... no
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for windres... no
checking for i686-pc-linux-gnu-windres... no
checking for windres... no
checking where to find the target ar... just compiled
checking where to find the target as... just compiled
checking where to find the target cc... host tool
checking where to find the target c++... host tool
checking where to find the target c++ for libstdc++... host tool
checking where to find the target dlltool... just compiled
checking where to find the target gcc... host tool
checking where to find the target gcj... host tool
checking where to find the target gfortran... host tool
checking where to find the target ld... just compiled
checking where to find the target lipo... host tool
checking where to find the target nm... just compiled
checking where to find the target objdump... just compiled
checking where to find the target ranlib... just compiled
checking where to find the target strip... just compiled
checking where to find the target windres... just compiled
checking whether to enable maintainer-specific portions of Makefiles... no
updating cache ./config.cache
creating ./config.status
creating Makefile
make[1]: Entering directory `/sources/binutils-build'
mkdir -p -- ./libiberty
Configuring in ./libiberty
configure: creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... /sources/binutils-2.17/missing makeinfo --split-size=5000000
configure: WARNING:
*** Makeinfo is missing. Info documentation will not be built.
checking for perl... perl
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-ar... ar
checking for i686-pc-linux-gnu-ranlib... ranlib
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking whether gcc accepts -Wc++-compat... yes
checking whether gcc and cc understand -c and -o together... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for a BSD-compatible install... /bin/install -c
Appending ../../binutils-2.17/libiberty/../config/mh-x86pic to xhost-mkfrag
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for limits.h... yes
checking for stdlib.h... yes
checking for malloc.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking for strings.h... yes
checking for sys/time.h... yes
checking for time.h... yes
checking for sys/resource.h... yes
checking for sys/stat.h... yes
checking for sys/mman.h... yes
checking for fcntl.h... yes
checking for alloca.h... yes
checking for sys/pstat.h... no
checking for sys/sysmp.h... no
checking for sys/sysinfo.h... yes
checking for machine/hal_sysinfo.h... no
checking for sys/table.h... no
checking for sys/sysctl.h... yes
checking for sys/systemcfg.h... no
checking for stdint.h... yes
checking for stdio_ext.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether errno must be declared... no
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... yes
checking for strings.h... (cached) yes
checking for inttypes.h... yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for int... yes
checking size of int... 4
checking for uintptr_t... yes
checking for a 64-bit type... uint64_t
checking for pid_t... yes
checking for library containing strerror... none required
checking for asprintf... yes
checking for atexit... yes
checking for basename... yes
checking for bcmp... yes
checking for bcopy... yes
checking for bsearch... yes
checking for bzero... yes
checking for calloc... yes
checking for clock... yes
checking for ffs... yes
checking for getcwd... yes
checking for getpagesize... yes
checking for gettimeofday... yes
checking for index... yes
checking for insque... yes
checking for memchr... yes
.
.
.
make[3]: Entering directory `/sources/binutils-build/libiberty/testsuite'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/sources/binutils-build/libiberty/testsuite'
/bin/sh ../../binutils-2.17/libiberty/../mkinstalldirs /usr/lib
/bin/install -c -m 644 ./libiberty.a /usr/lib/./libiberty.an
( cd /usr/lib ; ranlib ./libiberty.an )
mv -f /usr/lib/./libiberty.an /usr/lib/./libiberty.a
if test -n ""; then \
case "" in \
/*) thd=;; \
*) thd=/usr/include/;; \
esac; \
/bin/sh ../../binutils-2.17/libiberty/../mkinstalldirs ${thd}; \
for h in ../../binutils-2.17/libiberty/../include/ansidecl.h ../../binutils-2.17/libiberty/
../include/demangle.h
../../binutils-2.17/libiberty/../include/dyn-string.h ../.
./binutils-2.17/libiberty/../include/fibheap.h
../../binutils-2.17/libiberty/../include/floatformat.h ../.
./binutils-2.17/libiberty/../include/hashtab.h .
./../binutils-2.17/libiberty/../include/libiberty.h ../.
./binutils-2.17/libiberty/../include/objalloc.h
../../binutils-2.17/libiberty/../include/partition.h ../
../binutils-2.17/libiberty/../include/safe-ctype.h
../../binutils-2.17/libiberty/../include/sort.h ../
../binutils-2.17/libiberty/../include/splay-tree.h ../..
/binutils-2.17/libiberty/../include/ternary.h; do \
/bin/install -c -m 644 $h ${thd}; \
done; \
fi
make[3]: Entering directory `/sources/binutils-build/libiberty/testsuite'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/sources/binutils-build/libiberty/testsuite'
make[2]: Leaving directory `/sources/binutils-build/libiberty'
make[1]: Nothing to be done for `install-target'.
make[1]: Leaving directory `/sources/binutils-build'
`../binutils-2.17/include/libiberty.h' -> `/usr/include/libiberty.h' |
| People: | |
| Places: | |
| Things: | |
| binutils |
| Times: | |
|