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 394CE139083 for ; Mon, 11 Dec 2017 16:36:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4DB9DE0FE7; Mon, 11 Dec 2017 16:36:47 +0000 (UTC) Received: from km35626.keymachine.de (km35626.keymachine.de [87.118.86.27]) (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 DB661E0E40 for ; Mon, 11 Dec 2017 16:36:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by km35626.keymachine.de (Postfix) with ESMTP id 00D6A1125B1E for ; Mon, 11 Dec 2017 17:36:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at km35626.keymachine.de. Received: from km35626.keymachine.de ([127.0.0.1]) by localhost (km35626.keymachine.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NUi30zamvzUV for ; Mon, 11 Dec 2017 17:36:43 +0100 (CET) Received: from grusum.endjinn.de (p2E5B5109.dip0.t-ipconnect.de [46.91.81.9]) by km35626.keymachine.de (Postfix) with ESMTPSA id 06EFC1125B1C for ; Mon, 11 Dec 2017 17:36:43 +0100 (CET) Received: by grusum.endjinn.de (Postfix, from userid 500) id 5203A1702EA; Mon, 11 Dec 2017 17:13:33 +0100 (CET) Date: Mon, 11 Dec 2017 17:13:59 +0100 From: David Haller To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Make failed to compile: symbol __alloca not found... Message-ID: <20171211161359.2olyqodfqej5kxmi@grusum.endjinn.de> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <20171210062834.tyba6c4iakos2wm7@solfire> 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 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20171210062834.tyba6c4iakos2wm7@solfire> Organization: What? X-Clacks-Overhead: GNU Terry Pratchett User-Agent: NeoMutt/20170609 (1.8.3) X-Archives-Salt: b5cbdf59-e11f-450b-a145-548a4a10671f X-Archives-Hash: 19b5542be3cd3557425f0afaf360ed14 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