Yocto Build无法在InfluxDB的Bitbake Recipe中执行`go get`命令

I have cloned this meta-influx fork and added to my layers folder in my Yocto directory.

I have also added it to my bblayers.conf and tried baking it using:

bitbake -k github.com-influxdata-influxdb

which provides me the following error logs:

ERROR: github.com-influxdata-influxdb-1.0-r0 do_configure: Function failed: do_configure (log file is located at /opt/PHYTEC_BSPs/yocto_fsl/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/github.com-influxdata-influxdb/1.0-r0/temp/log.do_configure.29201)
ERROR: Logfile of failure stored in: /opt/PHYTEC_BSPs/yocto_fsl/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/github.com-influxdata-influxdb/1.0-r0/temp/log.do_configure.29201
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| /opt/PHYTEC_BSPs/yocto_fsl/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/github.com-influxdata-influxdb/1.0-r0/temp/run.do_configure.29201: line 120: /opt/PHYTEC_BSPs/yocto_fsl/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/github.com-influxdata-influxdb/1.0-r0/github.com-influxdata-influxdb-1.0/bin/gdm: No such file or directory
| WARNING: /opt/PHYTEC_BSPs/yocto_fsl/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/github.com-influxdata-influxdb/1.0-r0/temp/run.do_configure.29201:1 exit 1 from 'go get github.com/sparrc/gdm'
| ERROR: Function failed: do_configure (log file is located at /opt/PHYTEC_BSPs/yocto_fsl/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/github.com-influxdata-influxdb/1.0-r0/temp/log.do_configure.29201)
ERROR: Task 392 (/opt/PHYTEC_BSPs/yocto_fsl/sources/poky/../meta-influx/recipes-go/go/github.com-influxdata-influxdb.bb, do_configure) failed with exit code '1' 

The code says fails at the go get sparrc gdm within the recipe file for influxdb.

On the host machine I do not have golang installed. Is it necessary to have go on the build machine?

(Target board is a PhyTec Mira Board with i.MX6 processor on it)

How do I resolve this issue? I am using krogoth branch (because the board providers have documentation in accordance with the branch)


Even without golang being installed on the machine, the gdm is installed in my /home/<user>/ folder under the directory go which has the src/ bin/ folders. I still can't figure out how to download it to the appropriate ${B} variable in the recipe mentioned above

dsjws44266 在要运行bakefile的用户中安装go,并相应地更新环境变量。
接近 2 年之前 回复
dongmin1166 嗨,我刚刚发现gdm软件包实际上是在我的/home/<user>/文件夹中下载的,而计算机上未安装golang。无论如何,我可以在配方中将下载路径正确更改为${B}变量吗?
接近 2 年之前 回复
dongwo5589 谁给我们确切的日志
接近 2 年之前 回复
dongtan3395 必须在主机中安装golang,并且由于尚未安装,所以这就是为什么在使用goget获取回购信息时出现错误的原因
接近 2 年之前 回复
Csdn user default icon