LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-30-2004, 09:08 AM   #1
lordtweety
Member
 
Registered: Mar 2004
Location: Sydney
Distribution: Bodhi 3.0
Posts: 88

Rep: Reputation: 15
binutils error


Hi,

I am getting an error message when doing the make install of binutils pass 1in chapter5.
The message is as follows

lfs:/mnt/lfs/sources/binutils-build$ make install
/bin/sh ../binutils-2.14/mkinstalldirs /tools /tools
make[1]: Entering directory `/mnt/lfs/sources/binutils-build/intl'
if test "@PACKAGE@" = "gettext" \
&& test '' = 'intl-compat.o'; then \
if test -r ../../binutils-2.14/intl/../../mkinstalldirs; then \
../../binutils-2.14/intl/../../mkinstalldirs /tools/lib /tools/include; \
else \
../../binutils-2.14/intl/mkinstalldirs /tools/lib /tools/include; \
fi; \
/bin/sh /mnt/lfs/sources/binutils-2.14/install-sh -c -m 644 intlh.inst /tools/include/libintl.h; \
/bin/sh /mnt/lfs/sources/binutils-2.14/install-sh -c -m 644 libintl.a /tools/lib/libintl.a; \
else \
: ; \
fi
if test "@PACKAGE@" = "gettext"; then \
if test -r ../../binutils-2.14/intl/../../mkinstalldirs; then \
../../binutils-2.14/intl/../../mkinstalldirs /tools/share/gettext/intl; \
else \
../../binutils-2.14/intl/mkinstalldirs /tools/share/gettext/intl; \
fi; \
/bin/sh /mnt/lfs/sources/binutils-2.14/install-sh -c -m 644 VERSION /tools/share/gettext/intl/VERSION; \
dists="ChangeLog Makefile.in linux-msg.sed po2tbl.sed.in xopen-msg.sed gettext.h gettextP.h hash-string.h libgettext.h loadinfo.h bindtextdom.c dcgettext.c dgettext.c gettext.c finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c explodename.c intl-compat.c cat-compat.c"; \
for file in $dists; do \
/bin/sh /mnt/lfs/sources/binutils-2.14/install-sh -c -m 644 ../../binutils-2.14/intl/$file /tools/share/gettext/intl/$file; \
done; \
else \
: ; \
fi
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/intl'
make[1]: Entering directory `/mnt/lfs/sources/binutils-build/libiberty'
make[2]: Entering directory `/mnt/lfs/sources/binutils-build/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/libiberty/testsuite'
/bin/sh ../../binutils-2.14/libiberty/../mkinstalldirs /tools/lib
/bin/sh /mnt/lfs/sources/binutils-2.14/install-sh -c -m 644 libiberty.a /tools/lib/libiberty.an
cp: cannot create regular file `/tools/lib/#inst.26448#': Permission denied
make[1]: *** [install_to_libdir] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/libiberty'
make: *** [install-libiberty] Error 2

Just to be certain I was doing it right I redid everything up to this point and got the exact same message.
I am logged in as lfs when I do this. Do I need to be root?
Thanks for any pointers.
It could be the fact that it's 2am....
but I don't think so.
 
Old 11-30-2004, 10:46 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,355

Rep: Reputation: 554Reputation: 554Reputation: 554Reputation: 554Reputation: 554Reputation: 554
"cp: cannot create regular file `/tools/lib/#inst.26448#': Permission denied"

You should check the permissions on /tool and /tool/lib.

"I am logged in as lfs when I do this. Do I need to be root?"

Running as root should get you past this problem. But if the basic problem is that the permissions are wrong then you will probably run into future problems with the permissions.

------------------------
Steve Stites
 
Old 12-01-2004, 03:42 AM   #3
lordtweety
Member
 
Registered: Mar 2004
Location: Sydney
Distribution: Bodhi 3.0
Posts: 88

Original Poster
Rep: Reputation: 15
Thanks, I'll check this when I get back to my machine.
 
Old 12-01-2004, 06:36 AM   #4
lordtweety
Member
 
Registered: Mar 2004
Location: Sydney
Distribution: Bodhi 3.0
Posts: 88

Original Poster
Rep: Reputation: 15
Somewhere I have missed something, It was trying to write to /tools in the root filesystem. Back to the beginning with a higher attention to detail I think.
 
Old 12-01-2004, 07:05 AM   #5
maerong
LQ Newbie
 
Registered: Mar 2004
Distribution: Mandrake 9.2
Posts: 23

Rep: Reputation: 15
I had exactly the same error.

$LFS/tools is owned by user lfs, but for some reason its subdirectories are owned by "1001", which is apparently the guest user. I'm using Red Hat 9 as host system here - I didn't have this problem under Debian Sarge (I did have a different problem, but that's another story) .

As root, I did

cd $LFS/tools
chown -R lfs *

This makes the lfs user owner of everything in $LFS/tools (-R works recursively for all subdirectories and their contents etc).

Now change user back to lfs, and do the make install again - it worked for me.

Last edited by maerong; 12-01-2004 at 07:13 AM.
 
Old 12-01-2004, 08:37 AM   #6
lordtweety
Member
 
Registered: Mar 2004
Location: Sydney
Distribution: Bodhi 3.0
Posts: 88

Original Poster
Rep: Reputation: 15
Hi maerong,

Thanks for the reply, but that wasn't the problem for me. I had either forgotten the /mnt/lfs/tools symlink or otherwise lost it or broke it. I'm not sure which. Once that was fixed all went well.
 
  


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
make error with binutils gravesb Linux From Scratch 2 10-15-2005 02:48 PM
Binutils Check Error LinuxLuvr Linux From Scratch 1 07-21-2005 04:07 PM
Binutils Error hell_carnage Linux From Scratch 1 06-26-2005 08:33 AM
Error in binutils Macky Linux From Scratch 1 04-29-2005 05:39 PM
Binutils Error! chakkaradeepcc Linux From Scratch 2 04-28-2005 04:53 AM

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

All times are GMT -5. The time now is 11:17 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