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 F09AE139083 for ; Mon, 11 Dec 2017 09:09:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C8A7BE0FE1; Mon, 11 Dec 2017 09:09:08 +0000 (UTC) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [62.209.51.94]) (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 4B59BE0E43 for ; Mon, 11 Dec 2017 09:09:07 +0000 (UTC) Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vBB94Wtv001013 for ; Mon, 11 Dec 2017 10:09:02 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2er660rq2k-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 11 Dec 2017 10:09:02 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 38EE73D for ; Mon, 11 Dec 2017 09:09:01 +0000 (GMT) Received: from Webmail-eu.st.com (gpxdag7node5.st.com [10.75.127.84]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D2D552552 for ; Mon, 11 Dec 2017 09:09:01 +0000 (GMT) Received: from [10.50.186.1] (10.75.127.49) by GPXDAG7NODE5.st.com (10.75.127.84) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 11 Dec 2017 10:09:01 +0100 Subject: Re: [gentoo-user] Make failed to compile: symbol __alloca not found... To: Gentoo References: <20171210062834.tyba6c4iakos2wm7@solfire> From: Raffaele Belardi Message-ID: <35b48599-10f5-0ff8-2742-d41cbbe90d9a@st.com> Date: Mon, 11 Dec 2017 10:12:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.5.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 In-Reply-To: <20171210062834.tyba6c4iakos2wm7@solfire> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG6NODE3.st.com (10.75.127.18) To GPXDAG7NODE5.st.com (10.75.127.84) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-12-11_03:,, signatures=0 X-Archives-Salt: 4c1d3db2-86a2-411c-8fa8-ac28792a877a X-Archives-Hash: 16d45a631a88fabd19531241ffd623c2 tuxic@posteo.de wrote: > Hi, > > sys-devel/make-4.2.1-r1 failed to compile with this: > > Online I found articles which explain, why it is not recommended to > use alloca() at all: > RETURN VALUE The alloca() function returns a pointer to the beginning of the allocated space. If the allocation causes stack overflow, program behaviour is undefined. > (https://stackoverflow.com/questions/1018853/why-is-the-use-of-alloca-not-considered-good-practice) > > How can I recompile make -- it is still non-PIE and one of those > application which I cant convince to be friendly to gcc :) > > How serious is this alloca-thingy at all? > Not being able to build sys-devel/make is a really serious thing but rather than trying to debug the sources I'd try to understand why it does not build for you while it does for most of the gentoo users (otherwise bugzilla and this list would be overwhelmed with panic messages!). Is there anything special about your environment? For example, I notice '--as-needed' in your linker flags: that affects how the linker works which in turn may cause your problem, was it your choice or a default option? Once your build issue is solved you could investigate on the 'make' online resources why they chose to use alloca function (BTW, this may give you a hint: "This temporary space is automatically freed when the function that called alloca() returns to its caller." I wouldn't use it but it may make some coding easier) raffaele