Trying to build hardened-sources-4.4.4 (at least all 4.4* fail, probably 4.3* and older too) on my Odroid U3 fails. gentoo-sources-4.4.4 builds fine with same config. I used GCC in hardened and vanilla mode. -------------------- The error: CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h make[1]: 'include/generated/mach-types.h' is up to date. CHK include/generated/bounds.h CHK include/generated/timeconst.h CC arch/arm/kernel/asm-offsets.s In file included from include/linux/atomic.h:562:0, from include/linux/spinlock.h:417, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/uapi/linux/timex.h:56, from include/linux/timex.h:56, from include/linux/sched.h:19, from arch/arm/kernel/asm-offsets.c:14: include/asm-generic/atomic-long.h: In function 'atomic_long_inc_return_unchecked': include/asm-generic/atomic-long.h:45:28: error: implicit declaration of function 'atomic_inc_return_unchecked' [-Werror=implicit-function-declaration] #define ATOMIC_LONG_PFX(x) atomic ## x ^ include/asm-generic/atomic-long.h:203:15: note: in expansion of macro 'ATOMIC_LONG_PFX' return (long)ATOMIC_LONG_PFX(_##op##_return##mo##suffix)(v); \ ^ include/asm-generic/atomic-long.h:206:1: note: in expansion of macro 'ATOMIC_LONG_INC_DEC_OP' ATOMIC_LONG_INC_DEC_OP(inc,,_unchecked) ^ include/asm-generic/atomic-long.h: At top level: include/asm-generic/atomic-long.h:259:0: warning: "atomic_add_return_unchecked" redefined #define atomic_add_return_unchecked(i, v) atomic_add_return((i), (v)) ^ In file included from include/linux/atomic.h:4:0, from include/linux/spinlock.h:417, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/uapi/linux/timex.h:56, from include/linux/timex.h:56, from include/linux/sched.h:19, from arch/arm/kernel/asm-offsets.c:14: ./arch/arm/include/asm/atomic.h:131:0: note: this is the location of the previous definition #define atomic_add_return_unchecked atomic_add_return_unchecked_relaxed ^ cc1: some warnings being treated as errors Kbuild:80: recipe for target 'arch/arm/kernel/asm-offsets.s' failed make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1 Makefile:994: recipe for target 'prepare0' failed make: *** [prepare0] Error 2 -------------------- # emerge --info Portage 2.2.27 (python 3.4.3-final-0, hardened/linux/arm/armv7a, gcc-5.3.0, glibc-2.22-r2, 4.4.0-gentoo armv7l) ================================================================= System uname: Linux-4.4.0-gentoo-armv7l-ARMv7_Processor_rev_0_-v7l-with-gentoo-2.2 KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Thu, 10 Mar 2016 06:30:02 +0000 sh bash 4.3_p42-r2 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42-r2::gentoo dev-lang/perl: 5.22.1::gentoo dev-lang/python: 2.7.11-r2::gentoo, 3.4.3-r7::gentoo dev-util/cmake: 3.5.0::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.20.5::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.69-r2::gentoo sys-devel/automake: 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 5.3.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://b-root-force.de/gentoo-portage/ priority: -1000 ACCEPT_KEYWORDS="arm ~arm" ACCEPT_LICENSE="* -@EULA" CBUILD="armv7a-hardfloat-linux-gnueabi" CFLAGS="-O2 -pipe -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard -fomit-frame-pointer" CHOST="armv7a-hardfloat-linux-gnueabi" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe -march=armv7-a" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=armv7-a" GENTOO_MIRRORS="http://gentoo.b-root-force.de" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" 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="/var/tmp" USE="acl apache2 arm armv5te armv6 armv6t2 berkdb branding bzip2 cli cpumining cracklib crypt cryptsetup curl cxx dri encode gdbm gif hardened hdb-ldap highlight iconv ipv6 jpeg kerberos ldap lzma modules mysql ncurses neon nls nptl odbc openldap openmp pam pcre php pic pie png postproc readline samba scrypt seccomp session sqlite ssl ssp systemd tcpd threads truetype unicode urandom vim-syntax xattr xtpax zip zlib" 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" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap omapfb dummy v4l" 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" USE_PYTHON="2.7 3.4" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always
Created attachment 427894 [details] kernel config
LD Documentation/video4linux/built-in.o HOSTCC Documentation/watchdog/src/watchdog-simple HOSTLD Documentation/vDSO/vdso_standalone_test_x86 collect2: error: ld returned 1 exit status scripts/Makefile.host:134: recipe for target 'Documentation/vDSO/vdso_standalone_test_x86' failed make[2]: *** [Documentation/vDSO/vdso_standalone_test_x86] Error 1 scripts/Makefile.build:403: recipe for target 'Documentation/vDSO' failed make[1]: *** [Documentation/vDSO] Error 2 make[1]: *** Waiting for unfinished jobs.... HOSTCC Documentation/watchdog/src/watchdog-test Makefile:922: recipe for target 'vmlinux' failed make: *** [vmlinux] Error 2 INSTALL Documentation/connector/cn_test.ko INSTALL drivers/acpi/button.ko INSTALL drivers/block/sx8.ko cp: cannot stat ‘Documentation/connector/cn_test.ko’: No such file or directory cp: cannot stat ‘drivers/acpi/button.ko’: No such file or directory At main.c:255: - SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 sign-file: cp: cannot stat ‘drivers/block/sx8.ko’: No such file or directory /lib/modules/4.4.8-hardened-r1/kernel/Documentation/connector/cn_test.ko: No such file or directory At main.c:255: - SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 sign-file: /lib/modules/4.4.8-hardened-r1/kernel/drivers/acpi/button.ko: No such file or directory scripts/Makefile.modinst:35: recipe for target 'Documentation/connector/cn_test.ko' failed make[1]: *** [Documentation/connector/cn_test.ko] Error 1 make[1]: *** Waiting for unfinished jobs.... scripts/Makefile.modinst:35: recipe for target 'drivers/acpi/button.ko' failed make[1]: *** [drivers/acpi/button.ko] Error 1 At main.c:255: - SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175 - SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178 sign-file: /lib/modules/4.4.8-hardened-r1/kernel/drivers/block/sx8.ko: No such file or directory scripts/Makefile.modinst:35: recipe for target 'drivers/block/sx8.ko' failed make[1]: *** [drivers/block/sx8.ko] Error 1
hardened-sources is deprecated.