LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-22-2013, 04:52 AM   #1
smith283
Member
 
Registered: Aug 2012
Posts: 39

Rep: Reputation: Disabled
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.
 
Old 02-23-2013, 08:58 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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.
 
Old 02-24-2013, 01:12 AM   #3
smith283
Member
 
Registered: Aug 2012
Posts: 39

Original Poster
Rep: Reputation: Disabled
Hey MS3FGX, sry i dint posted the solution

Solution:
I followed these steps and ur Done :-

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!
 
Old 02-24-2013, 01:24 AM   #4
smith283
Member
 
Registered: Aug 2012
Posts: 39

Original Poster
Rep: Reputation: Disabled
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.
 
  


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
[SOLVED] Error compiling glibc LFS 7.1 E-Kami Linux From Scratch 9 05-21-2014 02:31 PM
[SOLVED] Error compiling Glibc 2.11.1 (Chapter 6.9) EricTRA Linux From Scratch 4 03-27-2013 02:41 AM
Error compiling Glibc-2.12.1 in LFS 6.7 poisoning Linux From Scratch 1 05-22-2011 05:11 AM
error compiling Glibc-2.3.6 meital Linux From Scratch 8 03-01-2007 09:50 AM
[SOLVED] compiling glibc-2.4 error aihaike Slackware 3 03-24-2006 04:04 AM


All times are GMT -5. The time now is 06:13 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration