Skip to content

Instantly share code, notes, and snippets.

@stresler
Created July 1, 2015 16:35
Show Gist options
  • Save stresler/a9f43db5bbb805f88922 to your computer and use it in GitHub Desktop.
Save stresler/a9f43db5bbb805f88922 to your computer and use it in GitHub Desktop.
CoreOS SDK Error
* Package: sys-apps/policycoreutils-2.4
* Repository: coreos
* Maintainer: selinux
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 userland_GNU
* FEATURES: compressdebug preserve-libs sandbox splitdebug userpriv usersandbox
* 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 policycoreutils-2.4.tar.gz to /build/amd64-usr/var/tmp/portage/sys-apps/policycoreutils-2.4/work
>>> Unpacking policycoreutils-extra-1.33.tar.bz2 to /build/amd64-usr/var/tmp/portage/sys-apps/policycoreutils-2.4/work
>>> Source unpacked in /build/amd64-usr/var/tmp/portage/sys-apps/policycoreutils-2.4/work
>>> Preparing source in /build/amd64-usr/var/tmp/portage/sys-apps/policycoreutils-2.4/work/policycoreutils-2.4 ...
* Applying 0010-remove-sesandbox-support.patch ...
[ ok ]
* Applying 0020-disable-autodetection-of-pam-and-audit.patch ...
[ ok ]
* Applying 0030-make-inotify-check-use-flag-triggered.patch ...
[ ok ]
* Applying 0040-reverse-access-check-in-run_init.patch ...
[ ok ]
* Applying 0070-remove-symlink-attempt-fails-with-gentoo-sandbox-approach.patch ...
[ ok ]
* Applying 0110-build-mcstrans-bug-472912.patch ...
[ ok ]
* Applying 0120-build-failure-for-mcscolor-for-CONTEXT__CONTAINS.patch ...
[ ok ]
>>> Source prepared.
>>> Configuring source in /build/amd64-usr/var/tmp/portage/sys-apps/policycoreutils-2.4/work/policycoreutils-2.4 ...
>>> Source configured.
>>> Compiling source in /build/amd64-usr/var/tmp/portage/sys-apps/policycoreutils-2.4/work/policycoreutils-2.4 ...
make --jobs=8 --load-average=16 -C /build/amd64-usr/var/tmp/portage/sys-apps/policycoreutils-2.4/work/policycoreutils-2.4 AUDIT_LOG_PRIVS=y AUDITH=no PAMH=no INOTIFYH=no SESANDBOX=n CC=x86_64-cros-linux-gnu-gcc PREFIX=/build/amd64-usr/ PYLIBVER= LIBDIR=$(PREFIX)/lib64
make: Entering directory '/build/amd64-usr/var/tmp/portage/sys-apps/policycoreutils-2.4/work/policycoreutils-2.4'
make[1]: Entering directory '/build/amd64-usr/var/tmp/portage/sys-apps/policycoreutils-2.4/work/policycoreutils-2.4/sepolicy'
python setup.py build
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/sepolicy
copying sepolicy/interface.py -> build/lib.linux-x86_64-2.7/sepolicy
copying sepolicy/booleans.py -> build/lib.linux-x86_64-2.7/sepolicy
copying sepolicy/network.py -> build/lib.linux-x86_64-2.7/sepolicy
copying sepolicy/__init__.py -> build/lib.linux-x86_64-2.7/sepolicy
copying sepolicy/gui.py -> build/lib.linux-x86_64-2.7/sepolicy
copying sepolicy/manpage.py -> build/lib.linux-x86_64-2.7/sepolicy
copying sepolicy/generate.py -> build/lib.linux-x86_64-2.7/sepolicy
copying sepolicy/transition.py -> build/lib.linux-x86_64-2.7/sepolicy
copying sepolicy/communicate.py -> build/lib.linux-x86_64-2.7/sepolicy
copying sepolicy/sedbus.py -> build/lib.linux-x86_64-2.7/sepolicy
creating build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/rw.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/var_log.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/network.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/semodule.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/tmp.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/__init__.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/executable.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/user.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/script.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/var_run.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/etc_rw.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/boolean.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/var_cache.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/spec.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/unit_file.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/var_spool.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/test_module.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
copying sepolicy/templates/var_lib.py -> build/lib.linux-x86_64-2.7/sepolicy/templates
creating build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/__init__.py -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/sepolicy.glade -> build/lib.linux-x86_64-2.7/sepolicy
copying sepolicy/help/login_default.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/ports_outbound.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/booleans_more_show.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/transition_from.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/lockdown.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/ports_inbound.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/files_exec.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/start.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/files_write.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/booleans_toggled.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/transition_file.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/users.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/transition_from_boolean_2.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/lockdown_unconfined.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/login.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/system.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/system_current_mode.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/booleans_more.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/lockdown_ptrace.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/lockdown_permissive.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/file_equiv.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/transition_from_boolean_1.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/system_policy_type.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/files_apps.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/system_relabel.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/booleans.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/system_export.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/transition_to.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/transition_from_boolean.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/system_boot_mode.txt -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/transition_from_boolean_1.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/lockdown_permissive.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/transition_from_boolean.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/booleans.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/transition_file.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/lockdown.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/users.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/system_boot_mode.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/booleans_more.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/system.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/files_write.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/transition_from_boolean_2.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/transition_from.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/booleans_toggled.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/ports_outbound.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/system_relabel.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/system_export.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/system_current_mode.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/lockdown_ptrace.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/system_policy_type.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/transition_to.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/start.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/ports_inbound.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/files_apps.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/login_default.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/file_equiv.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/login.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/lockdown_unconfined.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/files_exec.png -> build/lib.linux-x86_64-2.7/sepolicy/help
copying sepolicy/help/booleans_more_show.png -> build/lib.linux-x86_64-2.7/sepolicy/help
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building 'sepolicy._policy' extension
creating build/temp.linux-x86_64-2.7
x86_64-cros-linux-gnu-gcc -I/build/amd64-usr//include -DPACKAGE=policycoreutils -Wall -Wextra -W -DSHARED -shared -fPIC -I/usr/include/python2.7 -c policy.c -o build/temp.linux-x86_64-2.7/policy.o
cc1: warning: include location "/usr/include/python2.7" is unsafe for cross-compilation [-Wpoison-system-directories]
x86_64-cros-linux-gnu-gcc -I/build/amd64-usr//include -DPACKAGE=policycoreutils -Wall -Wextra -W -DSHARED -shared -fPIC -I/usr/include/python2.7 -c info.c -o build/temp.linux-x86_64-2.7/info.o
cc1: warning: include location "/usr/include/python2.7" is unsafe for cross-compilation [-Wpoison-system-directories]
x86_64-cros-linux-gnu-gcc -I/build/amd64-usr//include -DPACKAGE=policycoreutils -Wall -Wextra -W -DSHARED -shared -fPIC -I/usr/include/python2.7 -c search.c -o build/temp.linux-x86_64-2.7/search.o
cc1: warning: include location "/usr/include/python2.7" is unsafe for cross-compilation [-Wpoison-system-directories]
x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O2 -Wl,--as-needed -L. -Wl,-O1 -Wl,--as-needed -I/build/amd64-usr//include -DPACKAGE=policycoreutils -Wall -Wextra -W -DSHARED -shared build/temp.linux-x86_64-2.7/policy.o build/temp.linux-x86_64-2.7/info.o build/temp.linux-x86_64-2.7/search.o -L/usr/lib64 -lapol -lqpol -lpython2.7 -o build/lib.linux-x86_64-2.7/sepolicy/_policy.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lapol
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lqpol
collect2: error: ld returned 1 exit status
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
Makefile:21: recipe for target 'python-build' failed
make[1]: *** [python-build] Error 1
make[1]: Leaving directory '/build/amd64-usr/var/tmp/portage/sys-apps/policycoreutils-2.4/work/policycoreutils-2.4/sepolicy'
Makefile:10: recipe for target 'all' failed
make: *** [all] Error 1
make: Leaving directory '/build/amd64-usr/var/tmp/portage/sys-apps/policycoreutils-2.4/work/policycoreutils-2.4'
* ERROR: sys-apps/policycoreutils-2.4::coreos failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=sys-apps/policycoreutils-2.4::coreos'`,
* the complete build log and the output of `emerge -pqv '=sys-apps/policycoreutils-2.4::coreos'`.
* The complete build log is located at '/build/amd64-usr/var/log/portage/sys-apps:policycoreutils-2.4:20150701-151416.log'.
* For convenience, a symlink to the build log is located at '/build/amd64-usr/var/tmp/portage/sys-apps/policycoreutils-2.4/temp/build.log'.
* The ebuild environment file is located at '/build/amd64-usr/var/tmp/portage/sys-apps/policycoreutils-2.4/temp/environment'.
* Working directory: '/build/amd64-usr/var/tmp/portage/sys-apps/policycoreutils-2.4/work/policycoreutils-2.4'
* S: '/build/amd64-usr/var/tmp/portage/sys-apps/policycoreutils-2.4/work/policycoreutils-2.4'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment