Trouble Compiling on Linux

All development related issues welcome

Moderator: Moderator Team

Post Reply
Posts: 1
Joined: Thu Aug 02, 2018 12:26 am

Trouble Compiling on Linux

Post by mforan »

So I decided to try building from source for the first time on linux (Kubuntu 18.04). I followed the instructions for compiling the build environment, but part way through I get this:

Code: Select all

dir.o expand.o file.o function.o getopt.o getopt1.o implicit.o job.o main.o misc.o read.o remake.o remote-stub.o rule.o signame.o strcache.o variable.o version.o vpath.o hash.o glob/libglob.a  
glob/libglob.a(glob.o): In function `glob_in_dir':
glob.c:(.text+0x2c1): undefined reference to `__alloca'
glob.c:(.text+0x43e): undefined reference to `__alloca'
glob.c:(.text+0x5f8): undefined reference to `__alloca'
glob.c:(.text+0x658): undefined reference to `__alloca'
glob/libglob.a(glob.o): In function `glob':
glob.c:(.text+0x943): undefined reference to `__alloca'
glob/libglob.a(glob.o):glob.c:(.text+0xfda): more undefined references to `__alloca' follow
collect2: error: ld returned 1 exit status
Makefile:481: recipe for target 'make' failed
make[2]: *** [make] Error 1
make[2]: Leaving directory '/home/michael/RosBE-Unix-2.1.2/sources/make-build'
Makefile:593: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/michael/RosBE-Unix-2.1.2/sources/make-build'
Makefile:382: recipe for target 'all' failed
make: *** [all] Error 2
Any ideas?

Posts: 1173
Joined: Sat Dec 26, 2009 10:36 pm
Location: Zagreb, Croatia

Re: Trouble Compiling on Linux

Post by hbelusca »

Please read the information in and in the related report linked inside.

Posts: 1
Joined: Thu Aug 29, 2019 3:38 pm

Re: Trouble Compiling on Linux

Post by mcarpenter »

Still seeing this in V-2.1.2 (Linux), Fix stated in the final comment on the bug report above, change `__alloca` to `_alloca` in `sources/make/glob/glob.c` Looks to have fixed the issue. Except I'm not sure how future proof that is.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest