binutils cannot open: Permission denied error.
Though I am a newbie, I am in the task of building my own Linux using the book LFS.
I met with the following error in chapter 5.4.1 . When I did the code Code:
mkdir -v ../binutils-build Code:
lfs@debian:/mnt/lfs/sources$ tar -jxf binutils-2.22.tar.bz2 Code:
chown -v lfs $LFS/tools Why is it that I cannot continue ? |
Hi
What version of LFS are you doing? You should also be in the binutiles-build dir Code:
mkdir -v ../binutils-build Sorry misread your post, Did you do all of chapter4.3 the chown of LFS/tools and LFS/sources |
Quote:
yes, I rectified that error. I am using version 7.1 Now I got another problem... My problem is, when in chapter 5.4.1, when running Code:
../binutils-2.22/configure \--target=$LFS_TGT --prefix=/tools \--disable-nls --disable-werror Code:
checking build system type... x86_64-unknown-linux-gnu Code:
make: *** No targets specified and no makefile found. Stop. |
|
Quote:
The prerequisites aren't met. How to install all those files at once ? Will it be possible to do it just by running sudo apt-get update && apt-get upgrade ? |
Hi
I take it your using Ubuntu as host, I had trouble with make info failing on Ubuntu, Debain was easier to use. FYI Just installed texinfo from software manager it cleared version-check (maybe something went wrong last time) |
I abandoned that project, and started with a fresh LFS.
Now I am at Binutils-2.22 - Pass 1 , that is at chapter 5.4.1 After creating the directory binutils-build, ans issueing the command Code:
../binutils-2.22/configure \ Code:
lfs@debian:/mnt/lfs/sources/binutils-build$ ../binutils-2.22/configure \ 2) Also, when running commands that extend to multiple lines with \ at the end, what am I supposed to do ? That is, whether, I should press enter key and continue with the next line, ar put no space between (\) and the enxt character ? |
Hi
I dont know whats wrong with your build, Maybe pastebin the config file might help. Also can you post the output of the version-check. Yes with the \ that is correct a space then \ then enter which will let you continue on next line --target=$LFS_TGT --prefix=/tools \ A space between tools and \ |
When I searched for "configure: error: C compiler cannot create executables", I saw it discussed fairly often. A common issue that I saw was some compiler component missing from the host system. Try confirming that you've installed the things you need to compile source in Debian. I haven't used Debian in a while, so I don't remember what those things are. In Fedora, for example (since I know it better), it's things like the Development Tools group, Development Libraries group, kernel-devel, kernel-headers. Those aren't installed by default in Fedora. The idea will probably be similar in Debian but the things will called something else. It might be things like build-essential, dpkg-dev, fakeroot, etc. Maybe a Debian expert will show up with the precise details. Anyway, this is what I would at least investigate. I predict that until you do that, you couldn't compile anything in your Debian system whether it be for LFS or the Debian system itself.
|
Try to use xf or xvf for untaring the package .. hope it help
Code:
lfs@debian:/mnt/lfs/sources$ tar xf binutils-2.22.tar.bz2 Quote:
|
If you download the binaries as root, they will have root permissions. You should be the lfs user when downloading into your sources directory.
|
All times are GMT -5. The time now is 07:01 AM. |