Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make fails to build with make-4.2/glob/glob.c:1367: undefined reference to __alloca'` #352

Open
paulmenzel opened this issue Mar 10, 2018 · 4 comments

Comments

@paulmenzel
Copy link
Contributor

Make 4.2 fails to build with a libc 2.27, shipped now in Debian Sid/unstable.

$ make
make  all-recursive
make[1]: Entering directory '/home/joey/src/heads/build/make-4.2'
Making all in glob
make[2]: Entering directory '/home/joey/src/heads/build/make-4.2/glob'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/joey/src/heads/build/make-4.2/glob'
Making all in config
make[2]: Entering directory '/home/joey/src/heads/build/make-4.2/config'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/joey/src/heads/build/make-4.2/config'
Making all in po
make[2]: Entering directory '/home/joey/src/heads/build/make-4.2/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/joey/src/heads/build/make-4.2/po'
Making all in doc
make[2]: Entering directory '/home/joey/src/heads/build/make-4.2/doc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/joey/src/heads/build/make-4.2/doc'
make[2]: Entering directory '/home/joey/src/heads/build/make-4.2'
gcc  -g -O2 -Wl,--export-dynamic  -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':
/home/joey/src/heads/build/make-4.2/glob/glob.c:1367: undefined reference to `__alloca'
/home/joey/src/heads/build/make-4.2/glob/glob.c:1342: undefined reference to `__alloca'
/home/joey/src/heads/build/make-4.2/glob/glob.c:1283: undefined reference to `__alloca'
/home/joey/src/heads/build/make-4.2/glob/glob.c:1256: undefined reference to `__alloca'
glob/libglob.a(glob.o): In function `glob':
/home/joey/src/heads/build/make-4.2/glob/glob.c:581: undefined reference to `__alloca'
glob/libglob.a(glob.o):/home/joey/src/heads/build/make-4.2/glob/glob.c:732: more undefined references to `__alloca' follow
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:656: make] Error 1
make[2]: Leaving directory '/home/joey/src/heads/build/make-4.2'
make[1]: *** [Makefile:798: all-recursive] Error 1
make[1]: Leaving directory '/home/joey/src/heads/build/make-4.2'
make: *** [Makefile:534: all] Error 2
@meskio
Copy link

meskio commented Mar 15, 2018

I'm seeing the same problem in debian sid. Using debian stretch works fine.

@osresearch
Copy link
Collaborator

This should be fixed by the parallel build fix (in that we use the system make if the make is new enough)

@osresearch
Copy link
Collaborator

I'm re-opening this since it seems to still be a problem on ubuntu 18.04

@osresearch
Copy link
Collaborator

This defines __alloca so that it works on ubuntu 18.04: https://github.com/osresearch/heads/blob/make-4.2.1/patches/make-4.2.1.patch

Lloir pushed a commit to Lloir/heads that referenced this issue Oct 4, 2018
otyshchenko1 pushed a commit to otyshchenko1/meta-xt-prod-devel that referenced this issue Dec 11, 2019
…'" ...

   ... when building on Ubuntu 18.04

According to:
linuxboot/heads#352

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
iusyk pushed a commit to xen-troops/meta-xt-prod-devel that referenced this issue Dec 16, 2019
…'" ...

   ... when building on Ubuntu 18.04

According to:
linuxboot/heads#352

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants