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, 
[email protected] wrote:
>
> 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
>

Reply via email to