Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751776AbbHLWcH (ORCPT ); Wed, 12 Aug 2015 18:32:07 -0400 Received: from mout.gmx.net ([212.227.15.15]:52675 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751663AbbHLWcG (ORCPT ); Wed, 12 Aug 2015 18:32:06 -0400 From: Jan-Simon Moeller To: David Woodhouse Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org, llvmlinux@lists.linuxfoundation.org, behanw@converseincode.com Subject: Re: [PATCH] Make alignment cflags configurable. Date: Thu, 13 Aug 2015 00:30:19 +0200 Message-ID: <3447724.z50aeuJHce@aragorn.auenland.lan> Organization: priv User-Agent: KMail/4.14.9 (Linux/3.16.7-21-desktop; KDE/4.14.9; x86_64; ; ) In-Reply-To: <1439383844.3100.81.camel@infradead.org> References: <1439382775-28009-1-git-send-email-dl9pf@gmx.de> <1439383844.3100.81.camel@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:ZYvvk1SwxSITI7S1Jzegohw2ab7CxBtiLPoWsLo6zJuUYxT5TRr VU++0VBXdMCPnTjwQeczd+84ltZ5KZiwRAw+bbqNJNq4lgJPW5yMIhx1uHiOtIfDOlHHPeX S0K9XSrXsssTbXuO1qEcTag1KkiXFEr+48019wyhddqsgKe/xv99op5JZcOVk4ZH6obiUS4 esXM6UYRUZUqSnoM/DBcQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:K/s8URq1wes=:mEUitJ/hxr3p4PXWb8jId6 1iFh3sz5aypAuf3CVYW8mieAeE3xD9eb5YqBd2lJFxaRzzPx2C1DMpAioPzOoPfqsR4nKxFA4 +EGIhr78CeiO6TnjFbEns90lptyzy3OsDA9WGoGXEltqj0nMVPB20AeKgpIUbtpXosl/E1BfY 2hWrNgJb/qajnEf7yRCxEgXuHoj4ljXqgxhOcM5JyXEI49z0OcwRAMbZRcx3irq8XJ+l4L9ve J7Ux7Rqv6z6QoKR+rVixC145jabMRA7JPO3Kh3V+nz29CJ5G5leGRfg6Atj7lPoDtif6xb+rK QohNxolmmFIcLXjIxDDzvat11oBHBXEa5IZJk6hbjBKCT5jRVqu6M/8zkw6Tano3E5w2e8uF7 M+qnejCBaykzzDsn3ehJQp1pD5GMNAjF3cgXwgw0DIwWMzJqRmaH7uGGFoqcFXdbHCD+06bfq 3DcvoMN+473gpxl98Aq7P4TH+PtqlgHCvCkJO8ZvER1KhI2a9yRHpRvGNoh2oQrXu+WZMabqm Wf5/ZW5E1iEFc8dPRzgrhrM4OIZ3FKRcRWxJLCt2DSm7dnATyoOzQhcKLFJAeiOOFFdf2BZ2G CeAFcMtRpAPqcrsi1813LlyLj7lfbN1j1j8TAmg1sSXQUdsRztXRKmLT3AeIXLisg31s5JyGX tFk3SnnbtzrYRalSqVBUXCBqozF6RtpYeU+UHEQ+rS+ZtFL3Z7bscGMBWzMsjTpMQXhttgqzt KjIO91jFn6vulOsUHyOd3I2Fl2PvSTaOgCN5og== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1704 Lines: 47 Hi all! > You could mention that this is to fix the clang build. But why is it > needed? It isn't that clang just doesn't accept the option, is it? > Otherwise we could just use $(call cc-option, -falign-jumps=1) etc. Yes it is to fix the build with clang. I tried cc-option, but it does not improve the situation (more below). This is why I chose the config option approach in the patch. > Did you get to the bottom of the clang failure here? Just turning this > off without a coherent explanation doesn't seem like the right thing to > do. I know it is not the final solution which is why I turned it into a config option. We can still debate if default should be "y" or "n". This way we all can proceed. @Ingo: would it be fine if we wrap it into a config option defaulting to "y" ? What I can say so far is that although clang warns about the unknown option and ignores it, the resulting kernel still fails to boot somewhere early in start_kernel(). I'm still investigating. My current trace ends like this: page_address_init ~ setup_arch ~ then arch/x86/kernel/setup.c:898 setup.c:898 is a printk actually ... early_idt_handler_array[i] ~> early_idt_handler_common The mail thread is here: http://lists.linuxfoundation.org/pipermail/llvmlinux/2015-August/001276.html We still build with -no-integrated-as which means we use gas. Maybe the flag is passed-on there and things get confused. Best, Jan-Simon -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/