linux-sunxi / meta-sunxi

Official sunxi OpenEmbedded layer for Allwinner-based boards.
MIT License
145 stars 182 forks source link

build failed of sunxi-mali_git.bb for meta-ivi and meta-sunxi #19

Closed chenbd closed 9 years ago

chenbd commented 10 years ago

can some please guide me how to fix this problem? i want to build a genivi baseline for sunxi A20 board. log as follows: bitbake gemini-image Loading cache: 100% |###########################################################################################################| ETA: 00:00:00 Loaded 1219 entries from dependency cache. NOTE: Resolving any missing task queue dependencies NOTE: preferred version 3.4.61 of linux-libc-headers not available (for item linux-libc-headers) NOTE: versions of linux-libc-headers available: 3.10 NOTE: preferred version 3.4.61 of linux-libc-headers not available (for item linux-libc-headers-dev) NOTE: versions of linux-libc-headers available: 3.10

Build Configuration: BB_VERSION = "1.20.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-12.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "cubieboard2" DISTRO = "poky-ivi-systemd" DISTRO_VERSION = "5.0.1" TUNE_FEATURES = "armv7a vfp neon" TARGET_FPU = "vfp-neon" meta
meta-yocto
meta-yocto-bsp = "dora:53d2563ff13fcec74d4250bef5419e36169e55cc" meta-ivi = "5.0:efeb671d2ec3b07c2136af57b5e117ae6a19bd5a" meta-sunxi = "master:db3d191f284c7c6d00a9c6329fe6075229340c0e"

NOTE: Preparing runqueue NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 1, output: fatal: Could not switch to '/home/chenbd/genivi-baseline/yocto/build/downloads/git2/github.com.linux-sunxi.sunxi-mali.git.tmp/lib': No such file or directory Unable to fetch in submodule path 'lib/mali'

ERROR: Logfile of failure stored in: /home/chenbd/genivi-baseline/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/sunxi-mali/git-r0/temp/log.do_unpack.10480 Log data follows: DEBUG: Executing python function do_unpack DEBUG: Executing python function base_do_unpack DEBUG: Running export SSH_AGENT_PID="1933"; export SSH_AUTH_SOCK="/tmp/keyring-ZZD4cX/ssh"; export PATH="/home/chenbd/genivi-baseline/yocto/poky/scripts:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/cubieboard2/usr/bin/crossscripts:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/bin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/sbin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux//bin:/home/chenbd/genivi-baseline/yocto/poky/scripts:/home/chenbd/genivi-baseline/yocto/poky/bitbake/bin:/home/chenbd/bin:/home/chenbd/android-sdk-linux/tools:/home/chenbd/android-sdk-linux/platform-tools:/home/chenbd/android-studio/bin:/home/chenbd/my-android-toolchain/bin:/home/chenbd/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/sunJVM/JDK/jdk1.6.0_33/bin"; export HOME="/home/chenbd"; git clone -s -n /home/chenbd/genivi-baseline/yocto/build/downloads/git2/github.com.linux-sunxi.sunxi-mali.git/ /home/chenbd/genivi-baseline/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/sunxi-mali/git-r0/git/ DEBUG: Running export SSH_AGENT_PID="1933"; export SSH_AUTH_SOCK="/tmp/keyring-ZZD4cX/ssh"; export PATH="/home/chenbd/genivi-baseline/yocto/poky/scripts:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/cubieboard2/usr/bin/crossscripts:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/bin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/sbin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux//bin:/home/chenbd/genivi-baseline/yocto/poky/scripts:/home/chenbd/genivi-baseline/yocto/poky/bitbake/bin:/home/chenbd/bin:/home/chenbd/android-sdk-linux/tools:/home/chenbd/android-sdk-linux/platform-tools:/home/chenbd/android-studio/bin:/home/chenbd/my-android-toolchain/bin:/home/chenbd/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/sunJVM/JDK/jdk1.6.0_33/bin"; export HOME="/home/chenbd"; git checkout 0809383f9d3ee2575da52262a639ddd6464a641f DEBUG: Running export SSH_AGENT_PID="1933"; export SSH_AUTH_SOCK="/tmp/keyring-ZZD4cX/ssh"; export PATH="/home/chenbd/genivi-baseline/yocto/poky/scripts:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/cubieboard2/usr/bin/crossscripts:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/bin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/sbin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux//bin:/home/chenbd/genivi-baseline/yocto/poky/scripts:/home/chenbd/genivi-baseline/yocto/poky/bitbake/bin:/home/chenbd/bin:/home/chenbd/android-sdk-linux/tools:/home/chenbd/android-sdk-linux/platform-tools:/home/chenbd/android-studio/bin:/home/chenbd/my-android-toolchain/bin:/home/chenbd/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/sunJVM/JDK/jdk1.6.0_33/bin"; export HOME="/home/chenbd"; git show 0809383f9d3ee2575da52262a639ddd6464a641f:.gitmodules DEBUG: Running export SSH_AGENT_PID="1933"; export SSH_AUTH_SOCK="/tmp/keyring-ZZD4cX/ssh"; export PATH="/home/chenbd/genivi-baseline/yocto/poky/scripts:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/cubieboard2/usr/bin/crossscripts:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/bin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/sbin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux//bin:/home/chenbd/genivi-baseline/yocto/poky/scripts:/home/chenbd/genivi-baseline/yocto/poky/bitbake/bin:/home/chenbd/bin:/home/chenbd/android-sdk-linux/tools:/home/chenbd/android-sdk-linux/platform-tools:/home/chenbd/android-studio/bin:/home/chenbd/my-android-toolchain/bin:/home/chenbd/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/sunJVM/JDK/jdk1.6.0_33/bin"; export HOME="/home/chenbd"; cp -r /home/chenbd/genivi-baseline/yocto/build/downloads/git2/github.com.linux-sunxi.sunxi-mali.git/modules /home/chenbd/genivi-baseline/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/sunxi-mali/git-r0/git//.git/ DEBUG: Running export SSH_AGENT_PID="1933"; export SSH_AUTH_SOCK="/tmp/keyring-ZZD4cX/ssh"; export PATH="/home/chenbd/genivi-baseline/yocto/poky/scripts:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/cubieboard2/usr/bin/crossscripts:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/bin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/sbin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux//bin:/home/chenbd/genivi-baseline/yocto/poky/scripts:/home/chenbd/genivi-baseline/yocto/poky/bitbake/bin:/home/chenbd/bin:/home/chenbd/android-sdk-linux/tools:/home/chenbd/android-sdk-linux/platform-tools:/home/chenbd/android-studio/bin:/home/chenbd/my-android-toolchain/bin:/home/chenbd/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/sunJVM/JDK/jdk1.6.0_33/bin"; export HOME="/home/chenbd"; git submodule init DEBUG: Running export SSH_AGENT_PID="1933"; export SSH_AUTH_SOCK="/tmp/keyring-ZZD4cX/ssh"; export PATH="/home/chenbd/genivi-baseline/yocto/poky/scripts:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/cubieboard2/usr/bin/crossscripts:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/usr/bin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux/sbin:/home/chenbd/genivi-baseline/yocto/build/tmp/sysroots/x86_64-linux//bin:/home/chenbd/genivi-baseline/yocto/poky/scripts:/home/chenbd/genivi-baseline/yocto/poky/bitbake/bin:/home/chenbd/bin:/home/chenbd/android-sdk-linux/tools:/home/chenbd/android-sdk-linux/platform-tools:/home/chenbd/android-studio/bin:/home/chenbd/my-android-toolchain/bin:/home/chenbd/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/sunJVM/JDK/jdk1.6.0_33/bin"; export HOME="/home/chenbd"; git submodule update DEBUG: Python function base_do_unpack finished DEBUG: Python function do_unpack finished ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 1, output: fatal: Could not switch to '/home/chenbd/genivi-baseline/yocto/build/downloads/git2/github.com.linux-sunxi.sunxi-mali.git.tmp/lib': No such file or directory Unable to fetch in submodule path 'lib/mali'

ERROR: Task 2325 (/home/chenbd/genivi-baseline/yocto/meta-sunxi/recipes-graphics/libgles/sunxi-mali_git.bb, do_unpack) failed with exit code '1' NOTE: Tasks Summary: Attempted 2187 tasks of which 2181 didn't need to be rerun and 1 failed. Waiting for 0 running tasks to finish:

Summary: 1 task failed: /home/chenbd/genivi-baseline/yocto/meta-sunxi/recipes-graphics/libgles/sunxi-mali_git.bb, do_unpack Summary: There was 1 ERROR message shown, returning a non-zero exit code.

chenbd commented 10 years ago

manually create "/home/chenbd/genivi-baseline/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/sunxi-mali/git-r0/git/lib/mali" directory and copy these files to "/home/chenbd/genivi-baseline/yocto/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/sunxi-mali/git-r0/git/lib/mali" and rerun bitbake gemini-image seems ok. /home/chenbd/github/linux-sunxi/sunxi-mali/lib/mali/r2p4 /home/chenbd/github/linux-sunxi/sunxi-mali/lib/mali/r3p0 /home/chenbd/github/linux-sunxi/sunxi-mali/lib/mali/r3p1 /home/chenbd/github/linux-sunxi/sunxi-mali/lib/mali/r3p2-01rel1 /home/chenbd/github/linux-sunxi/sunxi-mali/lib/mali/Makefile /home/chenbd/github/linux-sunxi/sunxi-mali/lib/mali/Makefile.mashup /home/chenbd/github/linux-sunxi/sunxi-mali/lib/mali/Makefile.split /home/chenbd/github/linux-sunxi/sunxi-mali/lib/mali/README

KristofRobot commented 10 years ago

@chenbd - thanks for reporting.

I tried reproducing with meta-sunxi at revision db3d191f284c7c6d00a9c6329fe6075229340c0e, but that failed because of the QA errors fixed in #14.

I then tried with meta-sunxi at the latest revision (meta-sunxi = "master:db3d191f284c7c6d00a9c6329fe6075229340c0e"), and that built successfully.

Could you try again with the latest meta-sunxi revision?

I used following:

Build Configuration:
BB_VERSION        = "1.20.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-13.10"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "cubieboard2"
DISTRO            = "poky-ivi-systemd"
DISTRO_VERSION    = "5.0.1"
TUNE_FEATURES     = "armv7a vfp neon"
TARGET_FPU        = "vfp-neon"
meta              
meta-yocto        
meta-yocto-bsp    = "(detachedfrom53d2563):53d2563ff13fcec74d4250bef5419e36169e55cc"
meta-ivi          = "(detachedfromefeb671):efeb671d2ec3b07c2136af57b5e117ae6a19bd5a"
meta-sunxi        = "master:1101a2da808c9bcfa2096c30b689aafc6c3253e7"

Thanks!