Created attachment 526436 [details] kernel 4.16.0 Makefile In recent 4.15.x and in 4.16.0 gentoo-source I have experienced an error during compilation, reported by bash, looks like some missing argument before the && token. I am running 4.15.9-gentoo which compiled well, I transferred .config to the new kernel sources, make oldconfig and then: jp linux-4.16.0-gentoo # make CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK include/generated/bounds.h CHK include/generated/timeconst.h CHK include/generated/asm-offsets.h CALL scripts/checksyscalls.sh DESCEND objtool /bin/sh: -c: line 0: syntax error near unexpected token `&&' /bin/sh: -c: line 0: `set -e; && /usr/src/linux-4.16.0-gentoo/tools/objtool//fixdep /usr/src/linux-4.16.0-gentoo/tools/objtool/.exec-cmd.o.d /usr/src/linux-4.16.0-gentoo/tools/objtool/exec-cmd.o '' > /usr/src/linux-4.16.0-gentoo/tools/objtool/.exec-cmd.o.tmp; rm -f /usr/src/linux-4.16.0-gentoo/tools/objtool/.exec-cmd.o.d; mv -f /usr/src/linux-4.16.0-gentoo/tools/objtool/.exec-cmd.o.tmp /usr/src/linux-4.16.0-gentoo/tools/objtool/.exec-cmd.o.cmd' make[4]: *** [/usr/src/linux-4.16.0-gentoo/tools/build/Makefile.build:97: /usr/src/linux-4.16.0-gentoo/tools/objtool/exec-cmd.o] Error 1 make[3]: *** [Makefile:52: /usr/src/linux-4.16.0-gentoo/tools/objtool/libsubcmd-in.o] Error 2 make[2]: *** [Makefile:54: /usr/src/linux-4.16.0-gentoo/tools/objtool/libsubcmd.a] Error 2 make[1]: *** [Makefile:63: objtool] Error 2 make: *** [Makefile:1687: tools/objtool] Error 2 jp linux-4.16.0-gentoo # jp linux-4.16.0-gentoo # eix app-shells/bash [I] app-shells/bash Available versions: (2.05b) [P]2.05b_p13 (3.0) [P]3.0_p22 (3.1) [P]3.1_p23 (3.2) [P]3.2_p57 (4.0) [P]4.0_p44 (4.1) [P]4.1_p17 (4.2) [P]4.2_p53 (0) **4.3_p39_pre0 4.3_p48-r1 4.4_p12 ~4.4_p12-r1 ~4.4_p18 ~4.4_p19 {afs bashlogger examples mem-scramble +net nls plugins +readline static} Installed versions: 4.4_p12(14:42:32 01/09/18)(net nls readline -afs -bashlogger -examples -mem-scramble -plugins) Homepage: http://tiswww.case.edu/php/chet/bash/bashtop.html Description: The standard GNU Bourne again shell jp linux-4.16.0-gentoo # emerge --info Portage 2.3.24 (python 3.4.5-final-0, default/linux/amd64/17.0, gcc-6.4.0, glibc-2.25-r11, 4.15.9-gentoo x86_64) ================================================================= System uname: Linux-4.15.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-4810MQ_CPU_@_2.80GHz-with-gentoo-2.4.1 KiB Mem: 16337456 total, 838900 free KiB Swap: 8388604 total, 8388604 free Timestamp of repository gentoo: Tue, 03 Apr 2018 11:30:01 +0000 Head commit of repository gentoo: df5384506ce6cd960f3439ab1cd15a5017966bf8 sh bash 4.4_p12 ld GNU ld (Gentoo 2.29.1 p3) 2.29.1 app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.24.3-r1::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.4.5-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo dev-util/cmake: 3.9.6::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.34.11::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.25.1-r1::gentoo, 2.26.1::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo, 2.29.1-r1::gentoo sys-devel/gcc: 4.5.4::gentoo, 4.8.5::gentoo, 4.9.3::gentoo, 4.9.4::gentoo, 5.4.0-r3::gentoo, 6.4.0-r1::gentoo, 7.2.0-r1::gentoo, 7.3.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.25-r11::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: no sync-rsync-extra-opts: science location: /var/lib/layman/science masters: gentoo priority: 1 crossdev location: /opt/portage masters: gentoo science priority: 2 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -mtune=native -fno-omit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb /var/lib/i2pd/certificates" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=native -mtune=native -fno-omit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.supp.name/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://147.251.48.205/pub/linux/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ http://86.49.49.49/pub/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://141.76.119.131/pub/mirrors/gentoo ftp://ftp.sh.cvut.cz/MIRRORS/gentoo ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.supp.name/ rsync://gentoo.mirror.dkm.cz/gentoo/ http://gentoo.mirror.web4u.cz/" LANG="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8" PKGDIR="/usr/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="/scratch/tmp" USE="X acl aes alsa amd64 berkdb bzip2 cli crypt cxx dri fortran gcj gdbm hal iconv ipv6 lapack latex linguas_cs linguas_de linguas_en linguas_nl linguas_sk mbox mmx modules multilib multislot ncurses nls nptl openmp pam pcre readline seccomp sse sse2 sse3 sse4 ssl static-libs systemtap tcpd tetex unicode xattr 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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="keyboard mouse evdev synaptics" KERNEL="linux" 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 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau vesa nv fbdev v4l vga" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
The error happens also when compiling 4.16.2.
Can you attach your .config ?
Created attachment 527926 [details] .config Here .config is attached.
The same behavior with 4.16.3
The same problem with 4.16.5
The same in 4.16.6
I have finally found the problem - it was an exported environment variable "export host=jp". After "unset host" the compilation runs without problems. So for me the problems is solved, but maybe the make process of the kernel should somehow sanitize the environment, not to get confused by something the user defines.