에서 -lgcc를 찾을 수 없습니다. glibc (libgcc.a)가/usr/lib/path에 잘 있습니다. sdk 및 devtools를 사용하여 core-image-minimal-dev Linux 이미지를 작성하고 싶습니다. glibc를 연결할 때 실패합니다 (여기까지만하면 모든 작업의 약 50 %가 원활하게 진행됩니다)Yocto Morty 2.2 ld : glibc 2.24-r0
어떻게 local.conf에서 경로와 라이브러리를 설정해야합니까? -lgcc를 찾으려면 어떻게해야합니까? 고맙습니다. 다음은 오류 메시지입니다.
| x86_64-poky-linux-gcc -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 --sysroot=/home/developer/yocto/Poky/build/tmp/sysroots/kontron-kbox-a103-tcbootstrap -nostdlib -nostartfiles -r -o /home/developer/yocto/Poky/build/tmp/work/corei7-64-poky-linux/glibc/2.24-r0/build-x86_64-poky-linux/libc_pic.os \
| -Wl,-d -Wl,--whole-archive /home/developer/yocto/Poky/build/tmp/work/corei7-64-poky-linux/glibc/2.24-r0/build-x86_64-poky-linux/libc_pic.a -o /home/developer/yocto/Poky/build/tmp/work/corei7-64-poky-linux/glibc/2.24-r0/build-x86_64-poky-linux/libc_pic.os
| x86_64-poky-linux-gcc -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 --sysroot=/home/developer/yocto/Poky/build/tmp/sysroots/kontron-kbox-a103-tcbootstrap -nostdlib -nostartfiles -r -o /home/developer/yocto/Poky/build/tmp/work/corei7-64-poky-linux/glibc/2.24-r0/build-x86_64-poky-linux/elf/librtld.map.o '-Wl,-(' /home/developer/yocto/Poky/build/tmp/work/corei7-64-poky-linux/glibc/2.24-r0/build-x86_64-poky-linux/elf/dl-allobjs.os /home/developer/yocto/Poky/build/tmp/work/corei7-64-poky-linux/glibc/2.24-r0/build-x86_64-poky-linux/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/home/developer/yocto/Poky/build/tmp/work/corei7-64-poky-linux/glibc/2.24-r0/build-x86_64-poky-linux/elf/librtld.mapT
| /home/developer/yocto/Poky/build/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux.gcc-cross-initial-x86_64/gcc/x86_64-poky-linux/6.2.0/ld: cannot find -lgcc
| collect2: error: ld returned 1 exit status
| Makefile:349: recipe for target '/home/developer/yocto/Poky/build/tmp/work/corei7-64-poky-linux/glibc/2.24-r0/build-x86_64-poky-linux/elf/librtld.map' failed
| make[2]: *** [/home/developer/yocto/Poky/build/tmp/work/corei7-64-poky-linux/glibc/2.24-r0/build-x86_64-poky-linux/elf/librtld.map] Error 1
| make[2]: *** Waiting for unfinished jobs....
| make[2]: Leaving directory '/home/developer/yocto/Poky/build/tmp/work/corei7-64-poky-linux/glibc/2.24-r0/git/elf'
| Makefile:234: recipe for target 'elf/subdir_lib' failed
| make[1]: *** [elf/subdir_lib] Error 2
| make[1]: Leaving directory '/home/developer/yocto/Poky/build/tmp/work/corei7-64-poky-linux/glibc/2.24-r0/git'
| Makefile:9: recipe for target 'all' failed
| make: *** [all] Error 2
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/developer/yocto/Poky/build/tmp/work/corei7-64-poky-linux/glibc/2.24-r0/temp/log.do_compile.106361)
ERROR: Task (/home/developer/yocto/Poky/meta/recipes-core/glibc/glibc_2.24.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1258 tasks of which 1106 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/developer/yocto/Poky/meta/recipes-core/glibc/glibc_2.24.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
다른 출력이나 파일이 필요합니까? BR Florian