Reputation: 41
I'm trying to compile Bison to build Linux From Scratch. My host OS is Ubuntu 18.04. Based on the instructions on this webpage, upon entering
./configure --prefix=/tools
I eventually get the error
...
checking for ar... ar
checking for ranlib... ranlib
checking build system type... config.guess: cannot create a temporary directory in /tmp
configure: error: cannot guess build type; you must specify one
Other users seem to suggest that I'm missing a dependency. But, I couldn't figure out what it might be that I missed.
I'm clueless as to which build type is referred to in the last line of error and how to fix the error. Any pointers? Thanks.
Upvotes: 0
Views: 660
Reputation: 1
Usually what I do when I get stuck is:
rm -rf bison-3.4.1
then I untar the file and redo the entire process. Sometimes, the tar file downloaded is only faulty. In such cases I would suggest that you re-download the file:
cd /mnt/lfs/sources
wget http://ftp.gnu.org/gnu/bison/bison-3.4.1.tar.xz
Also, if the problem persists refer the log files to see where exactly it is getting stuck
Upvotes: 0