<stdin>:1519:2: warning: #warning syscall perf_event_open not implemented Reproducible: Always Portage 2.2_rc59 (hardened/linux/ia64/10.0/server, gcc-4.3.4, glibc-2.9_p20081201-r5, 2.6.31-hardened-r6 ia64) ================================================================= System uname: Linux-2.6.31-hardened-r6-ia64-31-with-gentoo-2.0.1 Timestamp of tree: Mon, 14 Dec 2009 08:45:02 +0000 app-shells/bash: 4.0_p28 dev-lang/python: 2.6.4, 3.1.1-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.3 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.20 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="ia64" ACCEPT_LICENSE="* -@EULA" CBUILD="ia64-unknown-linux-gnu" CFLAGS="-pipe -mtune=mckinley -O2 -ftree-vectorize" CHOST="ia64-unknown-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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 /etc/udev/rules.d" CXXFLAGS="-pipe -mtune=mckinley -O2 -ftree-vectorize" DISTDIR="/var/cache/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" FEATURES="assume-digests distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/var/cache/portage/packages" PORTAGE_COMPRESS="xz" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS=" --include='/sci-libs/' --include='/sci-libs/gsl/' --exclude='/sci-libs/*/' --include='/x11-libs/' --include='/x11-libs/qt*/' --include='/x11-libs/cairo/' --include='/x11-libs/pango/' --include='/x11-libs/pixman/' --exclude='/x11-libs/*/' --include='/x11-misc/' --include='/x11-misc/util-macros/' --exclude='/x11-misc/*/' --exclude='/games*/' --exclude='/gnome*/' --exclude='/gnustep*/' --exclude='/gpe*/' --exclude='/kde*/' --exclude='/lxde*/' --exclude='/rox*/' --exclude='/sci*/' --exclude='/x11*/' --exclude='/xfce*/'" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/cache/portage/gentoo" PORTDIR_OVERLAY="/var/cache/portage/layman/hardened-development /var/cache/portage/local" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" [...] Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS_FLAGS
A similar issue is also present in 2.6.31-r8: <stdin>:1519:2: warning: #warning syscall perf_counter_open not implemented
is that still present in 2.6.32-r3?
Compiling sys-kernel/hardened-sources-2.6.32-r3: CALL scripts/checksyscalls.sh <stdin>:1519:2: warning: #warning syscall perf_event_open not implemented
Sorry, wrong kernel version... Correct is: Compiling sys-kernel/hardened-sources-2.6.32-r6: CALL scripts/checksyscalls.sh <stdin>:1519:2: warning: #warning syscall perf_event_open not implemented
This is an IA64 bug, and I'm not sure its hardened related. Can you try with the latest hardened-sources-2.6.32-r8 and with vanilla 2.6.32.14 and let us know. I don't have access to IA64 hardware.
CALL scripts/checksyscalls.sh <stdin>:1519:2: warning: #warning syscall perf_event_open not implemented That's using hardened-sources-2.6.32-r8.
Can you compare to a vanilla kernel. I'd like to narrow it down to whether its a general kernel problem, or hardened specific.
Do you have a tip, how to import my hardened kernel config into vanilla? "cp ..." + "make oldconfig" results in "Restart config...", and I have to configure everything from scratch, which is (a) time consuming, (b) not very comparable.
Follow these steps: 1. make mrproper 2. copy in your config file to .config 3. make silentoldconfig 4. make prepare The last line of prepare runs CALL scripts/checksyscalls.sh which should trigger your bug. This will only take a minute. Unfortunately, I don't have an IA64
Step 3 also results in "Restart config...". I do not know how it figures out that the config might be from an incompatible kernel, but apparently it is very strict about that...
(In reply to comment #11) > Step 3 also results in "Restart config...". I do not know how it figures out > that the config might be from an incompatible kernel, but apparently it is very > strict about that... > I have never hit something like that, and I usually while trying out different patched kernels copy my config around and use oldconfig and have never encountered that problem. Maybe it is time for you to either post your config here (even if we do not have a IA64 machine it is good for reference or it maybe is even possible to reproduce in an emulator), or for you to try out with a clean kernel configuration.
Created attachment 234101 [details] hardened kernel config ia64
devurandom: thanks for the shell on an ia64 box. This is not a hardened issues. linux-2.6.32-gentoo-r7 exhibits the same warning, as does vanilla 2.6.32.8 (both are the same kernel patchlevel). The hardened kernel does build, but I haven't been able to test whether or not it boots. This is only a warning message about a relatively new system call used in measuring performance. I don't think its critical.
I'm closing this one since its about a feature which is not implemented and not a bug to be fixed.