Gentoo Archives: gentoo-user

From: tuxic@××××××.de
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Make failed to compile: symbol __alloca not found...
Date: Mon, 11 Dec 2017 17:27:36
Message-Id: 20171211172717.zyqsjac2tdfdz3gz@solfire
In Reply to: Re: [gentoo-user] Make failed to compile: symbol __alloca not found... by Raffaele Belardi
1 On 12/11 10:12, Raffaele Belardi wrote:
2 > tuxic@××××××.de wrote:
3 > > Hi,
4 > >
5 > > sys-devel/make-4.2.1-r1 failed to compile with this:
6 > >
7 >
8 > > Online I found articles which explain, why it is not recommended to
9 > > use alloca() at all:
10 > > 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.
11 > > (https://stackoverflow.com/questions/1018853/why-is-the-use-of-alloca-not-considered-good-practice)
12 > >
13 > > How can I recompile make -- it is still non-PIE and one of those
14 > > application which I cant convince to be friendly to gcc :)
15 > >
16 > > How serious is this alloca-thingy at all?
17 > >
18 >
19 > Not being able to build sys-devel/make is a really serious thing but rather than trying to
20 > debug the sources I'd try to understand why it does not build for you while it does for
21 > most of the gentoo users (otherwise bugzilla and this list would be overwhelmed with panic
22 > messages!).
23 >
24 > Is there anything special about your environment? For example, I notice '--as-needed' in
25 > your linker flags: that affects how the linker works which in turn may cause your problem,
26 > was it your choice or a default option?
27 >
28 > Once your build issue is solved you could investigate on the 'make' online resources why
29 > they chose to use alloca function (BTW, this may give you a hint: "This temporary space is
30 > automatically freed when the function that called alloca() returns to its caller." I
31 > wouldn't use it but it may make some coding easier)
32 >
33 > raffaele
34 >
35 >
36
37
38 My root-environment look like this:
39
40
41 LS_COLORS=no=00:fi=00:di=00;32:ln=00;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;31:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=00;31:*.tgz=00;31:*.bz2=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.ZIP=00;31:*.z=00;31:*.7z=00;31:*.Z=00;31:*.gz=00;31:*.rpm=00;31:*.maff=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.png=00;35:*.pgm=00;35:*.ppm=00;35:*.pnm=00;35:*.pcx=00;35:*.xbm=00;35:*.xpm=00;35:*.xcf=00;35:*.tif=00;35:*.GIF=00;35:*.BMP=00;35:*.PNG=00;35:*.PGM=00;35:*.PPM=00;35:*.PNM=00;35:*.PCX=00;35:*.XBM=00;35:*.XPM=00;35:*.XCF=00;35:*.TIF=00;35:
42 LANG=en_US.UTF-8
43 DISPLAY=:0.0
44 COLORTERM=rxvt
45 SHELL=/bin/zsh
46 TERM=xterm-256color
47 XAUTHORITY=/home/mccramer/.Xauthority
48 PATH=/usr/local/cuda/open64/bin:/bin/:/sbin:/usr/sbin:/usr/teTeX/bin/i686-pc-linux-gnu:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/lib/llvm/5/bin:/opt/nvidia-cg-toolkit/bin:/opt/cuda/bin:/usr/games/bin:/root/bin:/opt/bin:/opt/maintech/gcc-3.4.5-glibc-2.3.6/arm-920t-linux-gnu/bin:/usr/avr/bin
49 MAIL=/var/spool/mail/root
50 LOGNAME=root
51 USER=root
52 USERNAME=root
53 HOME=/root
54 SUDO_COMMAND=/bin/zsh
55 SUDO_USER=mccramer
56 SUDO_UID=1001
57 SUDO_GID=100
58 SHLVL=1
59 PWD=/root
60 OLDPWD=/home/mccramer
61 zshloader=:/root/.zshenv:/root/.zshrc
62 HELPDIR=/usr/local/lib/zsh/help
63 PKG_CONFIG_PATH=/usr/lib/pkgconfig
64 AXIOM=/usr/axiom/mnt/linux
65 GNOME_LIBCONFIG_PATH=/usr/lib
66 XDG_DATA_DIRS=/root/.local/share:/usr/local/share/:/usr/share/
67 KFORTH_DIR=/usr/share/kForth
68 TEXDOCVIEW_dvi=kgh %s
69 TEXDOCVIEW_pdf=kgh %s
70 TEXDOCVIEW_ps=kghostview %s
71 TEXDOCVIEW_html=dillo %s
72 PS1=%M:%2d>
73 LESSOPEN=|/usr/bin/lesspipe.sh %s
74 PERLIO=stdio
75 PILOTPORT=/dev/tts/0
76 MC_COLOR_TABLE=base_color=normal=green,black:normal=green,black:menuhot=red,cyan:menuhotsel=red,cyan:directory=cyan,black:executable=green,black:link=red,black:device=green,black:special=green,black:core=green,black:hidden=green,black:temp=green,black:doc=green,black:archive=green,black:source=green,black:media=green,black:graph=green,black:database=green,black:marked=black,yellow:stalelink=black,red:editnormal=green,black
77 EDITOR=/usr/local/bin/vim
78 G_BROKEN_FILENAMES=
79 HISTSIZE=30000
80 EIX_LIMIT=0
81 PKGHOME=/root/NetModule/nmpackages
82 DIFMT=SvFUaPTM
83 CUDA_VISIBLE_DEVICES=0
84 RANGER_LOAD_DEFAULT_RC=FALSE
85 _=/bin//env
86
87 Cheers
88 Meino

Replies

Subject Author
Re: [gentoo-user] Make failed to compile: symbol __alloca not found... Raffaele Belardi <raffaele.belardi@××.com>