LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Failed at Ch 6.9: Configuring glibc-2.3.6 (https://www.linuxquestions.org/questions/linux-from-scratch-13/failed-at-ch-6-9-configuring-glibc-2-3-6-a-556685/)

madcowjim 05-25-2007 02:14 PM

Failed at Ch 6.9: Configuring glibc-2.3.6
 
There are other threads with this same problem, but none of them had a good solution! Maybe someone here can still help me...

I can't get past Chapter 6.9. I followed everything up till now as close as possible to the book, but I still get this when I try to configure glibc-2.3.6:

Code:

root:~# ../glibc-2.3.6/configure --prefix=/usr \
    --disable-profile --enable-add-ons \
    --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc

And this is the error:

Quote:

...
checking for a BSD-compatible install... /tools/bin/install -c
checking whether ln -s works... yes
checking for gcc... gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
...
So I look in config.log (the part I see as relevant):

Quote:

...
configure:2644: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2647: $? = 1
configure:2651: checking for suffix of object files
configure:2672: gcc -c conftest.c >&5
gcc: installation problem, cannot exec '/tools/lib/gcc/i686-pc-linux-gnu/4.0.3/.
./../../../i686-pc-linux-gnu/bin/as': No such file or directory
configure:2675: $? = 1
...
So I checked for the executable and sure enough, it doesn't exist there... but I was able to find it in other locations:

Code:

root:~# find / -name as
/tools/i686-pc-linux-gnu/bin/as
/tools/bin/as

So these programs exist, but when I try to run them I get:

Code:

root:~# /tools/i686-pc-linux-gnu/bin/as
bash: /tools/i686-pc-linux-gnu/bin/as: No such file or directory
root:~# /tools/bin/as
bash: /tools/bin/as: No such file or directory

Just to clarify, I'm completely positive that these executables exist. And, all other executables located within those same directories also give me the same error. What is going on? Why can't I run those programs even if they are clearly there? Is this why I can't get glibc to configure?

Any help would be very appreciated.

biniou 05-25-2007 05:03 PM

Hello !

Did you quit with building LFS at some point and then came back ?

Are you sure you built/installed binutils at the good location ? Are you sure of your chroot ??

madcowjim 05-25-2007 06:12 PM

I've had to stop a few times, but I usually tried to do one chapter per session. Especially in Chapter 6, and even though I didn't get too far, I didn't stop until I got this error.

I'm not exactly sure how to verify that binutils was installed in the right location... if you mean everything went into the $LFS/tools location then yes. I also followed the chroot instructions as well as possible, but I know there is lots of room for human error in lfs. I guess I'll take a look over my history files over the weekend to see if I fudged on a command or something...

moschops 05-27-2007 06:56 AM

Hello madcowjim,

I have had the exact same problem. And while I do not have the solution to your specific problem, I can, from my experience, let you know how I avoided it:

So, from your post

Quote:

root:~# ../glibc-2.3.6/configure --prefix=/usr \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc
...I can see that you have logged out at some point then continued building LFS another time. I can tell this because the prompt does not say "I have no name!". I did the same as you and came up against this problem.

I then decided to start again and NEVER log out of my terminal session until my LFS was completed. I did not even change terminal sessions from the first time I originally chroot-ed. This worked fine. No issues so far. I have just completed the " 6.9. Glibc-2.3.6" about 5 minutes ago.

Quite simply, (for me) it seemed as if gcc could not be found and while I could have put it back on my class path, I decided that the tool-chain was delicate enough for me to start again and do it without errors. So I simply started again.

At one point the LFS book asks you to open another terminal session (Chapter 6. Installing Basic System Software) and type:

Quote:

exec /tools/bin/bash --login +h
While I did do this, I closed the session afterwards and continued to work on my original chroot-ed session.

Hopefully plenty of tea will take me though to the end of the book...

madcowjim 05-30-2007 02:49 PM

Glad to hear it worked for you moschops... I've been really frustrated until this point! Judging from everyone's explanations, it sounds like I'm stuck with just having to pick a day and get it all done in one sitting. Maybe this friday? hmm...

51dunk 06-05-2007 11:10 PM

Follow the title of the posters, but different errors.

Error occurs in "make install" :

Code:

make  -C signal subdir_install
make[2]: Entering directory `/tools-source/glibc-2.3.6/signal'
/tools/bin/install -c -m 644 signal.h /usr/include/signal.h
/tools/bin/install -c -m 644 sys/signal.h /usr/include/sys/signal.h
/tools/bin/install: accessing `/usr/include/sys/signal.h': Not a directory
make[2]: *** [/usr/include/sys/signal.h] Error 1
make[2]: Leaving directory `/tools-source/glibc-2.3.6/signal'
make[1]: *** [signal/subdir_install] Error 2
make[1]: Leaving directory `/tools-source/glibc-2.3.6'
make: *** [install] Error 2

Any suggestions?

51dunk 06-11-2007 09:06 AM

Closed this error
 
Quote:

Originally Posted by 51dunk
Follow the title of the posters, but different errors.

Error occurs in "make install" :

Code:

make  -C signal subdir_install
make[2]: Entering directory `/tools-source/glibc-2.3.6/signal'
/tools/bin/install -c -m 644 signal.h /usr/include/signal.h
/tools/bin/install -c -m 644 sys/signal.h /usr/include/sys/signal.h
/tools/bin/install: accessing `/usr/include/sys/signal.h': Not a directory
make[2]: *** [/usr/include/sys/signal.h] Error 1
make[2]: Leaving directory `/tools-source/glibc-2.3.6/signal'
make[1]: *** [signal/subdir_install] Error 2
make[1]: Leaving directory `/tools-source/glibc-2.3.6'
make: *** [install] Error 2

Any suggestions?

Closed my error.

This error occurs when i skipped the chapter 6.1, i didn't make the /dev/console and /dev/null, didn't mount /dev, /dev/*.
So if anyone find the same error like i get, you'd better to make sure you did what chapter 6.1 says.

Cheers
Black Thought


All times are GMT -5. The time now is 10:15 PM.