This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: Yocto docker issue

Part Number: AM3358

Hi TI,

We would like to add docker into our TI SDK based yocto image which is running on our AM3358 based custom board.

Step 1:

Added the following receipes into yocto/tisdk/sources/meta-ti/recipes-containers/

Step2: Added go

yocto/tisdk/sources/meta-ti/recipes-devtools/go/

Step 3: Compile docker

MACHINE=am335x-evm bitbake docker-moby

or

MACHINE=am335x-evm bitbake docker-ce

Could you please help us to solve the issue ?

Error log:

titus@titus-Pc:~/workdir/AM335x/yocto/tisdk/build$ MACHINE=am335x-evm bitbake docker-moby
Loading cache: 100% |#############################################################################################################| Time: 0:00:00
Loaded 4100 entries from dependency cache.
Parsing recipes: 100% |###########################################################################################################| Time: 0:00:09
Parsing of 3190 .bb files complete (3187 cached, 3 parsed). 4102 targets, 487 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/titus/workdir/AM335x/yocto/tisdk/sources/meta-arago/meta-arago-distro/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.8.3.bbappend
/home/titus/workdir/AM335x/yocto/tisdk/sources/meta-processor-sdk/recipes-devtools/python/python3-native_3.5.2.bbappend
/home/titus/workdir/AM335x/yocto/tisdk/sources/meta-processor-sdk/recipes-graphics/wayland/weston_1.11.0.bbappend
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for runtime virtual/containerd (containerd-docker, containerd-opencontainers)
Consider defining a PREFERRED_RPROVIDER entry to match virtual/containerd
NOTE: Multiple providers are available for runtime virtual/runc (runc-docker, runc-opencontainers)
Consider defining a PREFERRED_RPROVIDER entry to match virtual/runc

Build Configuration:
BB_VERSION = "1.36.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "arm-linux-gnueabi"
MACHINE = "am335x-evm"
DISTRO = "arago"
DISTRO_VERSION = "2018.04"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
meta-processor-sdk = "HEAD:264dc66c689e0e4212c43358382986ee470619d4"
meta-ros = "HEAD:e2566402ab108a19634354a934788109422cf409"
meta-arago-distro
meta-arago-extras = "HEAD:d54e9d6c1d461dbf3189e691088d328bf4c4fb19"
meta-browser = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
meta-qt5 = "HEAD:682ad61c071a9710e9f9d8a32ab1b5f3c14953d1"
meta-networking
meta-python
meta-oe
meta-gnome
meta-multimedia = "HEAD:352531015014d1957d6444d114f4451e241c4d23"
meta-ti = "HEAD:8555084679dc5c668e5fb60a16425ca32b10ff21"
meta-maynard-master = "master:5db04c23a85e6b55652a3e89349e3c852bd056ef"
meta-linaro-toolchain
meta-optee = "HEAD:75dfb67bbb14a70cd47afda9726e2e1c76731885"
meta = "HEAD:931a52e8698f684ccbb26ddec18764ad9d9a3e8f"

WARNING: /home/titus/workdir/AM335x/yocto/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.14.bb.do_compile is tainted from a forced run
Initialising tasks: 100% |########################################################################################################| Time: 0:00:01
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: docker-moby-19.03.2+git08bc39c8f9e1ccdc5ff18f6e751105722cecc4a9-r0 do_compile: Function failed: do_compile (log file is located at /home/titus/workdir/AM335x/yocto/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/docker-moby/19.03.2+git08bc39c8f9e1ccdc5ff18f6e751105722cecc4a9-r0/temp/log.do_compile.22502)
ERROR: Logfile of failure stored in: /home/titus/workdir/AM335x/yocto/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/docker-moby/19.03.2+git08bc39c8f9e1ccdc5ff18f6e751105722cecc4a9-r0/temp/log.do_compile.22502
Log data follows:
| DEBUG: Executing shell function do_compile
| # WARNING! I don't seem to be running in a Docker container.
| # The result of this command might be an incorrect build, and will not be
| # officially supported.
| #
| # Try this instead: make all
| #
|
| Package devmapper was not found in the pkg-config search path.
| Perhaps you should add the directory containing `devmapper.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'devmapper' found
| Removing bundles/
|
| ---> Making bundle: dynbinary (in bundles/dynbinary)
| Building: bundles/dynbinary-daemon/dockerd-19.03.2
| GOOS="" GOARCH="arm" GOARM=""
| # github.com/docker/docker/pkg/archive
| .gopath/src/github.com/docker/docker/pkg/archive/archive.go:365:5: hdr.Format undefined (type *tar.Header has no field or method Format)
| .gopath/src/github.com/docker/docker/pkg/archive/archive.go:365:15: undefined: tar.FormatPAX
| .gopath/src/github.com/docker/docker/pkg/archive/archive.go:1160:7: hdr.Format undefined (type *tar.Header has no field or method Format)
| .gopath/src/github.com/docker/docker/pkg/archive/archive.go:1160:17: undefined: tar.FormatPAX
| .gopath/src/github.com/docker/docker/pkg/archive/copy.go:346:7: hdr.Format undefined (type *tar.Header has no field or method Format)
| .gopath/src/github.com/docker/docker/pkg/archive/copy.go:346:17: undefined: tar.FormatPAX
| # github.com/docker/docker/vendor/github.com/vbatts/tar-split/archive/tar
| .gopath/src/github.com/docker/docker/vendor/github.com/vbatts/tar-split/archive/tar/writer.go:178:11: undefined: strings.Builder
| # github.com/docker/docker/vendor/github.com/moby/buildkit/util/apicaps
| .gopath/src/github.com/docker/docker/vendor/github.com/moby/buildkit/util/apicaps/caps.go:147:8: undefined: strings.Builder
| # github.com/docker/docker/vendor/github.com/tonistiigi/fsutil
| .gopath/src/github.com/docker/docker/vendor/github.com/tonistiigi/fsutil/tarwriter.go:44:7: hdr.PAXRecords undefined (type *tar.Header has no field or method PAXRecords)
| .gopath/src/github.com/docker/docker/vendor/github.com/tonistiigi/fsutil/tarwriter.go:47:7: hdr.PAXRecords undefined (type *tar.Header has no field or method PAXRecords)
| # github.com/docker/docker/vendor/github.com/containerd/containerd/archive
| .gopath/src/github.com/docker/docker/vendor/github.com/containerd/containerd/archive/tar.go:409:29: hdr.PAXRecords undefined (type *tar.Header has no field or method PAXRecords)
| .gopath/src/github.com/docker/docker/vendor/github.com/containerd/containerd/archive/tar.go:544:10: hdr.PAXRecords undefined (type *tar.Header has no field or method PAXRecords)
| .gopath/src/github.com/docker/docker/vendor/github.com/containerd/containerd/archive/tar.go:545:8: hdr.PAXRecords undefined (type *tar.Header has no field or method PAXRecords)
| .gopath/src/github.com/docker/docker/vendor/github.com/containerd/containerd/archive/tar.go:547:7: hdr.PAXRecords undefined (type *tar.Header has no field or method PAXRecords)
| # github.com/docker/docker/vendor/github.com/docker/swarmkit/manager/allocator/cnmallocator
| .gopath/src/github.com/docker/docker/vendor/github.com/docker/swarmkit/manager/allocator/cnmallocator/drivers_ipam.go:18:10: undefined: strings.Builder
| WARNING: /home/titus/workdir/AM335x/yocto/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/docker-moby/19.03.2+git08bc39c8f9e1ccdc5ff18f6e751105722cecc4a9-r0/temp/run.do_compile.22502:1 exit 1 from 'VERSION="19.03.2" DOCKER_GITCOMMIT="${SRCREV_docker}" ./hack/make.sh dynbinary'
| ERROR: Function failed: do_compile (log file is located at /home/titus/workdir/AM335x/yocto/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/docker-moby/19.03.2+git08bc39c8f9e1ccdc5ff18f6e751105722cecc4a9-r0/temp/log.do_compile.22502)
ERROR: Task (/home/titus/workdir/AM335x/yocto/tisdk/sources/meta-ti/recipes-containers/docker/docker-moby.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1357 tasks of which 1350 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/titus/workdir/AM335x/yocto/tisdk/sources/meta-ti/recipes-containers/docker/docker-moby.bb:do_compile
Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
titus@titus-Pc:~/workdir/AM335x/yocto/tisdk/build$