On 12/11 05:13, David Haller wrote: > Hello, > > On Sun, 10 Dec 2017, tu...@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-sys...@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