bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange errors regarding function '__alloca' on a Debian buster/sid


From: Dennis Clarke
Subject: Re: Strange errors regarding function '__alloca' on a Debian buster/sid i686 system
Date: Sun, 1 Apr 2018 17:10:34 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0


So I could just lift that out of glibc 2.27 and drop it into the make
  source tree and have a go at it.  Is that the idea here ?


phobos$ ls -lap glob
total 216
drwxr-sr-x 3 dclarke devl  4096 Apr  1 21:08 ./
drwxr-sr-x 9 dclarke devl  4096 Apr  1 21:02 ../
-rw-r--r-- 1 dclarke devl  1748 Jan 13  2013 configure.bat
-rw-r--r-- 1 dclarke devl 25263 Jan 13  2013 COPYING.LIB
drwxr-sr-x 2 dclarke devl  4096 Apr  1 21:02 .deps/
-rw-r--r-- 1 dclarke devl  1855 Feb  1 16:17 flexmember.h
-rw-r--r-- 1 dclarke devl 13510 Feb  1 16:17 fnmatch.c
-rw-r--r-- 1 dclarke devl  2295 Feb  1 16:17 fnmatch.h
-rw-r--r-- 1 dclarke devl 31335 Feb  1 16:17 fnmatch_loop.c
-rw-r--r-- 1 dclarke devl 38745 Feb  1 16:17 glob.c
-rw-r--r-- 1 dclarke devl  6614 Feb  1 16:17 glob.h
-rw-r--r-- 1 dclarke devl  1619 Feb  1 16:17 glob_internal.h
-rw-r--r-- 1 dclarke devl 18314 Apr  1 21:02 Makefile
-rw-r--r-- 1 dclarke devl  1124 Jan 13  2013 Makefile.am
-rw-r--r-- 1 dclarke devl  2046 Jan 13  2013 Makefile.ami
-rw-r--r-- 1 dclarke devl 18293 Jun 10  2016 Makefile.in
-rw-r--r-- 1 dclarke devl   195 Jan 13  2013 SCOPTIONS
-rw-r--r-- 1 dclarke devl  5089 Feb  1 16:17 scratch_buffer.h
-rw-r--r-- 1 dclarke devl  2035 Jan 13  2013 SMakefile
phobos$


nope .. that is a large mistake :

phobos$ make
make  all-recursive
make[1]: Entering directory '/usr/local/build/make-4.2.1_linux_4.13.0-1-686_i686.002'
Making all in glob
make[2]: Entering directory '/usr/local/build/make-4.2.1_linux_4.13.0-1-686_i686.002/glob' gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -m32 -march=i386 -g -std=iso9899:1999 -Wl,-rpath=/usr/local/lib -D_POSIX_PTHREAD_SEMANTICS -D_TS_ERRNO -MT glob.o -MD -MP -MF .deps/glob.Tpo -c -o glob.o glob.c
In file included from glob.c:79:0:
./scratch_buffer.h:69:11: error: unknown type name ‘max_align_t’
   union { max_align_t __align; char __c[1024]; } __space;
           ^~~~~~~~~~~
./scratch_buffer.h:95:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 libc_hidden_proto (__libc_scratch_buffer_grow)
 ^~~~~~~~~~~~~~~~~
./scratch_buffer.h: In function ‘libc_hidden_proto’:
./scratch_buffer.h:100:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
./scratch_buffer.h:107:1: error: expected declaration specifiers before ‘libc_hidden_proto’
 libc_hidden_proto (__libc_scratch_buffer_grow_preserve)
 ^~~~~~~~~~~~~~~~~
./scratch_buffer.h:124:1: error: expected declaration specifiers before ‘libc_hidden_proto’
 libc_hidden_proto (__libc_scratch_buffer_set_array_size)
 ^~~~~~~~~~~~~~~~~
glob.c:81:20: error: storage class specified for parameter ‘next_brace_sub’
static const char *next_brace_sub (const char *begin, int flags) __THROWNL;
                    ^~~~~~~~~~~~~~
glob.c:81:1: warning: ‘__nothrow__’ attribute ignored [-Wattributes]
static const char *next_brace_sub (const char *begin, int flags) __THROWNL;
 ^~~~~~
glob.c:83:22: error: storage class specified for parameter ‘dirent_type’
 typedef uint_fast8_t dirent_type;
                      ^~~~~~~~~~~
glob.c:102:3: error: expected specifier-qualifier-list before ‘dirent_type’
   dirent_type type;
   ^~~~~~~~~~~
glob.c:98:1: warning: empty declaration
 struct readdir_result
 ^~~~~~
glob.c:108:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘readdir_result_type’
 readdir_result_type (struct readdir_result d)
 ^~~~~~~~~~~~~~~~~~~
glob.c:138:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
glob.c:186:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
glob.c:213:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
glob.c:224:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
glob.c:230:12: error: storage class specified for parameter ‘glob_in_dir’
 static int glob_in_dir (const char *pattern, const char *directory,
            ^~~~~~~~~~~
glob.c:233:12: error: storage class specified for parameter ‘prefix_array’
static int prefix_array (const char *prefix, char **array, size_t n) __THROWNL;
            ^~~~~~~~~~~~
glob.c:233:1: warning: ‘__nothrow__’ attribute ignored [-Wattributes]
static int prefix_array (const char *prefix, char **array, size_t n) __THROWNL;
 ^~~~~~
glob.c:234:12: error: storage class specified for parameter ‘collated_compare’
 static int collated_compare (const void *, const void *) __THROWNL;
            ^~~~~~~~~~~~~~~~
glob.c:234:1: warning: ‘__nothrow__’ attribute ignored [-Wattributes]
 static int collated_compare (const void *, const void *) __THROWNL;
 ^~~~~~
glob.c:241:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
glob.c:252:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
glob.c:289:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
glob.c:1172:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
glob.c:1192:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
glob.c:1248:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
In file included from glob.c:79:0:
./scratch_buffer.h:95:1: warning: type of ‘__libc_scratch_buffer_grow’ defaults to ‘int’ [-Wimplicit-int]
 libc_hidden_proto (__libc_scratch_buffer_grow)
 ^~~~~~~~~~~~~~~~~
glob.c:234:12: error: declaration for parameter ‘collated_compare’ but no such parameter
 static int collated_compare (const void *, const void *) __THROWNL;
            ^~~~~~~~~~~~~~~~
glob.c:233:12: error: declaration for parameter ‘prefix_array’ but no such parameter static int prefix_array (const char *prefix, char **array, size_t n) __THROWNL;
            ^~~~~~~~~~~~
glob.c:230:12: error: declaration for parameter ‘glob_in_dir’ but no such parameter
 static int glob_in_dir (const char *pattern, const char *directory,
            ^~~~~~~~~~~
glob.c:83:22: error: declaration for parameter ‘dirent_type’ but no such parameter
 typedef uint_fast8_t dirent_type;
                      ^~~~~~~~~~~
glob.c:81:20: error: declaration for parameter ‘next_brace_sub’ but no such parameter static const char *next_brace_sub (const char *begin, int flags) __THROWNL;
                    ^~~~~~~~~~~~~~
In file included from glob.c:79:0:
./scratch_buffer.h:122:6: error: declaration for parameter ‘__libc_scratch_buffer_set_array_size’ but no such parameter
 bool __libc_scratch_buffer_set_array_size (struct scratch_buffer *buffer,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./scratch_buffer.h:106:6: error: declaration for parameter ‘__libc_scratch_buffer_grow_preserve’ but no such parameter
 bool __libc_scratch_buffer_grow_preserve (struct scratch_buffer *buffer);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
glob.c:1483:1: error: expected ‘{’ at end of input
 }
 ^
Makefile:386: recipe for target 'glob.o' failed
make[2]: *** [glob.o] Error 1
make[2]: Leaving directory '/usr/local/build/make-4.2.1_linux_4.13.0-1-686_i686.002/glob'
Makefile:798: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/local/build/make-4.2.1_linux_4.13.0-1-686_i686.002'
Makefile:534: recipe for target 'all' failed
make: *** [all] Error 2
phobos$


oh geez ... getting messy real fast here.

Dennis



reply via email to

[Prev in Thread] Current Thread [Next in Thread]