질문과 답변

[퀘스트5] bitbake 시 에러가 발생합니다.
2020. 5. 19 (화) 18:02 bryan 조회 149 좋아요 1 스크랩 0 댓글 4

안녕하세요. 

 

bitbake 수행시 저는 URL 에러가 아니고, 아래와 같은 에러가 발생됩니다. 

 

이런 에러는 저 혼자 나는것 같아서 혹시나 해서 올려봅니다. 

 

혹시 해결하신분 계시면 도움 부탁드립니다. 

*********************************************************************************************************************************************************

| /home/dbuntu/MPU/Ecos/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtbase/5.11.2+gitAUTOINC+49efea26a5-r0/recipe-sysroot-native/usr/bin/arm-openstlinux_eglfs-linux-gnueabi/../../libexec/arm-openstlinux_eglfs-linux-gnueabi/gcc/arm-openstlinux_eglfs-linux-gnueabi/8.2.0/ld: .obj/tst_qmetatype.o:(.debug_loc+0xdd462): undefined reference to `.L'
| collect2: error: ld returned 1 exit status
| Makefile:105: recipe for target 'tst_qmetatype' failed
| make[5]: *** [tst_qmetatype] Error 1
| make[5]: Leaving directory '/home/dbuntu/MPU/Ecos/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtbase/5.11.2+gitAUTOINC+49efea26a5-r0/build/tests/auto/corelib/kernel/qmetatype'
| Makefile:314: recipe for target 'sub-qmetatype-make_first' failed
| make[4]: *** [sub-qmetatype-make_first] Error 2
| make[4]: Leaving directory '/home/dbuntu/MPU/Ecos/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtbase/5.11.2+gitAUTOINC+49efea26a5-r0/build/tests/auto/corelib/kernel'
| Makefile:55: recipe for target 'sub-kernel-make_first' failed
| make[3]: *** [sub-kernel-make_first] Error 2
| make[3]: Leaving directory '/home/dbuntu/MPU/Ecos/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtbase/5.11.2+gitAUTOINC+49efea26a5-r0/build/tests/auto/corelib'
| ERROR: oe_runmake failed
| Makefile:55: recipe for target 'sub-corelib-make_first' failed
| make[2]: *** [sub-corelib-make_first] Error 2
| make[2]: Leaving directory '/home/dbuntu/MPU/Ecos/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtbase/5.11.2+gitAUTOINC+49efea26a5-r0/build/tests/auto'
| Makefile:45: recipe for target 'sub-auto-make_first' failed
| make[1]: *** [sub-auto-make_first] Error 2
| make[1]: Leaving directory '/home/dbuntu/MPU/Ecos/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtbase/5.11.2+gitAUTOINC+49efea26a5-r0/build/tests'
| Makefile:98: recipe for target 'sub-tests-make_first' failed
| make: *** [sub-tests-make_first] Error 2
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/dbuntu/MPU/Ecos/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtbase/5.11.2+gitAUTOINC+49efea26a5-r0/temp/log.do_compile.31874)
ERROR: Task (/home/dbuntu/MPU/Ecos/openstlinux-4.19-thud-mp1-19-02-20/layers/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 7739 tasks of which 7732 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
  /home/dbuntu/MPU/Ecos/openstlinux-4.19-thud-mp1-19-02-20/layers/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
dbuntu@dbuntu-VirtualBox:~/MPU/Ecos/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1$ 
*********************************************************************************************************************************************************

khyo 2020.05.20 11:21 답글  | 
제가 작업하는 환경에서는 수정 없이 빌드 진행 시 Qt 버전이 5.11.3 으로 빌드가 진행이 되는데, 5.11.2 버전으로 진행되시는 것으로 보입니다. Qt 버전에 따른 문제라기 보다는 메이슨님 말씀 처럼 빌드 환경이 틀어지거나 달라진 부분이 있는 것으로 보입니다.
메이슨 2020.05.19 19:20 답글  | 
혹시 recipe에 직접적으로 do_compile do_configure 등등을 적어 넣으셨다면 삭제하셔야 합니다... qmake5.bbclass에 이미 다 자동으로 되도록 설정되어 있어서 손대면 안되더라고요.. 저도 이 문제 때문에 골치 아팠습니다 ㅠ
bryan 2020.05.19 19:34
댓글
recipe를 따로 손본적은 없는데도 나오네요. ㅠㅠ
메이슨 2020.05.19 21:05
댓글
혹시지만 do_compile 자체를 사용자 recipe에서 지워야 합니다. 선언만 하고 빈칸으로 남겨놔도 안됩니다

로그인 후
참가 상태를 확인할 수 있습니다.