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 33894139083 for ; Mon, 11 Dec 2017 17:23:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B2AD3E1037; Mon, 11 Dec 2017 17:23:44 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (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 0E778E1000 for ; Mon, 11 Dec 2017 17:23:43 +0000 (UTC) Received: from localhost ([79.223.102.37]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Le64S-1epkD90oay-00ptcT for ; Mon, 11 Dec 2017 18:23:32 +0100 Date: Mon, 11 Dec 2017 18:23:30 +0100 From: tuxic@posteo.de To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Make failed to compile: symbol __alloca not found... Message-ID: <20171211172330.nqmaeruz66fuhdqm@solfire> Mail-Followup-To: gentoo-user@lists.gentoo.org References:<20171210062834.tyba6c4iakos2wm7@solfire> <20171211161359.2olyqodfqej5kxmi@grusum.endjinn.de> 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=us-ascii Content-Disposition: inline In-Reply-To:<20171211161359.2olyqodfqej5kxmi@grusum.endjinn.de> User-Agent: NeoMutt/20171208 Sender: X-Provags-ID: V03:K0:E5dhObI2NkFjBRiXwisXjeiftaudFcGCLOKseUUBhlgXds9Wsom 9B22gl7JjpZbCV0YEJAyIMX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3 X-Archives-Hash: 0f428afcd6816acce4e73ef94908f447 On 12/11 05:13, David Haller wrote: > 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 > Here it comes: * Package: sys-devel/make-4.2.1-r1 * Repository: gentoo * Maintainer: base-system@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux nls userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking make-4.2.1.tar.bz2 to /var/tmp/portage/sys-devel/make-4.2.1-r1/work >>> Source unpacked in /var/tmp/portage/sys-devel/make-4.2.1-r1/work >>> Preparing source in /var/tmp/portage/sys-devel/make-4.2.1-r1/work/make-4.2.1 ... * Applying make-3.82-darwin-library_search-dylib.patch ... [ ok ] * Applying make-4.2-default-cxx.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-devel/make-4.2.1-r1/work/make-4.2.1 ... * econf: updating make-4.2.1/config/config.sub with /usr/share/gnuconfig/config.sub * econf: updating make-4.2.1/config/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --libdir=/usr/lib64 --program-prefix=g --without-guile --enable-nls configure: loading site script /usr/share/config.site checking for a BSD-compatible install... /usr/lib/portage/python3.5/ebuild-helpers/xattr/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking whether x86_64-pc-linux-gnu-gcc understands -c and -o together... yes checking dependency style of x86_64-pc-linux-gnu-gcc... none checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed checking whether x86_64-pc-linux-gnu-gcc understands -c and -o together... (cached) yes checking dependency style of x86_64-pc-linux-gnu-gcc... (cached) none checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for ar... ar checking for perl... perl checking for x86_64-pc-linux-gnu-ar... (cached) ar checking the archiver (ar) interface... ar checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for library containing strerror... none required checking for a sed that does not truncate output... /bin/sed checking whether NLS is requested... yes checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/gmsgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for library containing getpwnam... none required checking for ANSI C header files... (cached) yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking whether stat file-mode macros are broken... no checking whether time.h and sys/time.h may both be included... yes checking for stdlib.h... (cached) yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking for unistd.h... (cached) yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for an ANSI C-conforming const... yes checking return type of signal handlers... void checking for uid_t in sys/types.h... yes checking for pid_t... yes checking for off_t... yes checking for size_t... yes checking for ssize_t... yes checking for unsigned long long int... yes checking for uintmax_t... yes checking for nanoseconds field of struct stat... st_mtim.tv_nsec checking whether to use high resolution file timestamps... yes checking for library containing clock_gettime... none required checking whether system uses MSDOS-style paths... no checking for standard gettimeofday... yes checking for strdup... yes checking for strndup... yes checking for mkstemp... yes checking for mktemp... yes checking for fdopen... yes checking for fileno... yes checking for dup... yes checking for dup2... yes checking for getcwd... yes checking for realpath... yes checking for sigsetmask... yes checking for sigaction... yes checking for getgroups... yes checking for seteuid... yes checking for setegid... yes checking for setlinebuf... yes checking for setreuid... yes checking for setregid... yes checking for getrlimit... yes checking for setrlimit... yes checking for setvbuf... yes checking for pipe... yes checking for strerror... yes checking for strsignal... yes checking for lstat... yes checking for readlink... yes checking for atexit... yes checking for isatty... yes checking for ttyname... yes checking for pselect... yes checking whether bsd_signal is declared... no checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strcmpi... no checking for strncmpi... no checking for stricmp... no checking for strnicmp... no checking for working strcoll... yes checking for working alloca.h... yes checking for alloca... yes checking whether closedir returns void... no checking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for getloadavg... yes checking for pstat_getdynamic... no checking for kstat_open in -lkstat... no checking for getloadavg... yes checking whether getloadavg requires setgid... no checking whether sys_siglist is declared... yes checking whether _sys_siglist is declared... yes checking whether __sys_siglist is declared... no checking for sys/wait.h... yes checking for waitpid... yes checking for wait3... yes checking for union wait... no checking for SA_RESTART... yes checking whether dlopen is declared... yes checking whether dlsym is declared... yes checking whether dlerror is declared... yes checking for library containing dlopen... -ldl checking If the linker accepts -Wl,--export-dynamic... yes checking for location of SCCS get command... get checking if system libc has GNU glob... no checking if malloc debugging is wanted... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating glob/Makefile config.status: creating po/Makefile.in config.status: creating config/Makefile config.status: creating doc/Makefile config.status: creating w32/Makefile config.status: creating tests/config-flags.pm config.status: creating config.h config.status: executing depfiles commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile config.status: creating build.sh >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-devel/make-4.2.1-r1/work/make-4.2.1 ... make -j6 make all-recursive make[1]: Entering directory '/var/tmp/portage/sys-devel/make-4.2.1-r1/work/make-4.2.1' Making all in glob make[2]: Entering directory '/var/tmp/portage/sys-devel/make-4.2.1-r1/work/make-4.2.1/glob' /root>grep _GNU_GLOB_INTERFACE_VERSION /usr/include/gnu-versions.h #define _GNU_GLOB_INTERFACE_VERSION 2 /* vs posix/glob.c */ Any ideas? Cheers Meino