Skip to content

Commit

Permalink
ubuntu: Install buildtools on Ubuntu 16.04
Browse files Browse the repository at this point in the history
The new requirement for gcc 6.0 or later isn't met by Ubuntu 16.04.

The distro-entry script is also modified to enable buildtools whenever
they have been installed.

Signed-off-by: Paul Barker <[email protected]>
  • Loading branch information
pbrkr authored and Randy Witt committed Jun 15, 2020
1 parent ecfe1d9 commit 7f45b6a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dockerfiles/ubuntu/ubuntu-16.04/ubuntu-16.04-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ RUN apt-get update && \
echo 'dash dash/sh boolean false' | debconf-set-selections && \
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash

# The versions of gcc, tar and other tools found in Ubuntu 16.04 are now too
# old to build recent Yocto Project releases. Install the buildtools tarball to
# provide the required tools.
COPY install-buildtools.sh /
RUN bash /install-buildtools.sh && \
rm /install-buildtools.sh

COPY build-install-dumb-init.sh /
RUN bash /build-install-dumb-init.sh && \
rm /build-install-dumb-init.sh && \
Expand Down

1 comment on commit 7f45b6a

@jcormier
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: This breaks builds for rocko and thud.

14:18:51  ERROR: perl-native-5.24.4-r0 do_configure: Function failed: do_configure (log file is located at /work/build/arago-tmp-external-arm-toolchain/work/x86_64-linux/perl-native/5.24.4-r0/temp/log.do_configure.17334)
...
14:18:51  | /opt/poky/3.1.3/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/9.3.0/../../../../x86_64-pokysdk-linux/bin/ld: cannot find -lnsl
14:18:51  | collect2: error: ld returned 1 exit status
14:18:51  | I can't compile the test program.
14:18:51  | You have a BIG problem.  Shall I abort Configure [y]

Please sign in to comment.