Docker Community Forums

Share and learn in the Docker community.

Docker ubuntu:14.04, yocto compilation failed


(Yanianco) #1

Hello,

I am a new user, I apologize if I do not use the correct category.

I need to create a yocto distribution with an Ubuntu 14.04.

So, on a Debian 9, I built a docker from ubuntu:14.04, I added some packages for the SDK, I started the container, I cloned the repository yocto git (dora branch) and other recipes, I did all the configuration and I started ‘bitbake core-image-minimal’.

after a few minutes, the process stops and the container ends without any message (sdtout, neither daemon.log).

I tried on 2 different PCs with the same result.

Failure seems to occur when the Yocto process executes the do_configure step for flex-native.

I do not understand why, I’m sure I missed a configuration, but which one?

Have a good day.

Dockerfile

from ubuntu:14.04

COPY ./02Proxy /etc/apt/apt.conf.d/02Proxy

RUN export DEBIAN_FRONTEND=noninteractive &&
apt-get update &&
apt-get upgrade -y -q &&
apt-get install -y -q gawk wget git-core diffstat unzip texinfo gcc-multilib
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect
xz-utils debianutils iputils-ping make xsltproc docbook-utils fop dblatex xmlto subversion autotools-dev autoconf cmake

RUN export DEBIAN_FRONTEND=noninteractive && apt-get install -y sudo &&
useradd --create-home --uid 1000 sts &&
echo “sts:sts” | chgpasswd &&
echo “sts ALL=(root) NOPASSWD:ALL” > /etc/sudoers.d/sts &&
chmod 0440 /etc/sudoers.d/sts

CMD [ “su”, “-”, “sts”, “-c”, “/bin/bash”]

Yocto bitbake

sts@5f40ccdde011:~/yocto/eldim/poky/build-eldim$ bitbake core-image-minimal
WARNING: Host distribution “Ubuntu-14.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% |####################################################################| ETA: 00:00:00
Loaded 1674 entries from dependency cache.
Parsing recipes: 100% |##################################################################| Time: 00:00:00
Parsing of 1292 .bb files complete (1286 cached, 6 parsed). 1682 targets, 132 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = “1.20.0”
BUILD_SYS = “x86_64-linux”
NATIVELSBSTRING = “Ubuntu-14.04”
TARGET_SYS = “arm-poky-linux-gnueabi”
MACHINE = “mitysom-5csx”
DISTRO = “poky”
DISTRO_VERSION = “1.5.4”
TUNE_FEATURES = “armv7a vfp neon callconvention-hard cortexa9”
TARGET_FPU = “vfp-neon”
meta
meta-yocto
meta-yocto-bsp = “dora:8e9e7e8def9b0b728937d34115f7165677c31bed”
meta-mitysom-5csx = “dora:eb86ae5a3216177029ed94b0b86016f88cf77253”
meta-oe = “dora:e75ae8f50af3effe560c43fc63cfd1f39395f011”

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
Currently 4 running tasks (128 of 1489):
0: linux-libc-headers-mitysom-5csx-3.16-r1 do_fetch (pid 137)
1: gperf-native-3.0.4-r0 do_configure (pid 135)
2: flex-native-2.5.37-r0 do_configure (pid 134)
3: libmpc-native-1.0.1-r0 do_configure (pid 136)
yann@ian:~/MEGA/Yann/SVMS/docker$