Article 555VK First pass toolchain cannot run c compiled programs v9.1

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.04latest?d=yIl2AUoC8zA latest?i=hvXym4yOVII:2t-MHqziU2c:F7zBnMy latest?i=hvXym4yOVII:2t-MHqziU2c:V_sGLiP latest?d=qj6IDK7rITs latest?i=hvXym4yOVII:2t-MHqziU2c:gIN9vFwhvXym4yOVII
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments