LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-12-2005, 05:28 PM   #1
ukyo
Member
 
Registered: Sep 2004
Location: JiangsuChina
Distribution: LOVEHuiKai
Posts: 38

Rep: Reputation: 15
6. Installing Basic System Software--- GCC-3.4.1


III. Building the LFS System

*
6. Installing Basic System Software

GCC-3.4.1
-----------------------------

patch -Np1 -i ../gcc-3.4.1-no_fixincludes-1.patch
patch -Np1 -i ../gcc-3.4.1-linkonce-1.patch
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
mkdir ../gcc-build
cd ../gcc-build
../gcc-3.4.1/configure --prefix=/usr \
--libexecdir=/usr/lib --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-clocale=gnu --enable-languages=c,c++
------------------------------
make(error info)
-------------------------------
root:/tools/gcc-build# make
make[1]: Entering directory `/tools/gcc-build/libiberty'
make[2]: Entering directory `/tools/gcc-build/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tools/gcc-build/libiberty/testsuite'
make[1]: Leaving directory `/tools/gcc-build/libiberty'
make[1]: Entering directory `/tools/gcc-build/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tools/gcc-build/intl'
make[1]: Entering directory `/tools/gcc-build/gcc'
echo "/* This file is machine generated. Do not edit. */" > tmp-gtyp.h
echo "static const char *const srcdir = " >> tmp-gtyp.h
echo "\"../../gcc-3.4.1/gcc\"" >> tmp-gtyp.h
echo ";" >> tmp-gtyp.h
echo "static const char *const lang_files[] = {" >> tmp-gtyp.h
ll="../../gcc-3.4.1/gcc/cp/mangle.c ../../gcc-3.4.1/gcc/cp/name-lookup.h ../../gcc-3.4.1/gcc/cp/name-lookup.c ../../gcc-3.4.1/gcc/cp/cp-tree.h ../../gcc-3.4.1/gcc/cp/decl.h ../../gcc-3.4.1/gcc/cp/lex.h ../../gcc-3.4.1/gcc/cp/call.c ../../gcc-3.4.1/gcc/cp/decl.c ../../gcc-3.4.1/gcc/cp/decl2.c ../../gcc-3.4.1/gcc/cp/pt.c ../../gcc-3.4.1/gcc/cp/repo.c ../../gcc-3.4.1/gcc/cp/semantics.c ../../gcc-3.4.1/gcc/cp/tree.c ../../gcc-3.4.1/gcc/cp/parser.c ../../gcc-3.4.1/gcc/cp/method.c ../../gcc-3.4.1/gcc/c-common.c ../../gcc-3.4.1/gcc/c-common.h ../../gcc-3.4.1/gcc/c-pragma.c ../../gcc-3.4.1/gcc/c-lang.c ../../gcc-3.4.1/gcc/c-parse.in ../../gcc-3.4.1/gcc/c-tree.h ../../gcc-3.4.1/gcc/c-decl.c ../../gcc-3.4.1/gcc/c-common.c ../../gcc-3.4.1/gcc/c-common.h ../../gcc-3.4.1/gcc/c-pragma.c ../../gcc-3.4.1/gcc/c-objc-common.c "; \
for f in $ll; do \
echo "\"$f\", "; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
echo "static const char *const langs_for_lang_files[] = {" >> tmp-gtyp.h
ff="cp cp cp cp cp cp cp cp cp cp cp cp cp cp cp cp cp cp c c c c c c c c "; \
for f in $ff; do \
echo "\"$f\", " ; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
echo "static const char *const all_files[] = {" >> tmp-gtyp.h
gf="../../gcc-3.4.1/gcc/input.h ../../gcc-3.4.1/gcc/coretypes.h ../../gcc-3.4.1/gcc/cpplib.h auto-host.h ../../gcc-3.4.1/gcc/../include/ansidecl.h ../../gcc-3.4.1/gcc/config/i386/i386.h ../../gcc-3.4.1/gcc/config/i386/unix.h ../../gcc-3.4.1/gcc/config/i386/att.h ../../gcc-3.4.1/gcc/config/dbxelf.h ../../gcc-3.4.1/gcc/config/elfos.h ../../gcc-3.4.1/gcc/config/svr4.h ../../gcc-3.4.1/gcc/config/linux.h ../../gcc-3.4.1/gcc/config/i386/linux.h ../../gcc-3.4.1/gcc/defaults.h ../../gcc-3.4.1/gcc/../include/hashtab.h ../../gcc-3.4.1/gcc/../include/splay-tree.h ../../gcc-3.4.1/gcc/bitmap.h ../../gcc-3.4.1/gcc/coverage.c ../../gcc-3.4.1/gcc/function.h ../../gcc-3.4.1/gcc/rtl.h ../../gcc-3.4.1/gcc/optabs.h ../../gcc-3.4.1/gcc/tree.h ../../gcc-3.4.1/gcc/libfuncs.h ../../gcc-3.4.1/gcc/hashtable.h ../../gcc-3.4.1/gcc/real.h ../../gcc-3.4.1/gcc/varray.h ../../gcc-3.4.1/gcc/insn-addr.h ../../gcc-3.4.1/gcc/cselib.h ../../gcc-3.4.1/gcc/basic-block.h ../../gcc-3.4.1/gcc/cgraph.h ../../gcc-3.4.1/gcc/c-common.h ../../gcc-3.4.1/gcc/c-tree.h ../../gcc-3.4.1/gcc/alias.c ../../gcc-3.4.1/gcc/bitmap.c ../../gcc-3.4.1/gcc/cselib.c ../../gcc-3.4.1/gcc/cgraph.c ../../gcc-3.4.1/gcc/dbxout.c ../../gcc-3.4.1/gcc/dwarf2out.c ../../gcc-3.4.1/gcc/dwarf2asm.c ../../gcc-3.4.1/gcc/emit-rtl.c ../../gcc-3.4.1/gcc/except.c ../../gcc-3.4.1/gcc/explow.c ../../gcc-3.4.1/gcc/expr.c ../../gcc-3.4.1/gcc/fold-const.c ../../gcc-3.4.1/gcc/function.c ../../gcc-3.4.1/gcc/gcse.c ../../gcc-3.4.1/gcc/integrate.c ../../gcc-3.4.1/gcc/lists.c ../../gcc-3.4.1/gcc/optabs.c ../../gcc-3.4.1/gcc/profile.c ../../gcc-3.4.1/gcc/ra-build.c ../../gcc-3.4.1/gcc/regclass.c ../../gcc-3.4.1/gcc/reg-stack.c ../../gcc-3.4.1/gcc/cfglayout.c ../../gcc-3.4.1/gcc/langhooks.c ../../gcc-3.4.1/gcc/sdbout.c ../../gcc-3.4.1/gcc/stmt.c ../../gcc-3.4.1/gcc/stor-layout.c ../../gcc-3.4.1/gcc/stringpool.c ../../gcc-3.4.1/gcc/tree.c ../../gcc-3.4.1/gcc/varasm.c ../../gcc-3.4.1/gcc/config/i386/i386.c ../../gcc-3.4.1/gcc/cp/mangle.c ../../gcc-3.4.1/gcc/cp/name-lookup.h ../../gcc-3.4.1/gcc/cp/name-lookup.c ../../gcc-3.4.1/gcc/cp/cp-tree.h ../../gcc-3.4.1/gcc/cp/decl.h ../../gcc-3.4.1/gcc/cp/lex.h ../../gcc-3.4.1/gcc/cp/call.c ../../gcc-3.4.1/gcc/cp/decl.c ../../gcc-3.4.1/gcc/cp/decl2.c ../../gcc-3.4.1/gcc/cp/pt.c ../../gcc-3.4.1/gcc/cp/repo.c ../../gcc-3.4.1/gcc/cp/semantics.c ../../gcc-3.4.1/gcc/cp/tree.c ../../gcc-3.4.1/gcc/cp/parser.c ../../gcc-3.4.1/gcc/cp/method.c ../../gcc-3.4.1/gcc/c-common.c ../../gcc-3.4.1/gcc/c-common.h ../../gcc-3.4.1/gcc/c-pragma.c ../../gcc-3.4.1/gcc/c-lang.c ../../gcc-3.4.1/gcc/c-parse.in ../../gcc-3.4.1/gcc/c-tree.h ../../gcc-3.4.1/gcc/c-decl.c ../../gcc-3.4.1/gcc/c-common.c ../../gcc-3.4.1/gcc/c-common.h ../../gcc-3.4.1/gcc/c-pragma.c ../../gcc-3.4.1/gcc/c-objc-common.c"; \
for f in $gf; do \
echo "\"$f\", "; done >> tmp-gtyp.h
echo " NULL};" >> tmp-gtyp.h
echo "static const char *const lang_dir_names[] = { \"c\", " >> tmp-gtyp.h
gf="cp"; \
for l in $gf; do \
echo "\"$l\", "; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
/bin/sh ../../gcc-3.4.1/gcc/move-if-change tmp-gtyp.h gtyp-gen.h
gtyp-gen.h is unchanged
AWK=gawk /bin/sh ../../gcc-3.4.1/gcc/opts.sh \
'/bin/sh ../../gcc-3.4.1/gcc/move-if-change' \
options.c options.h ../../gcc-3.4.1/gcc/c.opt ../../gcc-3.4.1/gcc/common.opt
options.h is unchanged
options.c is unchanged
if [ -f specs.ready ] ; then \
true; \
else \
echo timestamp > specs.ready; \
fi
/tools/gcc-build/gcc/xgcc -B/tools/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc-3.4.1/gcc -I../../gcc-3.4.1/gcc/. -I../../gcc-3.4.1/gcc/../include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer \
-c ../../gcc-3.4.1/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from /usr/include/linux/errno.h:134,
from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from ../../gcc-3.4.1/gcc/tsystem.h:85,
from ../../gcc-3.4.1/gcc/crtstuff.c:62:
/usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/tools/gcc-build/gcc'
make: *** [all-gcc] Error 2
---------------------------------------------------
 
Old 06-12-2005, 06:29 PM   #2
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
whatever distro your using to build LFS doesn't have kernel-headers installed in /usr/include. if we know your distro we can tell you what kernel-headers package to install.
 
Old 06-12-2005, 11:09 PM   #3
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Re: 6. Installing Basic System Software--- GCC-3.4.1

Quote:
Originally posted by ukyo
III. Building the LFS System

*
6. Installing Basic System Software

GCC-3.4.1
-----------------------------

patch -Np1 -i ../gcc-3.4.1-no_fixincludes-1.patch
patch -Np1 -i ../gcc-3.4.1-linkonce-1.patch
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
mkdir ../gcc-build
cd ../gcc-build
../gcc-3.4.1/configure --prefix=/usr \
--libexecdir=/usr/lib --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-clocale=gnu --enable-languages=c,c++
------------------------------
make(error info)
-------------------------------
root:/tools/gcc-build# make
make[1]: Entering directory `/tools/gcc-build/libiberty'
make[2]: Entering directory `/tools/gcc-build/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tools/gcc-build/libiberty/testsuite'
make[1]: Leaving directory `/tools/gcc-build/libiberty'
make[1]: Entering directory `/tools/gcc-build/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tools/gcc-build/intl'
make[1]: Entering directory `/tools/gcc-build/gcc'
echo "/* This file is machine generated. Do not edit. */" > tmp-gtyp.h
echo "static const char *const srcdir = " >> tmp-gtyp.h
echo "\"../../gcc-3.4.1/gcc\"" >> tmp-gtyp.h
echo ";" >> tmp-gtyp.h
echo "static const char *const lang_files[] = {" >> tmp-gtyp.h
ll="../../gcc-3.4.1/gcc/cp/mangle.c ../../gcc-3.4.1/gcc/cp/name-lookup.h ../../gcc-3.4.1/gcc/cp/name-lookup.c ../../gcc-3.4.1/gcc/cp/cp-tree.h ../../gcc-3.4.1/gcc/cp/decl.h ../../gcc-3.4.1/gcc/cp/lex.h ../../gcc-3.4.1/gcc/cp/call.c ../../gcc-3.4.1/gcc/cp/decl.c ../../gcc-3.4.1/gcc/cp/decl2.c ../../gcc-3.4.1/gcc/cp/pt.c ../../gcc-3.4.1/gcc/cp/repo.c ../../gcc-3.4.1/gcc/cp/semantics.c ../../gcc-3.4.1/gcc/cp/tree.c ../../gcc-3.4.1/gcc/cp/parser.c ../../gcc-3.4.1/gcc/cp/method.c ../../gcc-3.4.1/gcc/c-common.c ../../gcc-3.4.1/gcc/c-common.h ../../gcc-3.4.1/gcc/c-pragma.c ../../gcc-3.4.1/gcc/c-lang.c ../../gcc-3.4.1/gcc/c-parse.in ../../gcc-3.4.1/gcc/c-tree.h ../../gcc-3.4.1/gcc/c-decl.c ../../gcc-3.4.1/gcc/c-common.c ../../gcc-3.4.1/gcc/c-common.h ../../gcc-3.4.1/gcc/c-pragma.c ../../gcc-3.4.1/gcc/c-objc-common.c "; \
for f in $ll; do \
echo "\"$f\", "; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
echo "static const char *const langs_for_lang_files[] = {" >> tmp-gtyp.h
ff="cp cp cp cp cp cp cp cp cp cp cp cp cp cp cp cp cp cp c c c c c c c c "; \
for f in $ff; do \
echo "\"$f\", " ; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
echo "static const char *const all_files[] = {" >> tmp-gtyp.h
gf="../../gcc-3.4.1/gcc/input.h ../../gcc-3.4.1/gcc/coretypes.h ../../gcc-3.4.1/gcc/cpplib.h auto-host.h ../../gcc-3.4.1/gcc/../include/ansidecl.h ../../gcc-3.4.1/gcc/config/i386/i386.h ../../gcc-3.4.1/gcc/config/i386/unix.h ../../gcc-3.4.1/gcc/config/i386/att.h ../../gcc-3.4.1/gcc/config/dbxelf.h ../../gcc-3.4.1/gcc/config/elfos.h ../../gcc-3.4.1/gcc/config/svr4.h ../../gcc-3.4.1/gcc/config/linux.h ../../gcc-3.4.1/gcc/config/i386/linux.h ../../gcc-3.4.1/gcc/defaults.h ../../gcc-3.4.1/gcc/../include/hashtab.h ../../gcc-3.4.1/gcc/../include/splay-tree.h ../../gcc-3.4.1/gcc/bitmap.h ../../gcc-3.4.1/gcc/coverage.c ../../gcc-3.4.1/gcc/function.h ../../gcc-3.4.1/gcc/rtl.h ../../gcc-3.4.1/gcc/optabs.h ../../gcc-3.4.1/gcc/tree.h ../../gcc-3.4.1/gcc/libfuncs.h ../../gcc-3.4.1/gcc/hashtable.h ../../gcc-3.4.1/gcc/real.h ../../gcc-3.4.1/gcc/varray.h ../../gcc-3.4.1/gcc/insn-addr.h ../../gcc-3.4.1/gcc/cselib.h ../../gcc-3.4.1/gcc/basic-block.h ../../gcc-3.4.1/gcc/cgraph.h ../../gcc-3.4.1/gcc/c-common.h ../../gcc-3.4.1/gcc/c-tree.h ../../gcc-3.4.1/gcc/alias.c ../../gcc-3.4.1/gcc/bitmap.c ../../gcc-3.4.1/gcc/cselib.c ../../gcc-3.4.1/gcc/cgraph.c ../../gcc-3.4.1/gcc/dbxout.c ../../gcc-3.4.1/gcc/dwarf2out.c ../../gcc-3.4.1/gcc/dwarf2asm.c ../../gcc-3.4.1/gcc/emit-rtl.c ../../gcc-3.4.1/gcc/except.c ../../gcc-3.4.1/gcc/explow.c ../../gcc-3.4.1/gcc/expr.c ../../gcc-3.4.1/gcc/fold-const.c ../../gcc-3.4.1/gcc/function.c ../../gcc-3.4.1/gcc/gcse.c ../../gcc-3.4.1/gcc/integrate.c ../../gcc-3.4.1/gcc/lists.c ../../gcc-3.4.1/gcc/optabs.c ../../gcc-3.4.1/gcc/profile.c ../../gcc-3.4.1/gcc/ra-build.c ../../gcc-3.4.1/gcc/regclass.c ../../gcc-3.4.1/gcc/reg-stack.c ../../gcc-3.4.1/gcc/cfglayout.c ../../gcc-3.4.1/gcc/langhooks.c ../../gcc-3.4.1/gcc/sdbout.c ../../gcc-3.4.1/gcc/stmt.c ../../gcc-3.4.1/gcc/stor-layout.c ../../gcc-3.4.1/gcc/stringpool.c ../../gcc-3.4.1/gcc/tree.c ../../gcc-3.4.1/gcc/varasm.c ../../gcc-3.4.1/gcc/config/i386/i386.c ../../gcc-3.4.1/gcc/cp/mangle.c ../../gcc-3.4.1/gcc/cp/name-lookup.h ../../gcc-3.4.1/gcc/cp/name-lookup.c ../../gcc-3.4.1/gcc/cp/cp-tree.h ../../gcc-3.4.1/gcc/cp/decl.h ../../gcc-3.4.1/gcc/cp/lex.h ../../gcc-3.4.1/gcc/cp/call.c ../../gcc-3.4.1/gcc/cp/decl.c ../../gcc-3.4.1/gcc/cp/decl2.c ../../gcc-3.4.1/gcc/cp/pt.c ../../gcc-3.4.1/gcc/cp/repo.c ../../gcc-3.4.1/gcc/cp/semantics.c ../../gcc-3.4.1/gcc/cp/tree.c ../../gcc-3.4.1/gcc/cp/parser.c ../../gcc-3.4.1/gcc/cp/method.c ../../gcc-3.4.1/gcc/c-common.c ../../gcc-3.4.1/gcc/c-common.h ../../gcc-3.4.1/gcc/c-pragma.c ../../gcc-3.4.1/gcc/c-lang.c ../../gcc-3.4.1/gcc/c-parse.in ../../gcc-3.4.1/gcc/c-tree.h ../../gcc-3.4.1/gcc/c-decl.c ../../gcc-3.4.1/gcc/c-common.c ../../gcc-3.4.1/gcc/c-common.h ../../gcc-3.4.1/gcc/c-pragma.c ../../gcc-3.4.1/gcc/c-objc-common.c"; \
for f in $gf; do \
echo "\"$f\", "; done >> tmp-gtyp.h
echo " NULL};" >> tmp-gtyp.h
echo "static const char *const lang_dir_names[] = { \"c\", " >> tmp-gtyp.h
gf="cp"; \
for l in $gf; do \
echo "\"$l\", "; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
/bin/sh ../../gcc-3.4.1/gcc/move-if-change tmp-gtyp.h gtyp-gen.h
gtyp-gen.h is unchanged
AWK=gawk /bin/sh ../../gcc-3.4.1/gcc/opts.sh \
'/bin/sh ../../gcc-3.4.1/gcc/move-if-change' \
options.c options.h ../../gcc-3.4.1/gcc/c.opt ../../gcc-3.4.1/gcc/common.opt
options.h is unchanged
options.c is unchanged
if [ -f specs.ready ] ; then \
true; \
else \
echo timestamp > specs.ready; \
fi
/tools/gcc-build/gcc/xgcc -B/tools/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc-3.4.1/gcc -I../../gcc-3.4.1/gcc/. -I../../gcc-3.4.1/gcc/../include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer \
-c ../../gcc-3.4.1/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from /usr/include/linux/errno.h:134,
from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from ../../gcc-3.4.1/gcc/tsystem.h:85,
from ../../gcc-3.4.1/gcc/crtstuff.c:62:
/usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/tools/gcc-build/gcc'
make: *** [all-gcc] Error 2
---------------------------------------------------
Did you miss anything when installed linux-libc-header before? Could you reinstall linux-libc-header?
 
Old 06-12-2005, 11:26 PM   #4
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
the kernel-headers need to be installed on the host system too I think since its looking in /usr/include Your on the first pass building gcc right.
 
Old 06-12-2005, 11:30 PM   #5
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Quote:
Originally posted by Boow
the kernel-headers need to be installed on the host system too I think since its looking in /usr/include Your on the first pass building gcc right.
I dont think so. He was in chapper 6, after chrooted, so it does not depend on host system anymore
 
Old 06-13-2005, 03:11 AM   #6
ukyo
Member
 
Registered: Sep 2004
Location: JiangsuChina
Distribution: LOVEHuiKai
Posts: 38

Original Poster
Rep: Reputation: 15
cat /proc/version
Linux version 2.6.10-1-686 (dilinger@mouth) (gcc version 3.3.5 (Debian 1:3.3.5-8)) #1 Fri Mar 11 03:55:46 EST 2005

I know the /usr/include/asm-generic does not exist,so I ve reinstall linux-libc-header,but ....same error info,and asm-generic remain does not exist.

Last edited by ukyo; 06-13-2005 at 03:12 AM.
 
Old 06-13-2005, 04:45 AM   #7
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Have you chrooted?
 
Old 06-13-2005, 06:51 AM   #8
ukyo
Member
 
Registered: Sep 2004
Location: JiangsuChina
Distribution: LOVEHuiKai
Posts: 38

Original Poster
Rep: Reputation: 15
Have chrooted before doing that .
Find Here:
--------------------------------------------------
Linux From Scratch - Version 6.0
Chapter 5. Constructing a Temporary System
5.7. Linux-2.6.8.1 Headers
--------------------------------------------------
Prepare for the header installation with:
--------------------------
make mrproper----
------------------------

This ensures that the kernel tree is absolutely clean. It is recommended that this command be issued prior to each kernel compilation. Do not assume that the source tree is automatically clean after un-tarring.

Create the include/linux/version.h file:
--------------------------------------------
make include/linux/version.h----
------------------------------------------

Create the platform-specific include/asm symlink:
------------------------------
make include/asm----
----------------------------

Install the platform-specific header files:
---------------------------------------------------------------------------
mkdir /tools/glibc-kernheaders----------------------------------
cp -HR include/asm /tools/glibc-kernheaders--------------
cp -R include/asm-generic /tools/glibc-kernheaders------?????????????#asm-generic!=glibc-kernheaders#
---------------------------------------------------------------------------
Finally, install the cross-platform kernel header files:
------------------------------------------------------------------
cp -R include/linux /tools/glibc-kernheaders--------
----------------------------------------------------------------




Last edited by ukyo; 06-13-2005 at 10:40 AM.
 
Old 06-13-2005, 08:34 PM   #9
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Quote:
Originally posted by ukyo
Have chrooted before doing that .
Find Here:
--------------------------------------------------
Linux From Scratch - Version 6.0
Chapter 5. Constructing a Temporary System
5.7. Linux-2.6.8.1 Headers
--------------------------------------------------
Prepare for the header installation with:
--------------------------
make mrproper----
------------------------

This ensures that the kernel tree is absolutely clean. It is recommended that this command be issued prior to each kernel compilation. Do not assume that the source tree is automatically clean after un-tarring.

Create the include/linux/version.h file:
--------------------------------------------
make include/linux/version.h----
------------------------------------------

Create the platform-specific include/asm symlink:
------------------------------
make include/asm----
----------------------------

Install the platform-specific header files:
---------------------------------------------------------------------------
mkdir /tools/glibc-kernheaders----------------------------------
cp -HR include/asm /tools/glibc-kernheaders--------------
cp -R include/asm-generic /tools/glibc-kernheaders------?????????????#asm-generic!=glibc-kernheaders#
---------------------------------------------------------------------------
Finally, install the cross-platform kernel header files:
------------------------------------------------------------------
cp -R include/linux /tools/glibc-kernheaders--------
----------------------------------------------------------------



I am too

In previous port you said: "6. Installing Basic System Software" and then: "Chapter 5. Constructing a Temporary System". Where are you, now??? Did you applied chapter 5 commands to build chapter 6???

Last edited by freegianghu; 06-13-2005 at 08:37 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
basic compilatoin issues (gcc) poiuytrewq Programming 1 04-07-2005 04:10 AM
running software built with gcc 3.0.2 on Redhat 8 - gcc 3.2 dst1989 Linux - Software 3 03-08-2004 10:23 PM
Installing software from source GCC "error"? Paulsuk Linux - Newbie 4 02-27-2004 11:53 AM
Basic RH 9.0 gcc question pjz Linux - Newbie 3 01-05-2004 07:57 AM
basic redhat software installing question brewhaha Linux - Software 1 07-03-2002 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration