public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Raffaele Belardi <raffaele.belardi@st.com>
To: Gentoo <gentoo-user@lists.gentoo.org>
Subject: Re: [gentoo-user] Make failed to compile: symbol __alloca not found...
Date: Mon, 11 Dec 2017 10:12:23 +0100	[thread overview]
Message-ID: <35b48599-10f5-0ff8-2742-d41cbbe90d9a@st.com> (raw)
In-Reply-To: <20171210062834.tyba6c4iakos2wm7@solfire>

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



  reply	other threads:[~2017-12-11  9:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-10  6:28 [gentoo-user] Make failed to compile: symbol __alloca not found tuxic
2017-12-11  9:12 ` Raffaele Belardi [this message]
2017-12-11 17:27   ` tuxic
2017-12-11 17:38     ` Raffaele Belardi
2017-12-11 17:55       ` tuxic
2017-12-11 16:13 ` David Haller
2017-12-11 17:23   ` tuxic
2017-12-11 20:07     ` David Haller
2017-12-12  2:07       ` tuxic
2017-12-12  6:26       ` Raffaele Belardi
2017-12-12 11:09         ` Joerg Schilling

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=35b48599-10f5-0ff8-2742-d41cbbe90d9a@st.com \
    --to=raffaele.belardi@st.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox