mirzak / meta-coral

Yocto/OE-core BSP Layer for Coral Dev Board
MIT License
40 stars 21 forks source link

Build error "qemu-native-3.1.1.1-r0". #57

Closed kprastey closed 5 months ago

kprastey commented 6 months ago

I got errors related to "qemu-native-3.1.1.1-r0" while building. It is unusual to see errors from library source codes while bitbaking, please help.

myusername@myusername-desktop:~/Desktop/coral_BAK/coral$ bitbake core-image-base -k
WARNING: Host distribution "ubuntu-20.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |##################################################################################################################################################################| Time: 0:00:02
Loaded 2491 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.42.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-fslc-linux"
MACHINE              = "coral-dev"
DISTRO               = "fslc-wayland"
DISTRO_VERSION       = "2.7"
TUNE_FEATURES        = "aarch64"
TARGET_FPU           = ""
meta                 
meta-poky            = "HEAD:d4b57c68b22027c2bedff335dee06af963e4f8a8"
meta-oe              
meta-multimedia      = "HEAD:a24acf94d48d635eca668ea34598c6e5c857e3f8"
meta-freescale       = "HEAD:2ee3f2a9f254adab6a6d42a6e3085d05fbc8ac07"
meta-freescale-3rdparty = "HEAD:1e374913b737ae24934f799cc3592a05247a3c29"
meta-freescale-distro = "HEAD:d4e77ea682fa10d0d54a723b3d3099c44fc5e95c"
meta-clang           = "warrior:8f4080a2afa24fdd9df051a5707a38e0af38dd17"
meta-coral           = "warrior:4af044414d361b3acb6c557572c50004f54e3ffb"

Initialising tasks: 100% |#############################################################################################################################################################| Time: 0:00:05
Sstate summary: Wanted 93 Found 0 Missed 93 Current 1102 (0% match, 92% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: qemu-native-3.1.1.1-r0 do_compile: oe_runmake failed
ERROR: qemu-native-3.1.1.1-r0 do_compile: Function failed: do_compile (log file is located at /home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/temp/log.do_compile.2264683)
ERROR: Logfile of failure stored in: /home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/temp/log.do_compile.2264683
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 LD=ld  AR=ar OBJCOPY=objcopy LDFLAGS=-L/home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/recipe-sysroot-native/usr/lib                         -L/home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/myusername/Desktop/coral_BAK/coral/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -fuse-ld=bfd
|   LINK    mips-linux-user/qemu-mips
|   LINK    i386-linux-user/qemu-i386
|   LINK    arm-linux-user/qemu-arm
|   LINK    mipsel-linux-user/qemu-mipsel
| /home/myusername/Desktop/coral_BAK/coral/build/tmp/hosttools/ld.bfd: linux-user/syscall.o: in function `do_syscall1':
| /home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/qemu-3.1.1.1/linux-user/syscall.c:7404: undefined reference to `stime'
| /home/myusername/Desktop/coral_BAK/coral/build/tmp/hosttools/ld.bfd: linux-user/syscall.o: in function `do_syscall1':
| /home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/qemu-3.1.1.1/linux-user/syscall.c:7404: undefined reference to `stime'
| collect2: error: ld returned 1 exit status
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:199: qemu-i386] Error 1
| make: *** [Makefile:483: subdir-i386-linux-user] Error 2
| make: *** Waiting for unfinished jobs....
| make[1]: *** [Makefile:199: qemu-mipsel] Error 1
| make: *** [Makefile:483: subdir-mipsel-linux-user] Error 2
| /home/myusername/Desktop/coral_BAK/coral/build/tmp/hosttools/ld.bfd: linux-user/syscall.o: in function `do_syscall1':
| /home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/qemu-3.1.1.1/linux-user/syscall.c:7404: undefined reference to `stime'
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:199: qemu-mips] Error 1
| make: *** [Makefile:483: subdir-mips-linux-user] Error 2
| /home/myusername/Desktop/coral_BAK/coral/build/tmp/hosttools/ld.bfd: linux-user/syscall.o: in function `do_syscall1':
| /home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/qemu-3.1.1.1/linux-user/syscall.c:7404: undefined reference to `stime'
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:199: qemu-arm] Error 1
| make: *** [Makefile:483: subdir-arm-linux-user] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/myusername/Desktop/coral_BAK/coral/build/tmp/work/x86_64-linux/qemu-native/3.1.1.1-r0/temp/log.do_compile.2264683)
ERROR: Task (/home/myusername/Desktop/coral_BAK/coral/sources/poky/meta/recipes-devtools/qemu/qemu-native_3.1.1.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3251 tasks of which 3250 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
  /home/myusername/Desktop/coral_BAK/coral/sources/poky/meta/recipes-devtools/qemu/qemu-native_3.1.1.1.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
mirzak commented 5 months ago

Unfortunately warrior is on the older side, where it will be tough to get any support. You can try the upstream mailing list, but the recommendation will probably be to upgrade as there are no incentives to support something that is EOL.