Opened 14 years ago

Closed 14 years ago

#2808 closed task (invalid)

error when compile croos toolchain for Atom

Reported by: chaudhary Owned by: lfs-book@…
Priority: highest Milestone: 6.8
Component: Website Version: SVN
Severity: normal Keywords:
Cc:

Description

i describe what i have done for compile croos toolchain that i describe step by step

My Target Board is Atom Processor So First set Environment variable like this

##### Step 1.#########

TARGET=i686-linux-gnu

PREFIX=/root/toolchain_Atom

SYSROOT=${PREFIX}/sysroot

export ARCH=i686

export CROSS_COMPILE=${TARGET}-

export PATH=$PATH:${PREFIX}/bin

mkdir -p ${PREFIX}/src

@@@@@@@@i have done step 1 successfully

##########step 2 ##################

cd ${PREFIX}/src

tar xvfz binutils-2.16.tar.gz

mkdir -p BUILD/binutils-2.16

cd BUILD/binutils-2.16

../../binutils-2.16/configure --prefix=${PREFIX} --target=${TARGET} --with-sysroot=${SYSROOT} 2>&1 | tee configure.out

make 2>&1 | tee make.out

make install 2>&1 | tee -a make.out

@@@@@@@@Si have done step 2 successfully

###########Step 3 ################

cd ${PREFIX}/src

tar xvfz linux-2.6.31.tar.gz

ln -s linux-2.6.31 linux

cd linux

-->Open New Terminal and Go to cd ${PREFIX}/src/linux

-->Run "make mrproper"

-->Run "make headers_check"

-->After above three process i m go to my Original Terminal in that i set environment

make include/linux/version.h

mkdir -p ${SYSROOT}/usr/include

cp -a ${PREFIX}/src/linux/include/linux

${SYSROOT}/usr/include/linux

cp -a ${PREFIX}/src/linux/include/asm-generic ${SYSROOT}/usr/include/asm

cp -a ${PREFIX}/src/linux/include/asm-generic ${SYSROOT}/usr/include/asm-generic

@@@i have done step 3 successfully

############################Step 4 ##############

cd ${PREFIX}/src

tar xvfz glibc-2.9.tar.gz

cd glibc-2.9

cd ..

mkdir -p BUILD/glibc-2.9-headers

cd BUILD/glibc-2.9-headers

-->in configure i used add-ons=nptl instead of "linuxthreads"

../../glibc-2.9/configure --prefix=/opt/usr --host=${TARGET} --enable-add-ons=nptl --with-headers=${SYSROOT}/usr/include 2>&1 | tee configure.out

make cross-compiling=yes install_root=${SYSROOT} install-headers

2>&1 | tee make.out

--?Before execute below two step i need to create "gnu" and "bits"

directory in ${SYSROOT}/usr/include

touch ${SYSROOT}/usr/include/gnu/stubs.h

touch ${SYSROOT}/usr/include/bits/stdio_lim.h

@@@@@@ i have done step 4 successfully

################Step 5 ###############

cd ${PREFIX}/src

tar xvzf gcc-4.4.5.tar.bz2

mkdir -p BUILD/gcc-4.4.5-stage1

cd BUILD/gcc-4.4.5-stage1

../../gcc-4.4.5/configure --prefix=${PREFIX} --target=${TARGET} --enable-languages=c --with-sysroot=${SYSROOT} 2>&1 | tee configure.out

make 2>&1 | tee make.out

@@@@ NOTE But when i do Make,get error on terminal that i mention in below between 2 star line

*ERROR*

checking for suffix of object files... configure: error: in `/root/toolchain_Atom/src/BUILD/gcc-4.4.5-stage1/i686-linux-gnu/libgcc':

configure: error: cannot compute suffix of object files: cannot compile

See `config.log' for more details.

make[2]: * [configure-stage1-target-libgcc] Error 1

make[2]: Leaving directory `/root/toolchain_Atom/src/BUILD/gcc-4.4.5-stage1'

make[1]: * [stage1-bubble] Error 2

make[1]: Leaving directory `/root/toolchain_Atom/src/BUILD/gcc-4.4.5-stage1'

make: * [all] Error 2

ERROR

Change History (2)

comment:1 by chaudhary, 14 years ago

so please give me hint how to solve this error that i face in gcc-stage 1 reply me as soon as possible Thanks

comment:2 by bdubbs@…, 14 years ago

Resolution: invalid
Status: newclosed

This is the wrong place to ask for support. Register for the LFS support mailing list and ask there.

Note: See TracTickets for help on using tickets.