public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] Make failed to compile: symbol __alloca not found...
  @ 2017-12-11 16:13 99% ` David Haller
  0 siblings, 0 replies; 1+ results
From: David Haller @ 2017-12-11 16:13 UTC (permalink / raw
  To: gentoo-user

Hello,

On Sun, 10 Dec 2017, tuxic@posteo.de wrote:
>x86_64-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib64\" -DINCLUDEDIR=\"/usr/include\" -DHAVE_CONFIG_H -I.  -I./glob    -march=native -O2 -pipe -c -o remote-stub.o remote-stub.c
>x86_64-pc-linux-gnu-gcc  -march=native -O2 -pipe -Wl,--export-dynamic -Wl,-O1 -Wl,--as-needed -o make ar.o arscan.o commands.o default.o dir.o expand.o file.o function.o getopt.o getopt1.o guile.o implicit.o job.o load.o loadapi.o main.o misc.o posixos.o output.o read.o remake.o rule.o signame.o strcache.o variable.o version.o vpath.o hash.o remote-stub.o glob/libglob.a   -ldl 
>glob/libglob.a(glob.o): In function `glob_in_dir':
>glob.c:(.text+0x2ed): undefined reference to `__alloca'

IIRC, that's a missing #define somewhere. Or a #define where it
shouldn't. But the thing is: on my system, make doesn't build libglob
at all because it finds the globbing stuff in glibc. And make has its
own alloca.c.

So, please show the output of the configure-part of the ebuild and
what's the output of:

$ grep _GNU_GLOB_INTERFACE_VERSION /usr/include/gnu-versions.h

Ah, yess:

==== make-4.2.1/glob/glob.c:211 ff. ====
#if !defined __alloca && !defined __GNU_LIBRARY__
[..]
#  define alloca(n)     __builtin_alloca (n)
[..]
# define __alloca       alloca
[.. down to line 1217 ..]
static int
glob_in_dir( ..
[..]
char *fullname = (char *) __alloca(...             /* line 1256 */
====

Somewhere between that and line 1256 of glob.c, where __alloca is
first used in that function you managed to undef __alloca...

You must have done something weird ...

-dnh

-- 
prom_printf("No VAC. Get some bucks and buy a real computer.");
	linux-2.6.19/arch/sparc/mm/sun4c.c


^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2017-12-10  6:28     [gentoo-user] Make failed to compile: symbol __alloca not found tuxic
2017-12-11 16:13 99% ` David Haller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox