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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-30-2004, 09:08 AM
|
#1
|
Member
Registered: Mar 2004
Location: Sydney
Distribution: Bodhi 3.0
Posts: 88
Rep:
|
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.
|
|
|
11-30-2004, 10:46 AM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,355
|
"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
|
|
|
12-01-2004, 03:42 AM
|
#3
|
Member
Registered: Mar 2004
Location: Sydney
Distribution: Bodhi 3.0
Posts: 88
Original Poster
Rep:
|
Thanks, I'll check this when I get back to my machine.
|
|
|
12-01-2004, 06:36 AM
|
#4
|
Member
Registered: Mar 2004
Location: Sydney
Distribution: Bodhi 3.0
Posts: 88
Original Poster
Rep:
|
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.
|
|
|
12-01-2004, 07:05 AM
|
#5
|
LQ Newbie
Registered: Mar 2004
Distribution: Mandrake 9.2
Posts: 23
Rep:
|
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.
|
|
|
12-01-2004, 08:37 AM
|
#6
|
Member
Registered: Mar 2004
Location: Sydney
Distribution: Bodhi 3.0
Posts: 88
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 11:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|