First pass toolchain cannot run c compiled programs v9.1
by bear_2 from LinuxQuestions.org on (#555VK)
Stuck on ch5.9 configuring Binutils pass 2. The configuration error I get from config.log is :
Code:configure:4360: $? = 1
configure:4380: checking whether the C compiler works
configure:4402: x86_64-lfs-linux-gnu-gcc conftest.c >&5
configure:4406: $? = 0
configure:4454: result: yes
configure:4457: checking for C compiler default output file name
configure:4459: result: a.out
configure:4465: checking for suffix of executables
configure:4472: x86_64-lfs-linux-gnu-gcc -o conftest conftest.c >&5
configure:4476: $? = 0
configure:4498: result:
configure:4520: checking whether we are cross compiling
configure:4528: x86_64-lfs-linux-gnu-gcc -o conftest conftest.c >&5
configure:4532: $? = 0
configure:4539: ./conftest
./conftest: error while loading shared libraries: libv4l1.so.0: cannot open shared object file: No such file or directory
configure:4543: $? = 127
configure:4550: error: in `/mnt/lfs/sources/binutils-2.34/build':
configure:4552: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.CC is x86_64-lfs-linux-gnu-gcc
I tried running the empty int main(){} dummy file and it gives the same error with libv4l1.so.0
Building on Ubuntu 20.04


Code:configure:4360: $? = 1
configure:4380: checking whether the C compiler works
configure:4402: x86_64-lfs-linux-gnu-gcc conftest.c >&5
configure:4406: $? = 0
configure:4454: result: yes
configure:4457: checking for C compiler default output file name
configure:4459: result: a.out
configure:4465: checking for suffix of executables
configure:4472: x86_64-lfs-linux-gnu-gcc -o conftest conftest.c >&5
configure:4476: $? = 0
configure:4498: result:
configure:4520: checking whether we are cross compiling
configure:4528: x86_64-lfs-linux-gnu-gcc -o conftest conftest.c >&5
configure:4532: $? = 0
configure:4539: ./conftest
./conftest: error while loading shared libraries: libv4l1.so.0: cannot open shared object file: No such file or directory
configure:4543: $? = 127
configure:4550: error: in `/mnt/lfs/sources/binutils-2.34/build':
configure:4552: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.CC is x86_64-lfs-linux-gnu-gcc
I tried running the empty int main(){} dummy file and it gives the same error with libv4l1.so.0
Building on Ubuntu 20.04