Yocto的InfluxDB配方在Rocko中使用devtool工作流程失败

时间:2019-06-25 20:57:33

标签: go embedded-linux yocto influxdb

我希望将PHYTEC的InfluxDB版本1.7.6添加到我的单板计算机中,并首先执行以下操作:

  1. 使用devtool

    创建初始配方
    devtool add influxdb https://github.com/influxdata/influxdb/archive/v1.7.6.tar.gz
    
  2. 编辑配方。我将其与thud的随机层的recipe相关联,并向其中添加必要的行。配方如下:

# Recipe created by recipetool
# This is the basis of a recipe and may need further editing in order to be fully functional.
# (Feel free to remove these comments when editing.)

# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is
# your responsibility to verify that the values are complete and correct.
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ba8146ad9cc2a128209983265136e06a"

SRC_URI = "https://github.com/influxdata/influxdb/archive/v${PV}.tar.gz"
SRC_URI[md5sum] = "0c9e9ada13672bc923390b0cbcf1189c"
SRC_URI[sha256sum] = "b3393e4c9bc66dcbf7607f389377ba549628e80f6fd9dca598ce5ad68a696885"

# NOTE: no Makefile found, unable to determine what needs to be done
inherit go systemd

FILES_${PN} += "${GOBIN_FINAL}/*"
RDEPENDS_${PN} += "bash python-core"

SRC_URI += "file://influxdb.conf file://influxdb.service"

do_install_append () {
        install -d ${D}${sysconfdir}/influxdb/
        install -m 0644 ${WORKDIR}/influxdb.conf ${D}${sysconfdir}/influxdb/

        install -d ${D}${systemd_unitdir}/system/
        install -m 0644 ${WORKDIR}/influxdb.service ${D}${systemd_unitdir}/system/
}

SYSTEMD_SERVICE_${PN} = "influxdb.service"
  1. 我在文件夹.conf中添加了influxdb.servicefiles文件,配方文件夹如下所示:
 .
├── files
│   ├── influxdb.conf
│   └── influxdb.service
└── influxdb_1.7.6.bb
  1. 我尝试了以下方法来制作食谱:

    devtool build influxdb
    

我得到以下错误:

DEBUG: Executing python function externalsrc_compile_prefunc
NOTE: influxdb: compiling from external source tree /home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/workspace/sources/influxdb
DEBUG: Python function externalsrc_compile_prefunc finished
DEBUG: Executing shell function do_compile
GOARCH="arm"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/workspace/sources/influxdb"
GORACE=""
GOROOT="/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sysroot/usr/lib/go"
GOTOOLDIR="/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sysroot-native/usr/lib/arm-phytec-linux-gnueabi/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
GOARM="7"
CC="arm-phytec-linux-gnueabi-gcc -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influx
db/1.7.6-r0/recipe-sysroot"
GOGCCFLAGS="-march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sy
sroot -fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/go-tmp/go-build548794802=/tmp/g
o-build -gno-record-gcc-switches"
CXX="arm-phytec-linux-gnueabi-g++ -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influ
xdb/1.7.6-r0/recipe-sysroot"
CGO_ENABLED="1"
CGO_CFLAGS="-O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0=/usr/src/debug/influx
db/1.7.6-r0 -fdebug-prefix-map=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/des/Yocto/PHYTEC_
BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sysroot="
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0=/usr/src/debug/infl
uxdb/1.7.6-r0 -fdebug-prefix-map=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/des/Yocto/PHYTE
C_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sysroot= -fvisibility-inlines-hidden"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
PKG_CONFIG="pkg-config"
warning: "/..." matched no packages
go install: no install location for directory /home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/workspace/sources/influxdb outside GOPATH
        For more details see: 'go help gopath'
WARNING: /home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/temp/run.do_compile.28359:1 exit 1 from 'arm-phytec-linux-gnueabi-go install -linkshare
d -p 4 -v -ldflags="-r /usr/lib/go/pkg/linux_arm_dynlink  -extldflags '-march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/corte
xa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sysroot -Wl,-rpath-link=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sysroot/
usr/lib/go/pkg/linux_arm_dynlink -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed'" `go_list_packages`'
ERROR: Function failed: do_compile (log file is located at /home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/temp/log.do_compile.28359)

我无法理解为什么go install错误在这里仍然存在。在本地服务器上,我拥有PATH文件中所有正确的~/.bashrc参数,我认为这不是错误的根本原因。

P.S。我已经将meta-golang和分支rocko以及所有其他元层添加到了bblayers.conf

0 个答案:

没有答案