Gentoo Archives: gentoo-user

From: Raffaele Belardi <raffaele.belardi@××.com>
To: Gentoo <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Make failed to compile: symbol __alloca not found...
Date: Mon, 11 Dec 2017 09:09:14
In Reply to: [gentoo-user] Make failed to compile: symbol __alloca not found... by
1 tuxic@××××××.de wrote:
2 > Hi,
3 >
4 > sys-devel/make-4.2.1-r1 failed to compile with this:
5 >
7 > Online I found articles which explain, why it is not recommended to
8 > use alloca() at all:
9 > 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.
10 > (
11 >
12 > How can I recompile make -- it is still non-PIE and one of those
13 > application which I cant convince to be friendly to gcc :)
14 >
15 > How serious is this alloca-thingy at all?
16 >
18 Not being able to build sys-devel/make is a really serious thing but rather than trying to
19 debug the sources I'd try to understand why it does not build for you while it does for
20 most of the gentoo users (otherwise bugzilla and this list would be overwhelmed with panic
21 messages!).
23 Is there anything special about your environment? For example, I notice '--as-needed' in
24 your linker flags: that affects how the linker works which in turn may cause your problem,
25 was it your choice or a default option?
27 Once your build issue is solved you could investigate on the 'make' online resources why
28 they chose to use alloca function (BTW, this may give you a hint: "This temporary space is
29 automatically freed when the function that called alloca() returns to its caller." I
30 wouldn't use it but it may make some coding easier)
32 raffaele