Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 632032 - =sys-apps/systemd-234-r4 fail in pretend with missing /usr/src/linux
Summary: =sys-apps/systemd-234-r4 fail in pretend with missing /usr/src/linux
Status: RESOLVED DUPLICATE of bug 462582
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-26 08:41 UTC by Francesco Riosa
Modified: 2017-09-26 17:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/tmp/portage/sys-apps/systemd-234-r4/temp/environment (environment,213.38 KB, text/plain)
2017-09-26 08:41 UTC, Francesco Riosa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Riosa 2017-09-26 08:41:17 UTC
Created attachment 496432 [details]
/var/tmp/portage/sys-apps/systemd-234-r4/temp/environment

the system where the ebuild file is maintained using binary packages, also the kernel is built on another box, thus "/usr/src/linux" is missing.

Error message:

astro ~ # FEATURES=-fail-clean emerge -1 =sys-apps/systemd-234-r4
Calculating dependencies... done!
>>> Running pre-merge checks for sys-apps/systemd-234-r4
 * systemd-234-r4.tbz2 MD5 SHA1 size ;-) ...                             [ ok ]
 * Determining the location of the kernel source code
 * Unable to find kernel sources at /usr/src/linux
 * Please make sure that /usr/src/linux points at your running kernel, 
 * (or the kernel you wish to build against).
 * Alternatively, set the KERNEL_DIR environment variable to the kernel sources location
 * Unable to calculate Linux Kernel version for build, attempting to use running version
/var/tmp/portage/sys-apps/systemd-234-r4/temp/environment: line 3064: value = (3 << 16) + (7 << 8) +  : syntax error: operand expected (error token is "+  ")
 * The ebuild phase 'pretend' has exited unexpectedly. This type of
 * behavior is known to be triggered by things such as failed variable
 * assignments (bug #190128) or bad substitution errors (bug #200313).
 * Normally, before exiting, bash should have displayed an error message
 * above. If bash did not produce an error message above, it's possible
 * that the ebuild has called `exit` when it should have called `die`
 * instead. This behavior may also be triggered by a corrupt bash binary or
 * a hardware problem such as memory or cpu malfunction. If the problem is
 * not reproducible or it appears to occur randomly, then it is likely to
 * be triggered by a hardware problem. If you suspect a hardware problem
 * then you should try some basic hardware diagnostics such as memtest.
 * Please do not report this as a bug unless it is consistently
 * reproducible and you are sure that your bash binary and hardware are
 * functioning properly.

 * Messages for package sys-apps/systemd-234-r4:

 * The ebuild phase 'pretend' has exited unexpectedly. This type of
 * behavior is known to be triggered by things such as failed variable
 * assignments (bug #190128) or bad substitution errors (bug #200313).
 * Normally, before exiting, bash should have displayed an error message
 * above. If bash did not produce an error message above, it's possible
 * that the ebuild has called `exit` when it should have called `die`
 * instead. This behavior may also be triggered by a corrupt bash binary or
 * a hardware problem such as memory or cpu malfunction. If the problem is
 * not reproducible or it appears to occur randomly, then it is likely to
 * be triggered by a hardware problem. If you suspect a hardware problem
 * then you should try some basic hardware diagnostics such as memtest.
 * Please do not report this as a bug unless it is consistently
 * reproducible and you are sure that your bash binary and hardware are
 * functioning properly.
 * Unable to find kernel sources at /usr/src/linux
 * Unable to calculate Linux Kernel version for build, attempting to use running version
astro ~ #
Comment 1 Francesco Riosa 2017-09-26 08:44:43 UTC
Core(TM) i7-3610QM CPU @ 2.30GHz GenuineIntel GNU/Linux
Portage 2.3.8 (python 3.6.1-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-7.1.0, glibc-2.24-r4, 4.13.2 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.13.2-x86_64-Intel-R-_Core-TM-_i7-3610QM_CPU_@_2.30GHz-with-gentoo-2.4.1
KiB Mem:    16315552 total,   3310184 free
KiB Swap:    1999868 total,   1655036 free
Timestamp of repository gentoo: Tue, 26 Sep 2017 05:30:01 +0000
Head commit of repository gentoo: be726952d58dbe5d678dfc5375fc75b6d6a99079
Timestamp of repository vivovl: Sat, 23 Sep 2017 13:58:37 +0000
Head commit of repository vivovl: c6762ea762c7daa5cb1717ac487f783919bfd29e

sh bash 4.4_p12
ld GNU ld (Gentoo 2.29 p1.0) 2.29
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.6.1-r1::vivovl
dev-util/cmake:           3.9.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.31.2::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29::gentoo
sys-devel/gcc:            7.1.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r4::gentoo
Repositories:

gentoo
    location: /var/portage/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

vivovl
    location: /var/portage/repos/vivovl
    sync-type: git
    sync-uri: git@github.com:vivo75/vivovl.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=corei7 -pipe -flto=8 -fuse-linker-plugin -fno-fat-lto-objects -floop-nest-optimize -fgraphite-identity -floop-interchange -floop-strip-mine -floop-block -grecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -march=corei7 -pipe -flto=8 -fuse-linker-plugin -fno-fat-lto-objects -floop-nest-optimize -fgraphite-identity -floop-interchange -floop-strip-mine -floop-block -grecord-gcc-switches"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j4 --autounmask=n --ask-enter-invalid --getbinpkg --usepkg-exclude "sys-kernel/spl x11-drivers/nvidia-drivers app-emulation/virtualbox-modules sys-fs/zfs-kmod""
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles multilib-strict news noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/lib64/qt5/plugins/krossruby.so"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--as-needed,-z,now -O3 -march=corei7 -pipe -flto=8 -fuse-linker-plugin -fno-fat-lto-objects -floop-nest-optimize -fgraphite-identity -floop-interchange -floop-strip-mine -floop-block -grecord-gcc-switches"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 appstream berkdb bluetooth branding bzip2 cairo cdda cdr clang cli cpudetection cracklib crypt cups cxx dbus declarative dri dts dvd dvdr egl emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gles2 gpm gpu gtk iconv ipv6 jpeg kde kipi kwallet lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf pgo phonon plasma png policykit ppds pulseaudio qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell sse sse2 ssl startup-notification svg systemd tcpd threads tiff truetype udev udisks unicode upower usb vaapi vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="krita" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes f16c mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev wacom libinput synaptics" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6" QEMU_SOFTMMU_TARGETS="x86_64 aarch64 arm" RUBY_TARGETS="ruby24" SANE_BACKENDS="hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005" USERLAND="GNU" VIDEO_CARDS="intel i965 nouveau radeon radeonsi amdgpu qxl modesetting" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-apps/systemd-234-r4::gentoo was built with the following:
USE="acl cryptsetup curl elfutils gcrypt gnuefi kmod lz4 lzma pam (policykit) qrcode seccomp ssl xkb -apparmor -audit -build -http -idn -importd -libidn2 -nat (-selinux) -sysv-utils -test -vanilla" ABI_X86="32 (64) (-x32)"
CFLAGS="-O2 -march=corei7 -pipe -fvar-tracking-assignments -g3 -ggdb -ggnu-pubnames -grecord-gcc-switches"
CXXFLAGS="-O2 -march=corei7 -pipe -fvar-tracking-assignments -g3 -ggnu-pubnames -grecord-gcc-switches"
LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--as-needed,-z,now"
Comment 2 Ben Kohler gentoo-dev 2017-09-26 17:16:50 UTC

*** This bug has been marked as a duplicate of bug 462582 ***