[lfs-support] Installation of Bash 5.15 Error on make
Hello all, I am on section 5.15.1 (installing bash) on LFS version 7.2 and I am receiving an error after running make: $ make -j yacc -d ./parse.y make: execvp: yacc: Permission denied make: *** [y.tab.c] Error 127 I have encountered this before and I attempted to get around by sudo, but that turned out to be a bad idea as the bash binaries were linked to libraries on the host system. After doing a fresh start I am once again confronted by this error. I suspect this has something to do with the yacc link. readlink -f /usr/bin/yacc - /usr/bin/yacc And here is /usr/bin/yacc: #! /bin/sh exec '/usr/bin/bison' -y $@ Is this not a script executing bison as specified in the host requirements? If not, how should /usr/bin/yacc look? Is there anything else that may be causing the permission denied error? Thanks, Alex -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Installation of Bash 5.15 Error on make
On 12/15/2012 02:58 AM, Alexander Spitzer wrote: Hello all, I am on section 5.15.1 (installing bash) on LFS version 7.2 and I am receiving an error after running make: $ make -j yacc -d ./parse.y make: execvp: yacc: Permission denied make: *** [y.tab.c] Error 127 I have encountered this before and I attempted to get around by sudo, but that turned out to be a bad idea as the bash binaries were linked to libraries on the host system. After doing a fresh start I am once again confronted by this error. I suspect this has something to do with the yacc link. readlink -f /usr/bin/yacc - /usr/bin/yacc And here is /usr/bin/yacc: #! /bin/sh exec '/usr/bin/bison' -y $@ Is this not a script executing bison as specified in the host requirements? If not, how should /usr/bin/yacc look? Is there anything else that may be causing the permission denied error? Thanks, Alex I doubt that's a problem at all. Looks like it's having issues running the script at all, which wouldn't have anything to do with Bison itself. Do ls -l /usr/bin/yacc -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Installation of Bash 5.15 Error on make
On 12/15/2012 03:03 AM, Alexander Spitzer wrote: An additional piece of information that might be important: The patch asked for in the book is bash-4.2-fixes-8.patch while the one I have from the website and that one that I applied is bash-4.2-fixes-10.patch Could that be the cause of the problem? That is extremely unlikely, though since you are saying you are doing something differently than what's in the book, I need to ask how else (no matter how trivial it might seem) you are deviating from the book's instructions. Also, you're saying the book mentions a fixes-8 patch as stated in the 7.2 book - that specific patch is in fact available - it's even linked right in the book. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Installation of Bash 5.15 Error on make
Hi Chris, Thanks for your reply. ls -l /usr/bin/yacc gives: -rw-r--r-- 1 root root 41 Dec 13 19:13 /usr/bin/yacc -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Installation of Bash 5.15 Error on make
On 12/15/2012 03:11 AM, Alexander Spitzer wrote: Hi Chris, Thanks for your reply. ls -l /usr/bin/yacc gives: -rw-r--r-- 1 root root 41 Dec 13 19:13 /usr/bin/yacc That explains it, that script is not executable. chmod a+x /usr/bin/yacc and it should work. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Installation of Bash 5.15 Error on make
On Sat, Dec 15, 2012 at 3:10 AM, Chris Staub ch...@beaker67.com wrote: On 12/15/2012 03:03 AM, Alexander Spitzer wrote: An additional piece of information that might be important: The patch asked for in the book is bash-4.2-fixes-8.patch while the one I have from the website and that one that I applied is bash-4.2-fixes-10.patch Could that be the cause of the problem? That is extremely unlikely, though since you are saying you are doing something differently than what's in the book, I need to ask how else (no matter how trivial it might seem) you are deviating from the book's instructions. Also, you're saying the book mentions a fixes-8 patch as stated in the 7.2 book - that specific patch is in fact available - it's even linked right in the book. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page I used the sources in wget-list and the list had the fixes-10.patch. I hope that doesn't turn out to be the issue. Other than that, the only thing I can think of is during the make of the check package, I received a undefined reference to pthread. error in the directory tests, which I fixed by: cd tests open the makefile and add -lpthread to the variable CFLAGS after that it built properly. The book mentions the swap partition but I only made 1 ext3 3GB sized partition on a 4GB USB stick. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Installation of Bash 5.15 Error on make
It worked! Thank you so much! For reference I also had to edit /usr/bin/yacc to exec '/usr/local/bin/bison' -y $@ since there was no bison at all in /usr/bin On Sat, Dec 15, 2012 at 3:15 AM, Chris Staub ch...@beaker67.com wrote: On 12/15/2012 03:11 AM, Alexander Spitzer wrote: Hi Chris, Thanks for your reply. ls -l /usr/bin/yacc gives: -rw-r--r-- 1 root root 41 Dec 13 19:13 /usr/bin/yacc That explains it, that script is not executable. chmod a+x /usr/bin/yacc and it should work. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Installation of Bash 5.15 Error on make
I am definitely using the development source while reading 7.2 :X This might be why check didn't build smoothly. I'll carry on for now but if I encounter any weird problems I'll know why. On Sat, Dec 15, 2012 at 3:27 AM, Chris Staub ch...@beaker67.com wrote: On 12/15/2012 03:18 AM, Alexander Spitzer wrote: I used the sources in wget-list and the list had the fixes-10.patch. I hope that doesn't turn out to be the issue. Other than that, the only thing I can think of is during the make of the check package, I received a undefined reference to pthread. error in the directory tests, which I fixed by: cd tests open the makefile and add -lpthread to the variable CFLAGS after that it built properly. The book mentions the swap partition but I only made 1 ext3 3GB sized partition on a 4GB USB stick. The wget-list in LFS 7.2 does in fact also have the fixes-8 patch, so it looks like you are doing something weird with mixing 7.2 and the development book. I don't know if this is the specific cause of any of your issues, but first thing I'd suggest would be to go back to the beginning and only use 7.2. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page