Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-15-2008, 03:37 PM   #1
LQ Newbie
Registered: Dec 2008
Location: Birmingham, Alabama
Distribution: Debian/Custom
Posts: 7

Rep: Reputation: 0
Problem executing binutils assembler

I am in the process of compiling a custom linux using a live cd to assemble the system on my hard drive. The main partition is mounted to /mnt/hd1. I recently built binutils 2.18 and installed it into my /mnt/hd1/bin directory. I made /mnt/hd1/dev a symlink to the /dev directory on the live cd and made all necessary preparations to chroot. I issued the chroot command with the PATH variable set to /bin:/sbin:/usr/bin:/usr/sbin and it successfully changed the root to /mnt/hd1, but when I tried to compile a package in this environment, it told me that 'as' was not found. When I went to /bin, I noticed that as did exist and was within an area designated by the path variable.

Now, even when I call ./as in the /bin directory, it tells me "/bin/as: No such file or directory" even though it shows up in the directory. What makes it even stranger is when I change my root back to the live CD root, I can execute /mnt/hd1/bin/as without any trouble. The permission is set to read and execute for all users and the /mnt/hd1/etc/passwd and /mnt/hd1/etc/groups files are properly set up so that I can log into the root account when I chroot. Also, all of the applications in /bin will execute except for those from the binutils build.

If anyone can give me any advice on this issue, I would be most grateful; I am at my wits end.
Old 12-16-2008, 11:27 PM   #2
LQ Newbie
Registered: Dec 2008
Location: Birmingham, Alabama
Distribution: Debian/Custom
Posts: 7

Original Poster
Rep: Reputation: 0
Fixed, I forgot to set the LIB_PATH when I compiled it


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
Problem compiling binutils m4mach Linux From Scratch 9 11-13-2013 06:20 PM
5.3 Binutils problem dupree Linux From Scratch 2 07-20-2005 08:36 PM
Problem with variable in inline assembler DavidW567 Programming 0 05-17-2005 12:21 PM
binutils problem?? alaios Linux From Scratch 4 01-17-2005 10:17 AM
Installation of binutils....can't mkdir...../binutils-build hmonster Linux From Scratch 6 08-22-2004 05:07 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration