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.
|