From 2921528e54507addc3d54e60d13a9c01687ba78d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 31 Dec 2011 17:13:44 -0500 Subject: Fix Linux compatibility version in EGLIBC config. --- (limited to 'bootstrap-system-build-procedure.txt') diff --git a/bootstrap-system-build-procedure.txt b/bootstrap-system-build-procedure.txt index c1a25b9..0fdfef8 100644 --- a/bootstrap-system-build-procedure.txt +++ b/bootstrap-system-build-procedure.txt @@ -113,7 +113,9 @@ Install Linux's headers for use by EGLIBC. $ make INSTALL_HDR_PATH=/tools/usr headers_install $ cd .. -Configure and build a cross-compiling EGLIBC. +Configure and build a cross-compiling EGLIBC. Change '' to the +lower of either version 3.1.6 or the version of Linux running on your host +system. $ mkdir eglibc-build $ cd eglibc-build $ case $(uname -m) in @@ -123,7 +125,8 @@ Configure and build a cross-compiling EGLIBC. > esac $ ../eglibc-2.14/libc/configure --prefix=/tools/usr --host=${BBLL_TARGET} \ > --build=$(../eglibc-2.14/libc/scripts/config.guess) --disable-profile \ - > --enable-add-ons --enable-kernel=3.1.6 --with-headers=/tools/usr/include \ + > --enable-add-ons --enable-kernel= \ + > --with-headers=/tools/usr/include \ > libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes libc_cv_ssp=no $ make -j 4 $ make install @@ -139,7 +142,15 @@ everything works. $ unset SPECS $ echo 'int main(){return 0;}' > test.c $ ${BBLL_TARGET}-gcc -B/tools/usr/lib test.c +The following command should output something like +"[Requesting program interpreter: /tools/usr/lib64/ld-linux-x86-64.so.2]". If +you don't see this output, then you might not have edited your GCC specs file +correctly. $ readelf -l a.out | grep ': /tools/usr' +The following command should execute properly and output nothing. If you see +"FATAL: kernel too old", then you set the value of '--enable-kernel' too low +when configuring EGLIBC. + $ ./a.out $ rm -v test.c a.out Cross-compile a native GNU Binutils. -- cgit v0.9.1