root@ubuntu:~/Lakka-LibreELEC/build.Lakka-Switch.aarch64-2.1-devel/make-4.2.1# ./build.sh
compiling ar.c...
compiling arscan.c...
compiling commands.c...
compiling default.c...
compiling dir.c...
compiling expand.c...
compiling file.c...
compiling function.c...
compiling getopt.c...
compiling getopt1.c...
compiling guile.c...
compiling implicit.c...
compiling job.c...
compiling load.c...
compiling loadapi.c...
compiling main.c...
compiling misc.c...
compiling posixos.c...
compiling output.c...
compiling read.c...
compiling remake.c...
compiling rule.c...
compiling signame.c...
compiling strcache.c...
compiling variable.c...
compiling version.c...
compiling vpath.c...
compiling hash.c...
compiling remote-stub.c...
compiling glob/fnmatch.c...
compiling glob/glob.c...
./glob/glob.c: In function ‘glob’:
./glob/glob.c:582:23: warning: implicit declaration of function ‘__alloca’; did you mean ‘alloca’? [-Wimplicit-function-declaration]
newp = (char *) __alloca (dirlen + 1);
^~~~~~~~
alloca
./glob/glob.c:582:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
newp = (char *) __alloca (dirlen + 1);
^
./glob/glob.c:710:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
newp = (char *) __alloca (home_len + dirlen);
^
./glob/glob.c:733:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
newp = (char *) __alloca (end_name - dirname);
^
./glob/glob.c:784:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
newp = (char *) __alloca (home_len + rest_len + 1);
^
./glob/glob.c:815:11: warning: implicit declaration of function ‘__stat’; did you mean ‘__xstat’? [-Wimplicit-function-declaration]
: __stat (dirname, &st)) == 0
^~~~~~
__xstat
./glob/glob.c: In function ‘glob_in_dir’:
./glob/glob.c:1257:21: warning: cast to pointer from integer of different size -Wint-to-pointer-cast]
char *fullname = (char *) __alloca (dirlen + 1 + patlen + 1);
^
./glob/glob.c:1284:12: warning: cast to pointer from integer of different size -Wint-to-pointer-cast]
names = (struct globlink *) __alloca (sizeof (struct globlink));
^
./glob/glob.c:1342:32: warning: cast to pointer from integer of different size -Wint-to-pointer-cast]
struct globlink *new = (struct globlink *)
^
./glob/glob.c:1368:15: warning: cast to pointer from integer of different size -Wint-to-pointer-cast]
names = (struct globlink *) __alloca (sizeof (struct globlink));
^
linking make...
glob.o: In function `glob_in_dir':
/root/Lakka-LibreELEC/build.Lakka-Switch.aarch64-2.1-devel/make-4.2.1/./glob/glob.c:1368: undefined reference to `__alloca'
/root/Lakka-LibreELEC/build.Lakka-Switch.aarch64-2.1-devel/make-4.2.1/./glob/glob.c:1343: undefined reference to `__alloca'
/root/Lakka-LibreELEC/build.Lakka-Switch.aarch64-2.1-devel/make-4.2.1/./glob/glob.c:1284: undefined reference to `__alloca'
/root/Lakka-LibreELEC/build.Lakka-Switch.aarch64-2.1-devel/make-4.2.1/./glob/glob.c:1257: undefined reference to `__alloca'
glob.o: In function `glob':
/root/Lakka-LibreELEC/build.Lakka-Switch.aarch64-2.1-devel/make-4.2.1/./glob/glob.c:582: undefined reference to `__alloca'
glob.o:/root/Lakka-LibreELEC/build.Lakka-Switch.aarch64-2.1-devel/make-4.2.1/./glob/glob.c:733: more undefined references to `__alloca' follow
collect2: error: ld returned 1 exit status
root@ubuntu:~/Lakka-LibreELEC/build.Lakka-Switch.aarch64-2.1-devel/make-4.2.1