build_package fails on install

53 views
Skip to first unread message

gerritbi...@gmail.com

unread,
Sep 28, 2016, 4:47:54 AM9/28/16
to CoreOS Dev
Hello

I am trying to build using the cros_sdk version 1068.10.0. I do this in a privileged docker container.
Currently I am stuck at the build_packages step, seems a permission problem with installation.
A lot of packages are already build, but util-linux keeps failing.
I don't get the reason clear because it is internal in the chroot so the rights shall be no problem?.

Error message:
>>>  '/build/amd64-usr/var/log/portage/sys-apps:util-linux-2.27.1:20160928-082836.log'
>>> Jobs: 82 of 121 complete, 1 running             Load avg: 1.54, 1.64, 1.08
>>> Jobs: 82 of 121 complete, 1 running, 1 failed   Load avg: 1.54, 1.64, 1.08
>>> Jobs: 82 of 121 complete, 1 failed              Load avg: 1.54, 1.64, 1.08

 * Package:    sys-apps/util-linux-2.27.1
 * Repository: portage-stable
 * Maintainer: base-system
 * USE:        abi_x86_64 amd64 cramfs elibc_glibc kernel_linux ncurses pam python_single_target_python2_7 python_targets_python2_7 suid unicode userland_GNU
 * FEATURES:   ccache compressdebug preserve-libs sandbox splitdebug userpriv usersandbox
 * Running stacked hooks for pre_pkg_setup
 *    sysroot_build_bin_dir ...
 [ ok ]
/usr/lib/portage/python2.7/phase-functions.sh: line 237:   775 Segmentation fault      (core dumped) install -m${PORTAGE_WORKDIR_MODE:-0700} -d "${WORKDIR}"
 * ERROR: sys-apps/util-linux-2.27.1::portage-stable failed (unpack phase):
 *   Failed to create dir '/build/amd64-usr/var/tmp/portage/sys-apps/util-linux-2.27.1/work'
 *
 * Call stack:
 *            ebuild.sh, line  780:  Called __ebuild_main 'unpack'
 *   phase-functions.sh, line 1008:  Called __dyn_unpack
 *   phase-functions.sh, line  243:  Called die
 * The specific snippet of code:
 *           install -m${PORTAGE_WORKDIR_MODE:-0700} -d "${WORKDIR}" || die "Failed to create dir '${WORKDIR}'"
 *

And
ls -la /build/amd64-usr/var/tmp/portage/sys-apps/util-linux-2.27.1/
total 4
drwxr-xr-x 5 core portage 4096 Sep 28 08:28 .
drwxrwxr-x 3 core portage   30 Sep 28 08:28 ..
-rw-r--r-- 1 core portage    0 Sep 28 08:28 .die_hooks
prwxrwx--- 1 root portage    0 Sep 28 08:28 .ipc_in
prwxrwx--- 1 root portage    0 Sep 28 08:28 .ipc_out
-rw-r--r-- 1 root root       0 Sep 28 08:28 .logid
-rw-r--r-- 1 root root       0 Sep 28 08:28 .setuped
drwxr-xr-x 2 root portage   37 Sep 28 08:28 distdir
drwxr-xr-x 2 core portage    6 Sep 28 08:28 homedir
drwxr-xr-x 3 core portage   77 Sep 28 08:28 temp

What could be causing this? How to debug this further?

Greetings Gerrit Binnenmars

gerritbi...@gmail.com

unread,
Sep 28, 2016, 6:52:20 AM9/28/16
to CoreOS Dev
Additional info:
Not sure if related but I see also:
 * Messages for package sys-apps/systemd-229-r108 merged to /build/amd64-usr/:

 * Unable to find kernel sources at /build/amd64-usr/usr/src/linux
 * Unable to calculate Linux Kernel version for build, attempting to use running version
 * Kernel version at least 3.11 required

Gerrit

Michael Marineau

unread,
Sep 28, 2016, 3:32:36 PM9/28/16
to coreos-dev
Something is causing the `install` binary to segfault:

Segmentation fault (core dumped) install ...

Not sure what the cause could be, you could try re-installing
coreutils in case it is some corruption and if still a problem try
inspecting core dump under gdb.

gerritbi...@gmail.com

unread,
Sep 29, 2016, 4:13:35 AM9/29/16
to CoreOS Dev
Hello Michael,

Thanks for your response. If I enter the chroot (chromite/bin/cros_sdk) and give the exact same command manually to create the directory there is no problem. It is only a problem during build_package.

Greetings Gerrit

gerritbi...@gmail.com

unread,
Oct 3, 2016, 4:18:10 AM10/3/16
to CoreOS Dev
Hello,

The good news is that my problem is solved. The bad news is that I bothered you for nothing.
The problem was a combination of CentOS 7.2 and OverlayFS. I switched to Fedora and now the docker images builds without any problems.

Thanks for your support.

Gerrit

On Wednesday, September 28, 2016 at 10:47:54 AM UTC+2, gerritbi...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages