Adding packages to CoreOS SDK stuck with circular dependencies

154 views
Skip to first unread message

rama...@gmail.com

unread,
Dec 2, 2016, 12:21:10 PM12/2/16
to CoreOS Dev
I'm new to CoreOS SDK. Tried to follow CoreOS developer SDK guide, but got stuck at the command:

user@ubuntu ~/trunk/src/scripts $ emerge-amd64-usr --emptytree -p -v --tree coreos-base/coreos-dev

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!


[ebuild  N     ] coreos-base/coreos-dev-0.1.0-r76::coreos to /build/amd64-usr/ USE="-vm-testing" 0 KiB
[nomerge       ]  coreos-base/coreos-0.0.1-r274::coreos to /build/amd64-usr/ USE="selinux" ETCD_PROTOCOLS="1 2"
[nomerge       ]   sec-policy/selinux-virt-2.20141203-r13::coreos to /build/amd64-usr/
[nomerge       ]    sec-policy/selinux-base-policy-2.20141203-r13::coreos to /build/amd64-usr/ USE="unconfined"
[ebuild  N     ]     sec-policy/selinux-unconfined-2.20141203-r13::coreos to /build/amd64-usr/ 957 KiB
[ebuild  N     ]  coreos-base/coreos-0.0.1-r274::coreos to /build/amd64-usr/ USE="selinux" ETCD_PROTOCOLS="1 2" 0 KiB
[ebuild  N     ]   sec-policy/selinux-virt-2.20141203-r13::coreos to /build/amd64-usr/ 0 KiB
[ebuild  N     ]    sec-policy/selinux-base-policy-2.20141203-r13::coreos to /build/amd64-usr/ USE="unconfined" 0 KiB
[ebuild  N     ]   sys-apps/usbutils-008-r1::portage-stable to /build/amd64-usr/ USE="-python" PYTHON_TARGETS="python2_7" 281 KiB
[ebuild  N     ]    virtual/libusb-1-r2:1::portage-stable to /build/amd64-usr/ USE="udev" 0 KiB
[ebuild  N     ]     dev-libs/libusb-1.0.19:1::portage-stable to /build/amd64-usr/ USE="udev -debug -doc -examples -static-libs {-test}" 510 KiB
[ebuild  N     ]   coreos-base/update_engine-0.3.2::coreos to /build/amd64-usr/ USE="cros-debug symlink-usr -cros_host -delta_generator -profiling" 0 KiB
[ebuild  N     ]    dev-libs/dbus-glib-0.102::coreos to /build/amd64-usr/ USE="-debug -doc -static-libs {-test}" 766 KiB
[nomerge       ] sec-policy/selinux-unconfined-2.20141203-r13::coreos to /build/amd64-usr/
[nomerge       ]  sec-policy/selinux-base-policy-2.20141203-r13::coreos to /build/amd64-usr/ USE="unconfined"
[ebuild  N     ]   sec-policy/selinux-base-2.20141203-r13::coreos to /build/amd64-usr/ USE="open_perms peer_perms ubac unconfined -doc" 0 KiB
[nomerge       ] coreos-base/coreos-0.0.1-r274::coreos to /build/amd64-usr/ USE="selinux" ETCD_PROTOCOLS="1 2"
[ebuild  N     ]  coreos-base/coreos-init-0.0.1-r135::coreos to /build/amd64-usr/ USE="symlink-usr -profiling {-test}" 0 KiB
[ebuild  N     ]   sys-block/parted-3.2::portage-stable to /build/amd64-usr/ USE="debug device-mapper readline -nls -selinux -static-libs" 1617 KiB
[ebuild  N     ]   app-emulation/docker-1.11.2-r5::coreos to /build/amd64-usr/ USE="btrfs device-mapper journald overlay selinux (-apparmor) -aufs -contrib -experimental -profiling -seccomp -vim-syntax -zsh-completion" GO_VERSION="go1_6" 0 KiB
[ebuild  N     ]    sys-kernel/coreos-kernel-4.7.3-r3:0/4.7.3-r3::coreos to /build/amd64-usr/ 0 KiB
[ebuild  N    ~]     sys-kernel/dracut-044::portage-stable to /build/amd64-usr/ USE="systemd -debug -selinux" 274 KiB
[ebuild  N     ]  sys-auth/realmd-0.16.2::coreos to /build/amd64-usr/ USE="systemd" 451 KiB
[ebuild  N     ]  sys-auth/sssd-1.13.1-r2::coreos to /build/amd64-usr/ USE="locator ssh -acl -augeas -autofs -manpages -netlink -nfsv4 -nls -python -samba -selinux -sudo {-test}" PYTHON_TARGETS="python2_7 -python3_3 -python3_4" 4412 KiB
[ebuild  N     ]  sys-apps/lshw-02.16b-r2::portage-stable to /build/amd64-usr/ USE="-gtk -sqlite -static" 1803 KiB
[ebuild  N     ]  net-misc/dhcpcd-6.10.1::portage-stable to /build/amd64-usr/ USE="embedded ipv6 udev" 176 KiB
[ebuild  N     ]  sys-apps/pciutils-3.3.1::portage-stable to /build/amd64-usr/ USE="kmod udev zlib -dns -static-libs" 385 KiB
[ebuild  N     ]  sys-fs/multipath-tools-0.5.0-r2::coreos to /build/amd64-usr/ USE="systemd" 180 KiB
[ebuild  N     ]  sys-block/open-iscsi-2.0.873-r2::coreos to /build/amd64-usr/ USE="-debug -slp" 652 KiB
[nomerge       ] sys-apps/lshw-02.16b-r2::portage-stable to /build/amd64-usr/ USE="-gtk -sqlite -static"
[ebuild  N    ~]  sys-apps/hwids-20150717-r1::portage-stable to /build/amd64-usr/ USE="net pci udev usb" 1705 KiB
[ebuild  N     ]   virtual/udev-208-r2::portage-stable to /build/amd64-usr/ USE="-gudev -introspection -static-libs" 0 KiB
[nomerge       ] net-misc/dhcpcd-6.10.1::portage-stable to /build/amd64-usr/ USE="embedded ipv6 udev"
[nomerge       ]  virtual/udev-208-r2::portage-stable to /build/amd64-usr/ USE="-gudev -introspection -static-libs"
[nomerge       ]   sys-apps/systemd-231-r5:0/2::coreos to /build/amd64-usr/ USE="audit cryptsetup curl gcrypt http importd kmod lzma nat pam policykit seccomp selinux symlink-usr (sysv-utils) (vanilla) -acl (-apparmor) -elfutils -gnuefi -idn (-kdbus) -lz4 -man -profiling -qrcode (-ssl) {-test} -xkb"
[ebuild  N     ]    sys-fs/cryptsetup-1.6.5::portage-stable to /build/amd64-usr/ USE="gcrypt udev -kernel -nettle -nls -openssl -pwquality -python -reencrypt (-static) (-static-libs) -urandom" PYTHON_SINGLE_TARGET="python2_7 -python3_3 -python3_4" PYTHON_TARGETS="python2_7 -python3_3 -python3_4" 1111 KiB
[ebuild  N     ]    sys-auth/polkit-0.113-r3::coreos to /build/amd64-usr/ USE="introspection pam systemd -examples -gtk -jit -kde -nls -selinux {-test}" 1415 KiB
[nomerge       ] coreos-base/coreos-0.0.1-r274::coreos to /build/amd64-usr/ USE="selinux" ETCD_PROTOCOLS="1 2"
[ebuild  N     ]  app-misc/ca-certificates-3.19.1::coreos to /build/amd64-usr/ 6791 KiB
[ebuild  N     ]  sys-process/procps-3.3.9-r2::portage-stable to /build/amd64-usr/ USE="ncurses systemd unicode -nls -selinux -static-libs {-test}" 548 KiB
[ebuild  N     ]  sys-apps/dbus-1.8.16-r2::coreos to /build/amd64-usr/ USE="selinux (systemd) -X -debug -doc -static-libs {-test}" 1823 KiB
[nomerge       ] sys-fs/multipath-tools-0.5.0-r2::coreos to /build/amd64-usr/ USE="systemd"
[ebuild  N     ]  sys-fs/lvm2-2.02.116-r4::portage-stable to /build/amd64-usr/ USE="systemd thin udev (-clvm) (-cman) -device-mapper-only -lvm1 -lvm2create_initrd -readline -selinux (-static) (-static-libs)" 1503 KiB
[ebuild   R    ]   sys-apps/baselayout-3.1.4::coreos to /build/amd64-usr/ USE="symlink-usr -cros_host -profiling" 0 KiB
[ebuild  N     ]   virtual/libudev-208:0/1::portage-stable to /build/amd64-usr/ USE="(-static-libs)" 0 KiB
[ebuild  N     ]    sys-apps/systemd-231-r5:0/2::coreos to /build/amd64-usr/ USE="audit cryptsetup curl gcrypt http importd kmod lzma nat pam policykit seccomp selinux symlink-usr (sysv-utils) (vanilla) -acl (-apparmor) -elfutils -gnuefi -idn (-kdbus) -lz4 -man -profiling -qrcode (-ssl) {-test} -xkb" 0 KiB
[nomerge       ] coreos-base/coreos-0.0.1-r274::coreos to /build/amd64-usr/ USE="selinux" ETCD_PROTOCOLS="1 2"
[ebuild  N     ]  app-crypt/go-tspi-0.1-r4::coreos to /build/amd64-usr/ GO_VERSION="go1_7" 0 KiB
[ebuild  N     ]   app-crypt/trousers-0.3.13-r2::coreos to /build/amd64-usr/ USE="-doc -libressl -selinux" 1340 KiB
[nomerge       ] coreos-base/coreos-init-0.0.1-r135::coreos to /build/amd64-usr/ USE="symlink-usr -profiling {-test}"
[ebuild  N     ]  sys-apps/gptfdisk-1.0.1::portage-stable to /build/amd64-usr/ USE="ncurses -static" 191 KiB
[nomerge       ] sys-auth/sssd-1.13.1-r2::coreos to /build/amd64-usr/ USE="locator ssh -acl -augeas -autofs -manpages -netlink -nfsv4 -nls -python -samba -selinux -sudo {-test}" PYTHON_TARGETS="python2_7 -python3_3 -python3_4"
[ebuild  N     ]  sys-libs/ldb-1.1.26-r1:0/1.1.26::coreos to /build/amd64-usr/ USE="-doc" PYTHON_TARGETS="python2_7" 1234 KiB
[nomerge       ] coreos-base/coreos-0.0.1-r274::coreos to /build/amd64-usr/ USE="selinux" ETCD_PROTOCOLS="1 2"
[ebuild  N     ]  net-fs/nfs-utils-1.3.2-r8::coreos to /build/amd64-usr/ USE="ipv6 libmount nfsidmap nfsv4 uuid -caps -kerberos -nfsdcld -nfsv41 -selinux -tcpd" 772 KiB
[nomerge       ] sys-auth/sssd-1.13.1-r2::coreos to /build/amd64-usr/ USE="locator ssh -acl -augeas -autofs -manpages -netlink -nfsv4 -nls -python -samba -selinux -sudo {-test}" PYTHON_TARGETS="python2_7 -python3_3 -python3_4"
[nomerge       ]  sys-apps/dbus-1.8.16-r2::coreos to /build/amd64-usr/ USE="selinux (systemd) -X -debug -doc -static-libs {-test}"
[ebuild  N     ]   app-text/docbook-xml-dtd-4.4-r2:4.4::portage-stable to /build/amd64-usr/ 94 KiB
[nomerge       ] sys-auth/realmd-0.16.2::coreos to /build/amd64-usr/ USE="systemd"
[nomerge       ]  sys-auth/polkit-0.113-r3::coreos to /build/amd64-usr/ USE="introspection pam systemd -examples -gtk -jit -kde -nls -selinux {-test}"
[ebuild  N     ]   dev-libs/gobject-introspection-1.40.0-r1::portage-stable to /build/amd64-usr/ USE="-cairo -doctool {-test}" PYTHON_TARGETS="python2_7" 1257 KiB
[ebuild  N     ]    x11-misc/shared-mime-info-1.4::portage-stable to /build/amd64-usr/ USE="{-test}" 526 KiB
[ebuild  N     ]    dev-util/desktop-file-utils-0.22::portage-stable to /build/amd64-usr/ USE="-emacs" 128 KiB
[nomerge       ] sys-auth/sssd-1.13.1-r2::coreos to /build/amd64-usr/ USE="locator ssh -acl -augeas -autofs -manpages -netlink -nfsv4 -nls -python -samba -selinux -sudo {-test}" PYTHON_TARGETS="python2_7 -python3_3 -python3_4"
[ebuild  N     ]  sys-libs/tdb-1.3.8::portage-stable to /build/amd64-usr/ USE="-python" PYTHON_TARGETS="python2_7" 483 KiB
[nomerge       ] coreos-base/coreos-0.0.1-r274::coreos to /build/amd64-usr/ USE="selinux" ETCD_PROTOCOLS="1 2"
[ebuild  N     ]  sys-fs/btrfs-progs-4.4.1::portage-stable to /build/amd64-usr/ USE="convert -static -static-libs" 1146 KiB
[ebuild  N     ]   app-text/asciidoc-8.6.9-r2::portage-stable to /build/amd64-usr/ USE="-examples -graphviz -highlight {-test}" PYTHON_SINGLE_TARGET="python2_7 (-pypy)" PYTHON_TARGETS="python2_7 (-pypy)" 886 KiB
[ebuild  N     ]  sys-fs/mdadm-3.3.1-r2::portage-stable to /build/amd64-usr/ USE="-static" 524 KiB
[ebuild  N     ]  sys-fs/xfsprogs-3.2.1::coreos to /build/amd64-usr/ USE="readline -libedit -nls -static -static-libs" 1442 KiB
[ebuild  N     ]  sys-apps/seismograph-2.1.1-r1::coreos to /build/amd64-usr/ USE="-profiling" 0 KiB
[nomerge       ] coreos-base/coreos-0.0.1-r274::coreos to /build/amd64-usr/ USE="selinux" ETCD_PROTOCOLS="1 2"
[nomerge       ]  app-emulation/docker-1.11.2-r5::coreos to /build/amd64-usr/ USE="btrfs device-mapper journald overlay selinux (-apparmor) -aufs -contrib -experimental -profiling -seccomp -vim-syntax -zsh-completion" GO_VERSION="go1_6"
[nomerge       ]   sys-fs/btrfs-progs-4.4.1::portage-stable to /build/amd64-usr/ USE="convert -static -static-libs"
[ebuild  N     ]    app-text/xmlto-0.0.26::portage-stable to /build/amd64-usr/ USE="-latex" 118 KiB
[ebuild  N     ]     app-text/docbook-xml-dtd-4.2-r2:4.2::portage-stable to /build/amd64-usr/ 77 KiB
[nomerge       ] app-crypt/trousers-0.3.13-r2::coreos to /build/amd64-usr/ USE="-doc -libressl -selinux"
[ebuild  N     ]  dev-libs/glib-2.44.1:2::portage-stable to /build/amd64-usr/ USE="xattr -dbus -debug (-fam) -mime -selinux -static-libs -systemtap {-test} -utils" PYTHON_TARGETS="python2_7" 8852 KiB
[ebuild  N     ]   app-text/docbook-xml-dtd-4.1.2-r6:4.1.2::portage-stable to /build/amd64-usr/ 74 KiB
[nomerge       ] sys-kernel/dracut-044::portage-stable to /build/amd64-usr/ USE="systemd -debug -selinux"
[nomerge       ]  app-text/asciidoc-8.6.9-r2::portage-stable to /build/amd64-usr/ USE="-examples -graphviz -highlight {-test}" PYTHON_SINGLE_TARGET="python2_7 (-pypy)" PYTHON_TARGETS="python2_7 (-pypy)"
[ebuild  N     ]   app-text/docbook-xml-dtd-4.5-r1:4.5::portage-stable to /build/amd64-usr/ 97 KiB
[ebuild  N     ]    app-text/docbook-xsl-stylesheets-1.78.0-r1::portage-stable to /build/amd64-usr/ USE="-ruby" 4894 KiB
[ebuild  N     ]     app-text/build-docbook-catalog-1.19.1::portage-stable to /build/amd64-usr/ 5 KiB
[nomerge       ] coreos-base/coreos-0.0.1-r274::coreos to /build/amd64-usr/ USE="selinux" ETCD_PROTOCOLS="1 2"
[nomerge       ]  sys-kernel/coreos-kernel-4.7.3-r3:0/4.7.3-r3::coreos to /build/amd64-usr/
[nomerge       ]   sys-fs/btrfs-progs-4.4.1::portage-stable to /build/amd64-usr/ USE="convert -static -static-libs"
[ebuild  N     ]    sys-fs/e2fsprogs-1.42.13-r1::coreos to /build/amd64-usr/ USE="-nls -static-libs" 6360 KiB
[ebuild  N    ~]     sys-apps/util-linux-2.27.1::portage-stable to /build/amd64-usr/ USE="cramfs ncurses pam suid systemd udev unicode -caps -fdformat -nls (-python) -selinux -slang -static-libs {-test} -tty-helpers" PYTHON_SINGLE_TARGET="python2_7 -python3_3 -python3_4" PYTHON_TARGETS="python2_7 -python3_3 -python3_4" 3872 KiB

Total: 58 packages (57 new, 1 reinstall), Size of downloads: 61713 KiB

 * Error: circular dependencies:

(sys-apps/util-linux-2.27.1:0/0::portage-stable, ebuild scheduled for merge to '/build/amd64-usr/') depends on
 (sys-apps/systemd-231-r5:0/2::coreos, ebuild scheduled for merge to '/build/amd64-usr/') (buildtime)
  (sys-apps/util-linux-2.27.1:0/0::portage-stable, ebuild scheduled for merge to '/build/amd64-usr/') (buildtime_slot_op)

It might be possible to break this cycle
by applying the following change:
- sys-apps/util-linux-2.27.1 (Change USE: -systemd)

Note that this change can be reverted, once the package has been installed.

Note that the dependency graph contains a lot of cycles.
Several changes might be required to resolve all cycles.
Temporarily changing some use flag for all packages might be the better option.


I tried to add package sys-auth/munge:

~/trunk/src/scripts $ ./update_ebuilds sys-auth/munge

This performed well. But emerge failed:


~/trunk/src/scripts $ emerge-amd64-usr sys-auth/munge
....

Error: circular dependencies:

(sys-apps/util-linux-2.27.1:0/0::portage-stable, ebuild scheduled for merge to '/build/amd64-usr/') depends on
 (sys-apps/systemd-231-r5:0/2::coreos, ebuild scheduled for merge to '/build/amd64-usr/') (buildtime)
  (sys-apps/util-linux-2.27.1:0/0::portage-stable, ebuild scheduled for merge to '/build/amd64-usr/') (buildtime_slot_op)


I work with branch build-1185, but with the latest branch result was the same.
Any help appreciated.

Nick Owens

unread,
Dec 2, 2016, 2:53:16 PM12/2/16
to coreo...@googlegroups.com
as emerge suggests:


It might be possible to break this cycle
by applying the following change:
- sys-apps/util-linux-2.27.1 (Change USE: -systemd)

you can run "USE=-systemd emerge-amd64-usr sys-apps/util-linux" and then run "build_packages" again to break the dependency cycle.

Michael Marineau

unread,
Dec 2, 2016, 3:29:38 PM12/2/16
to coreos-dev
Using the build_packages script will automatically break this cycle.

On Fri, Dec 2, 2016 at 9:21 AM, <rama...@gmail.com> wrote:

rama...@gmail.com

unread,
Dec 2, 2016, 3:43:37 PM12/2/16
to CoreOS Dev
After successful ./build_packages circular dependencies error is gone
And with the command emerge-amd64-usr sys-auth/munge the pakage begins configuring, but fails with error: cannot run test program while cross compiling

user@ubuntu ~/trunk/src/scripts $ emerge-amd64-usr sys-auth/munge                                                              
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-auth/munge-0.5.10-r1::portage-stable for /build/amd64-usr/
 * munge-0.5.10.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                            [ ok ]
 * Running stacked hooks for pre_pkg_setup
 *    sysroot_build_bin_dir ...                                                                                         [ ok ]
 * Running stacked hooks for pre_src_unpack
 *    python_multilib_setup ...                                                                                         [ ok ]
>>> Unpacking source...
>>> Unpacking munge-0.5.10.tar.bz2 to /build/amd64-usr/var/tmp/portage/sys-auth/munge-0.5.10-r1/work
>>> Source unpacked in /build/amd64-usr/var/tmp/portage/sys-auth/munge-0.5.10-r1/work
>>> Preparing source in /build/amd64-usr/var/tmp/portage/sys-auth/munge-0.5.10-r1/work/munge-0.5.10 ...
>>> Source prepared.
>>> Configuring source in /build/amd64-usr/var/tmp/portage/sys-auth/munge-0.5.10-r1/work/munge-0.5.10 ...
 * econf: updating munge-0.5.10/config/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating munge-0.5.10/config/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-cros-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --libdir=/usr/lib64 --with-crypto-lib=openssl --localstatedir=/var
configure: loading site script /usr/share/config.site
configure: loading site script /usr/share/crossdev/include/site/linux
configure: loading site script /usr/share/crossdev/include/site/linux-gnu
configure: loading site script /usr/share/crossdev/include/site/x86_64-linux-gnu
checking metadata... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-cros-linux-gnu
checking for a sense of humor... yes
checking installation directory variables... yes
checking for a BSD-compatible install... /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for x86_64-cros-linux-gnu-strip... x86_64-cros-linux-gnu-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for x86_64-cros-linux-gnu-gcc... x86_64-cros-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-cros-linux-gnu-gcc accepts -g... yes
checking for x86_64-cros-linux-gnu-gcc option to accept ISO C89... none needed
checking dependency style of x86_64-cros-linux-gnu-gcc... none
checking how to run the C preprocessor... x86_64-cros-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for specified code architecture... no
checking for x86_64-cros-linux-gnu-gcc... (cached) x86_64-cros-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether x86_64-cros-linux-gnu-gcc accepts -g... (cached) yes
checking for x86_64-cros-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking dependency style of x86_64-cros-linux-gnu-gcc... (cached) none
checking whether x86_64-cros-linux-gnu-gcc and cc understand -c and -o together... yes
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by x86_64-cros-linux-gnu-gcc... /usr/libexec/gcc/x86_64-cros-linux-gnu/ld
checking if the linker (/usr/libexec/gcc/x86_64-cros-linux-gnu/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/x86_64-cros-linux-gnu-nm -B
checking the name lister (/usr/bin/x86_64-cros-linux-gnu-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/libexec/gcc/x86_64-cros-linux-gnu/ld option to reload object files... -r
checking for x86_64-cros-linux-gnu-objdump... x86_64-cros-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-cros-linux-gnu-ar... x86_64-cros-linux-gnu-ar
checking for x86_64-cros-linux-gnu-strip... (cached) x86_64-cros-linux-gnu-strip
checking for x86_64-cros-linux-gnu-ranlib... x86_64-cros-linux-gnu-ranlib
checking command to parse /usr/bin/x86_64-cros-linux-gnu-nm -B output from x86_64-cros-linux-gnu-gcc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-cros-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-cros-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-cros-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-cros-linux-gnu-gcc static flag -static works... yes
checking if x86_64-cros-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-cros-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-cros-linux-gnu-gcc linker (/usr/libexec/gcc/x86_64-cros-linux-gnu/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether make sets $(MAKE)... (cached) yes
checking whether debugging is enabled... no
checking how to link against pthreads... -lpthread
checking for BZ2_bzBuffToBuffCompress in default libs... no
checking for BZ2_bzBuffToBuffCompress in -lbz2... yes
checking for compress in default libs... no
checking for compress in -lz... yes
checking for library containing gethostbyname... none required
checking for library containing socket... none required
checking for libgcrypt-config... /usr/bin/libgcrypt-config
checking for LIBGCRYPT - version >= 1.2.0... yes (1.6.5)
checking LIBGCRYPT API version... okay
checking for OpenSSL installation... /usr
checking which cryptographic library to use... openssl
checking for ERR_error_string_n... yes
checking for EVP_CipherInit_ex... yes
checking for EVP_DigestInit_ex... yes
checking for EVP_aes_128_cbc... yes
checking for EVP_aes_256_cbc... yes
checking for EVP_sha256... yes
checking for EVP_sha512... yes
checking for HMAC_Init_ex... yes
checking for CRYPTO_dynlock... yes
checking for ANSI C header files... (cached) yes
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking standards.h usability... no
checking standards.h presence... no
checking for standards.h... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for socklen_t... yes
checking for localtime_r... yes
checking for sysconf... yes
checking for inet_ntop... yes
checking for strlcat... no
checking for strlcpy... no
checking for getgrent... yes
checking for getgrent_r (AIX)... no
checking for getgrent_r (GNU)... yes
checking for getgrent_r (SunOS)... no
checking for getpwnam... yes
checking for getpwnam_r (AIX)... no
checking for getpwnam_r (POSIX)... yes
checking for getpwnam_r (SunOS)... no
configure: checking authentication support
checking for getpeereid... no
checking for getpeerucred... no
checking ucred.h usability... no
checking ucred.h presence... no
checking for ucred.h... no
checking for struct ucred... yes
checking for SO_PEERCRED sockopt... yes
checking for struct xucred... no
checking for LOCAL_PEERCRED sockopt... no
checking for struct strrecvfd... yes
checking if file descriptors can be passed over a fifo... configure: error: in `/build/amd64-usr/var/tmp/portage/sys-auth/munge-0.5.10-r1/work/munge-0.5.10':
configure: error: cannot run test program while cross compiling
See `config.log' for more details

!!! Please attach the following file when seeking support:
!!! /build/amd64-usr/var/tmp/portage/sys-auth/munge-0.5.10-r1/work/munge-0.5.10/config.log
 * ERROR: sys-auth/munge-0.5.10-r1::portage-stable failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line 133:  Called src_configure
 *             environment, line 743:  Called econf '--with-crypto-lib=openssl' '--localstatedir=/var'
 *        phase-helpers.sh, line 662:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line 117:  Called die
 * The specific snippet of code:
 *              die "$@"
 *
 * If you need support, post the output of `emerge --info '=sys-auth/munge-0.5.10-r1::portage-stable'`,
 * the complete build log and the output of `emerge -pqv '=sys-auth/munge-0.5.10-r1::portage-stable'`.
 * The complete build log is located at '/build/amd64-usr/var/log/portage/sys-auth:munge-0.5.10-r1:20161202-202336.log'.
 * For convenience, a symlink to the build log is located at '/build/amd64-usr/var/tmp/portage/sys-auth/munge-0.5.10-r1/temp/build.log'.
 * The ebuild environment file is located at '/build/amd64-usr/var/tmp/portage/sys-auth/munge-0.5.10-r1/temp/environment'.
 * Working directory: '/build/amd64-usr/var/tmp/portage/sys-auth/munge-0.5.10-r1/work/munge-0.5.10'
 * S: '/build/amd64-usr/var/tmp/portage/sys-auth/munge-0.5.10-r1/work/munge-0.5.10'

>>> Failed to emerge sys-auth/munge-0.5.10-r1 for /build/amd64-usr/, Log file:

>>>  '/build/amd64-usr/var/log/portage/sys-auth:munge-0.5.10-r1:20161202-202336.log'

 * Messages for package sys-auth/munge-0.5.10-r1 merged to /build/amd64-usr/:

 * ERROR: sys-auth/munge-0.5.10-r1::portage-stable failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line 133:  Called src_configure
 *             environment, line 743:  Called econf '--with-crypto-lib=openssl' '--localstatedir=/var'
 *        phase-helpers.sh, line 662:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line 117:  Called die
 * The specific snippet of code:
 *              die "$@"
 *
 * If you need support, post the output of `emerge --info '=sys-auth/munge-0.5.10-r1::portage-stable'`,
 * the complete build log and the output of `emerge -pqv '=sys-auth/munge-0.5.10-r1::portage-stable'`.
 * The complete build log is located at '/build/amd64-usr/var/log/portage/sys-auth:munge-0.5.10-r1:20161202-202336.log'.
 * For convenience, a symlink to the build log is located at '/build/amd64-usr/var/tmp/portage/sys-auth/munge-0.5.10-r1/temp/build.log'.
 * The ebuild environment file is located at '/build/amd64-usr/var/tmp/portage/sys-auth/munge-0.5.10-r1/temp/environment'.
 * Working directory: '/build/amd64-usr/var/tmp/portage/sys-auth/munge-0.5.10-r1/work/munge-0.5.10'
 * S: '/build/amd64-usr/var/tmp/portage/sys-auth/munge-0.5.10-r1/work/munge-0.5.10'


I tried to edit configure script, but it overwrites every time.
Without cross compilling emerge sys-auth/munge works fine.
Is there a way to deal with the error?

пятница, 2 декабря 2016 г., 23:29:38 UTC+3 пользователь Michael Marineau написал:

Michael Marineau

unread,
Dec 2, 2016, 4:10:47 PM12/2/16
to coreos-dev
Typically with autoconf test results are stored in ac_cv_....
variables and the test is only run if the value is unset. So you can
export the test result in advance. It isn't always obvious what the
right variable name is but the full list of them can be found in
config.log after a successful run of the configure script. In this
case it appears to be x_ac_cv_check_fifo_recvfd=no so as a quick test
simply do:

export x_ac_cv_check_fifo_recvfd=no
emerge-amd64-usr sys-auth/munge

If that works you can that export to the ebuild itself (we place
modified ebuilds in coreos-overlay instead of portage-stable) or to
leave the ebuild as-is you can drop in an appropriately named file
into the overlay similar to this one:
https://github.com/coreos/coreos-overlay/blob/master/coreos/config/env/app-admin/setools

Hope that helps.

rama...@gmail.com

unread,
Dec 2, 2016, 4:57:41 PM12/2/16
to CoreOS Dev
It helps. Thank you.
Now I'm trying to install sys-cluster/slurm package. It fails on installation phase:

user@ubuntu ~/trunk/src/scripts $ emerge-amd64-usr sys-cluster/slurm --autounmask-write
--- Invalid atom in /build/amd64-usr/etc/portage/package.unmask/cros-workon: =sys-cluster/slurm-16.05.2 ~amd64
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-cluster/slurm-16.05.2::portage-stable for /build/amd64-usr/
 * slurm-16.05.2.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                           [ ok ]
 * Running stacked hooks for pre_pkg_setup
 *    sysroot_build_bin_dir ...                                                                                         [ ok ]
 * Running stacked hooks for pre_src_unpack
 *    python_multilib_setup ...                                                                                         [ ok ]
>>> Unpacking source...
>>> Unpacking slurm-16.05.2.tar.bz2 to /build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/work
>>> Source unpacked in /build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/work
>>> Preparing source in /build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/work/slurm-16.05.2 ...
 * Applying slurm-16.05.2-disable-sview.patch ...                                                                       [ ok ]
/build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/temp/environment: line 4505: hprefixify: command not found
 * Running eautoreconf in '/build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/work/slurm-16.05.2' ...
 * Running libtoolize --install --copy --force --automake ...                                                           [ ok ]
 * Running aclocal -I auxdir -I /build/amd64-usr/usr/share/aclocal ...                                                  [ ok ]
 * Running autoconf --force -I /build/amd64-usr/usr/share/aclocal ...                                                   [ ok ]
 * Running autoheader -I /build/amd64-usr/usr/share/aclocal ...                                                         [ ok ]
 * Running automake --add-missing --copy --foreign --force-missing ...
...

make: Entering directory '/build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/work/slurm-16.05.2/contribs/pam'
make[1]: Entering directory '/build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/work/slurm-16.05.2/contribs/pam'
make[1]: Nothing to be done for 'install-data-am'.
make[1]: Leaving directory '/build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/work/slurm-16.05.2/contribs/pam'
make: Leaving directory '/build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/work/slurm-16.05.2/contribs/pam'
/build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/temp/environment: line 4497: prefixify_ro: command not found
 * ERROR: sys-cluster/slurm-16.05.2::portage-stable failed (install phase):
 *   !!! newinitd:  does not exist
 *
 * If you need support, post the output of `emerge --info '=sys-cluster/slurm-16.05.2::portage-stable'`,
 * the complete build log and the output of `emerge -pqv '=sys-cluster/slurm-16.05.2::portage-stable'`.
 * The complete build log is located at '/build/amd64-usr/var/log/portage/sys-cluster:slurm-16.05.2:20161202-214111.log'.
 * For convenience, a symlink to the build log is located at '/build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/temp/build.log'.
 * The ebuild environment file is located at '/build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/temp/environment'.
 * Working directory: '/build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/work/slurm-16.05.2'
 * S: '/build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/work/slurm-16.05.2'
 * QA Notice: command not found:
 *
 *      /build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/temp/environment: line 4505: hprefixify: command not found
 *      /build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/temp/environment: line 4497: prefixify_ro: command not found

>>> Failed to emerge sys-cluster/slurm-16.05.2 for /build/amd64-usr/, Log file:

>>>  '/build/amd64-usr/var/log/portage/sys-cluster:slurm-16.05.2:20161202-214111.log'

 * Messages for package sys-cluster/slurm-16.05.2 merged to /build/amd64-usr/:

 * ERROR: sys-cluster/slurm-16.05.2::portage-stable failed (install phase):
 *   !!! newinitd:  does not exist
 *
 * If you need support, post the output of `emerge --info '=sys-cluster/slurm-16.05.2::portage-stable'`,
 * the complete build log and the output of `emerge -pqv '=sys-cluster/slurm-16.05.2::portage-stable'`.
 * The complete build log is located at '/build/amd64-usr/var/log/portage/sys-cluster:slurm-16.05.2:20161202-214111.log'.
 * For convenience, a symlink to the build log is located at '/build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/temp/build.log'.
 * The ebuild environment file is located at '/build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/temp/environment'.
 * Working directory: '/build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/work/slurm-16.05.2'
 * S: '/build/amd64-usr/var/tmp/portage/sys-cluster/slurm-16.05.2/work/slurm-16.05.2'



суббота, 3 декабря 2016 г., 0:10:47 UTC+3 пользователь Michael Marineau написал:

rama...@gmail.com

unread,
Dec 2, 2016, 6:13:09 PM12/2/16
to CoreOS Dev
Got rid of this error by replacing file third_party/portage-stable/eclass/prefix.eclass with this one http://ftp.uni-kl.de/pub/linux/gentoo-portage/eclass/prefix.eclass
But installation stil not succesful

суббота, 3 декабря 2016 г., 0:57:41 UTC+3 пользователь rama...@gmail.com написал:
Reply all
Reply to author
Forward
0 new messages