From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2422A1381F1 for ; Fri, 9 Feb 2018 07:02:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B316E0BAB; Fri, 9 Feb 2018 07:01:58 +0000 (UTC) Received: from umail2.aei.mpg.de (umail2.aei.mpg.de [194.94.224.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CE5FBE0B64 for ; Fri, 9 Feb 2018 07:01:57 +0000 (UTC) Received: from mailgate.aei.mpg.de (mailgate.aei.mpg.de [194.94.224.5]) by umail2.aei.mpg.de (Postfix) with ESMTP id 33AAC1BA6FBC for ; Fri, 9 Feb 2018 08:01:54 +0100 (CET) Received: from mailgate.aei.mpg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 2690F406ADE for ; Fri, 9 Feb 2018 08:01:54 +0100 (CET) Received: from intranet.aei.uni-hannover.de (ahin1.aei.uni-hannover.de [130.75.117.40]) by mailgate.aei.mpg.de (Postfix) with ESMTP id 03038406ADB for ; Fri, 9 Feb 2018 08:01:54 +0100 (CET) Received: from arc.aei.uni-hannover.de ([130.75.117.1]) by intranet.aei.uni-hannover.de (IBM Domino Release 9.0.1FP8) with ESMTP id 2018020908015331-174308 ; Fri, 9 Feb 2018 08:01:53 +0100 Date: Fri, 9 Feb 2018 08:01:53 +0100 From: Gerrit =?ISO-8859-1?Q?K=FChn?= To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] kernel 3.2 conflicts with gcc-6.4 Message-Id: <20180209080153.b1bde412b81290c9dc9e6bad@aei.mpg.de> Organization: Max Planck Gesellschaft X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; amd64-portbld-freebsd11.0) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on intranet/aei-hannover(Release 9.0.1FP8|February 23, 2017) at 09/02/2018 08:01:53, Serialize by Router on intranet/aei-hannover(Release 9.0.1FP8|February 23, 2017) at 09/02/2018 08:01:53, Serialize complete at 09/02/2018 08:01:53 X-TNEFEvaluated: 1 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-PMX-Version: 6.0.2.2308539, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2018.2.9.65416 X-PerlMx-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, MIME_LOWER_CASE 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_1099 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, SINGLE_URI_IN_BODY 0, URI_WITH_PATH_ONLY 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HTTPS_URI 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __NO_HTML_TAG_RAW 0, __SANE_MSGID 0, __SINGLE_URI_TEXT 0, __SUBJ_ALPHA_START 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_MAILTO 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0' X-Archives-Salt: 17ebc4dc-75e6-47c9-9c22-3b10401de154 X-Archives-Hash: 527d4667cdb21ef1b95c14100ff83c3c Hello, I still have some systems around that need to run a vanilla kernel 3.2. This works without any issues as long as I am using gcc-4.9.4 or gcc-5.4 to compile the kernel. Using gcc-6.4 for compilation was not possible out-of-the-box as it is defaulting to --enable-default-pie. After reading https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=841420 I was able to get around this by adding -fno-pie to the build. However, when trying to run this kernel, it does not output anything and just reboots my system. Compiling the same source and setup (even including my additional -fno-pie settings) with gcc-5.4 or gcc-4.9.4 results in a kernel that is running fine, just with gcc-6.4 it appears to be broken. Is there anyone around who successfully managed to get this to work (or who has any other hints how to fix this)? Now that Gentoo has deprecated 2013's profile, using gcc4 or gcc5 is not really supported for anything, and I'd like to avoid having to compile different parts of the system with different compilers. cu Gerrit