On Wed, Jan 18, 2023 at 5:05 PM Kokkonda, Sundeep <sundeep.kokko...@windriver.com> wrote: > > Without 'binutils' the required linker 'x86_64-poky-linux-ld' will not be > added to the image (getting error - cannot find 'ld'). > And, 'g++' also a required package along with 'gcc'. When removed 'g++' some > required libs are missing. See below error. > > root@qemux86-64:~/hello# cargo run > Compiling hello v0.1.0 (/home/root/hello) > error: linking with `x86_64-poky-linux-gcc` failed: exit status: 1 > | > = note: "x86_64-poky-linux-gcc" "/tmp/rustcZTUudY/symbols.o" > "/home/root/hello/target/debug/deps/hello-366ba9a14b055dd9.1rbu6cyq0fbr2z03.rcgu.o" > "/home/root/hello/target/debug/deps/hello-366ba9a1" > = note: > /usr/lib/gcc/x86_64-poky-linux/12.2.0/../../../../x86_64-poky-linux/bin/ld: > cannot find Scrt1.o: No such file or directory > > /usr/lib/gcc/x86_64-poky-linux/12.2.0/../../../../x86_64-poky-linux/bin/ld: > cannot find crti.o: No such file or directory > > /usr/lib/gcc/x86_64-poky-linux/12.2.0/../../../../x86_64-poky-linux/bin/ld: > cannot find crtbeginS.o: No such file or directory > > /usr/lib/gcc/x86_64-poky-linux/12.2.0/../../../../x86_64-poky-linux/bin/ld: > cannot find -lgcc_s: No such file or directory > > /usr/lib/gcc/x86_64-poky-linux/12.2.0/../../../../x86_64-poky-linux/bin/ld: > cannot find -lutil: No such file or directory > > /usr/lib/gcc/x86_64-poky-linux/12.2.0/../../../../x86_64-poky-linux/bin/ld: > cannot find -lrt: No such file or directory > > /usr/lib/gcc/x86_64-poky-linux/12.2.0/../../../../x86_64-poky-linux/bin/ld: > cannot find -lpthread: No such file or directory > > /usr/lib/gcc/x86_64-poky-linux/12.2.0/../../../../x86_64-poky-linux/bin/ld: > cannot find -lm: No such file or directory > > /usr/lib/gcc/x86_64-poky-linux/12.2.0/../../../../x86_64-poky-linux/bin/ld: > cannot find -ldl: No such file or directory > > /usr/lib/gcc/x86_64-poky-linux/12.2.0/../../../../x86_64-poky-linux/bin/ld: > cannot find -lc: No such file or directory > > /usr/lib/gcc/x86_64-poky-linux/12.2.0/../../../../x86_64-poky-linux/bin/ld: > cannot find crtendS.o: No such file or directory > > /usr/lib/gcc/x86_64-poky-linux/12.2.0/../../../../x86_64-poky-linux/bin/ld: > cannot find crtn.o: No such file or directory > collect2: error: ld returned 1 exit status >
Those look like glibc-dev to me - something like add a dependency on ${LIBC_DEPENDENCIES}? -- Alex Kiernan
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#176110): https://lists.openembedded.org/g/openembedded-core/message/176110 Mute This Topic: https://lists.openembedded.org/mt/96110740/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-