LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error while compiling glibc... (https://www.linuxquestions.org/questions/linux-newbie-8/error-while-compiling-glibc-4175451255/)

smith283 02-22-2013 04:52 AM

error while compiling glibc...
 
hey mates,
I'm building a crosstoolchain for ARM and when i try to compile glibc-2.13 and i get this error:

make[2]: *** No rule to make target `/home/toolchain2/build-tools/build-glibc/misc/ioperm.o', needed by `/home/toolchain2/build-tools/build-glibc/misc/stamp.o'. Stop.
make[2]: Leaving directory `/home/toolchain2/build-tools/glibc-2.13/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/home/toolchain2/build-tools/glibc-2.13'
make: *** [all] Error 2

I configured it with :
../glibc-2.13/configure --target=$TARGET --prefix="/usr" --with-headers=${TARGET_PREFIX}/include --enable-add-ons libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes

And im using these packages:- linux-2.6.18 (headers)
gcc-4.5.1
gmp-5.0.1
mps-0.8.2
mpfr-3.0.0
binutils-2.20.1
glibc-2.13
glibc-ports-2.13

working on- fedora15 + linux-2.6.38.

I'm new to this and need help as soon as possible.

thnk you.

MS3FGX 02-23-2013 08:58 PM

When you mark a topic as "SOLVED", it is appreciated if you update the original post with your solution; as this could be a problem other forum members will be researching in the future.

smith283 02-24-2013 01:12 AM

Hey MS3FGX, sry i dint posted the solution :(

Solution:
I followed these steps and ur Done :D :D :-

sudo apt-get install libmpc-dev -y
sudo apt-get install libgmp-dev -y
sudo apt-get install libmpfr-dev -y
sudo apt-get install autoconf -y
sudo apt-get install gawk -y
cd ~/Desktop
GLIBC_VERSION="2.13"
rm -rf glibc
mkdir /home/user/Desktop/glibc
cd /home/user/Desktop/glibc
wget http://ftp.gnu.org/gnu/glibc/glibc-ports-$GLIBC_VERSION.tar.gz
wget http://ftp.gnu.org/gnu/glibc/glibc-$GLIBC_VERSION.tar.bz2
rm -rf glibc-build/ tmp/ glibc-$GLIBC_VERSION/ glibc-ports-$GLIBC_VERSION/
tar xvjf glibc-$GLIBC_VERSION.tar.bz2
tar xvf glibc-ports-$GLIBC_VERSION.tar.gz
mkdir -p glibc-$GLIBC_VERSION/ports
cp -r glibc-ports-$GLIBC_VERSION/* glibc-$GLIBC_VERSION/ports
mkdir tmp
mkdir glibc-build
cd glibc-build
CFLAGS="-O1 -g"
CPPFLAGS="-O1 -g"
CC=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-gcc
CXX=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-g++
AR=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-ar
AS=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-as
LD=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-ld
RANLIB=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-ranlib
export PATH=$PATH:/home/user/proj/toolchain/linaro/bin
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
../glibc-$GLIBC_VERSION/configure --with-tls --host=arm-linux-gnueabi --prefix=/home/user/Desktop/glibc/tmp --enable-addons ports=yes
make


Thnk you!

smith283 02-24-2013 01:24 AM

I've solved this problem but now im getting error while compiling gcc (pass2).
So, i'll make a new thread as this has been marked as solved.

Thnk you.


All times are GMT -5. The time now is 05:16 AM.