Levi-Armstrong / gdb-7.7.1

GNU General Public License v2.0
4 stars 4 forks source link

fail in making #7

Closed ZhangShuaiGou closed 5 years ago

ZhangShuaiGou commented 5 years ago

Hello, I am using ubuntu 18.04 and ROS_melodic. I met the problem while making the package. I have done the flex and bison installation and followed the READEME file. At first, I met some warnings while typing

make

command:

if [ x"" != x ] && [ ! -d pic ]; then \
  mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I./../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ./regex.c -o pic/regex.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I./../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ./regex.c -o regex.o
./regex.c: In function ‘byte_regex_compile’:
./regex.c:154:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
 #      define bzero(s, n) (memset (s, '\0', n), (s))
                           ~~~~~~~~~~~~~~~~~~~~^~~~~~
./regex.c:3126:13: note: in expansion of macro ‘bzero’
             bzero (b, (1 << BYTEWIDTH) / BYTEWIDTH);
             ^~~~~
./regex.c: In function ‘byte_re_compile_fastmap’:
./regex.c:154:47: warning: right-hand operand of comma expression has no effect [-Wunused-value]
 #      define bzero(s, n) (memset (s, '\0', n), (s))
                           ~~~~~~~~~~~~~~~~~~~~^~~~~~
./regex.c:4584:3: note: in expansion of macro ‘bzero’
   bzero (fastmap, 1 << BYTEWIDTH);  /* Assume nothing's valid.  */
   ^~~~~
In file included from ./regex.c:640:0:
./regex.c: In function ‘byte_re_match_2_internal’:
./regex.c:6699:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
       is_a_jump_n = true;
./regex.c:6700:19: note: here
                   case pop_failure_jump:
                   ^~~~
./regex.c:7122:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
    if ((re_opcode_t) p[-1] != pop_failure_jump)
       ^
./regex.c:7137:9: note: here
         case pop_failure_jump:
         ^~~~
./regex.c:1778:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
   set_regs_matched_done = 0;      \
   ~~~~~~~~~~~~~~~~~~~~~~^~~
./regex.c:7149:13: note: in expansion of macro ‘POP_FAILURE_POINT’
             POP_FAILURE_POINT (sdummy, pdummy,
             ^~~~~~~~~~~~~~~~~
./regex.c:7155:2: note: here
  unconditional_jump:
  ^~~~~~~~~~~~~~~~~~
./regex.c:7455:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
                   is_a_jump_n = true;
./regex.c:7456:17: note: here
                 case maybe_pop_jump:
                 ^~~~
./regex.c: In function ‘byte_common_op_match_null_string_p’:
./regex.c:7720:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
       p1 += 2 * OFFSET_ADDRESS_SIZE;
          ^
./regex.c:7722:5: note: here
     default:
     ^~~~~~~
./regex.c: In function ‘byte_regex_compile’:
./regex.c:2493:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
           if ((syntax & RE_BK_PLUS_QM)
              ^
./regex.c:2496:9: note: here
         handle_plus:
         ^~~~~~~~~~~
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I./../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ./cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I./../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ./cplus-dem.c -o cplus-dem.o
./cplus-dem.c: In function ‘demangle_fund_type’:
./cplus-dem.c:3944:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
       if (!ISDIGIT ((unsigned char)**mangled))
          ^
./cplus-dem.c:3949:5: note: here
     case 'I':
     ^~~~
./cplus-dem.c: In function ‘demangle_signature’:
./cplus-dem.c:1602:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
    if (AUTO_DEMANGLING || GNU_DEMANGLING)
       ^
./cplus-dem.c:1616:2: note: here
  default:
  ^~~~~~~
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I./../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ./cp-demangle.c -o pic/cp-demangle.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I./../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ./cp-demangle.c -o cp-demangle.o
./cp-demangle.c: In function ‘d_print_mod’:
./cp-demangle.c:5494:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
       d_append_char (dpi, ' ');
       ^~~~~~~~~~~~~~~~~~~~~~~~
./cp-demangle.c:5495:5: note: here
     case DEMANGLE_COMPONENT_REFERENCE:
     ^~~~
./cp-demangle.c:5499:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
       d_append_char (dpi, ' ');
       ^~~~~~~~~~~~~~~~~~~~~~~~
./cp-demangle.c:5500:5: note: here
     case DEMANGLE_COMPONENT_RVALUE_REFERENCE:
     ^~~~
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I./../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ./md5.c -o pic/md5.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I./../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ./md5.c -o md5.o
if [ x"" != x ]; then \

and

gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I./../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ./hashtab.c -o hashtab.o
./hashtab.c: In function ‘iterative_hash’:
./hashtab.c:965:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case 11: c+=((hashval_t)k[10]<<24);
              ~^~~~~~~~~~~~~~~~~~~~~~~~
./hashtab.c:966:5: note: here
     case 10: c+=((hashval_t)k[9]<<16);
     ^~~~
./hashtab.c:966:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case 10: c+=((hashval_t)k[9]<<16);
              ~^~~~~~~~~~~~~~~~~~~~~~~
./hashtab.c:967:5: note: here
     case 9 : c+=((hashval_t)k[8]<<8);
     ^~~~
./hashtab.c:967:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case 9 : c+=((hashval_t)k[8]<<8);
              ~^~~~~~~~~~~~~~~~~~~~~~
./hashtab.c:969:5: note: here
     case 8 : b+=((hashval_t)k[7]<<24);
     ^~~~
./hashtab.c:969:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case 8 : b+=((hashval_t)k[7]<<24);
              ~^~~~~~~~~~~~~~~~~~~~~~~
./hashtab.c:970:5: note: here
     case 7 : b+=((hashval_t)k[6]<<16);
     ^~~~
./hashtab.c:970:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case 7 : b+=((hashval_t)k[6]<<16);
              ~^~~~~~~~~~~~~~~~~~~~~~~
./hashtab.c:971:5: note: here
     case 6 : b+=((hashval_t)k[5]<<8);
     ^~~~
./hashtab.c:971:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case 6 : b+=((hashval_t)k[5]<<8);
              ~^~~~~~~~~~~~~~~~~~~~~~
./hashtab.c:972:5: note: here
     case 5 : b+=k[4];
     ^~~~
./hashtab.c:972:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case 5 : b+=k[4];
              ~^~~~~~
./hashtab.c:973:5: note: here
     case 4 : a+=((hashval_t)k[3]<<24);
     ^~~~
./hashtab.c:973:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case 4 : a+=((hashval_t)k[3]<<24);
              ~^~~~~~~~~~~~~~~~~~~~~~~
./hashtab.c:974:5: note: here
     case 3 : a+=((hashval_t)k[2]<<16);
     ^~~~
./hashtab.c:974:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case 3 : a+=((hashval_t)k[2]<<16);
              ~^~~~~~~~~~~~~~~~~~~~~~~
./hashtab.c:975:5: note: here
     case 2 : a+=((hashval_t)k[1]<<8);
     ^~~~
./hashtab.c:975:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
     case 2 : a+=((hashval_t)k[1]<<8);
              ~^~~~~~~~~~~~~~~~~~~~~~
./hashtab.c:976:5: note: here
     case 1 : a+=k[0];
     ^~~~
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I./../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic   ./hex.c -o pic/hex.o; \

Then my errors shown below:

coffgen.c: In function ‘coff_print_symbol’:
coffgen.c:2103:8: error: this statement may fall through [-Werror=implicit-fallthrough=]
     if (combined->u.syment.n_type == T_NULL)
        ^
coffgen.c:2120:3: note: here
   case C_EXT:
   ^~~~
coffgen.c:2122:8: error: this statement may fall through [-Werror=implicit-fallthrough=]
     if (ISFCN (combined->u.syment.n_type))
        ^
coffgen.c:2140:3: note: here
   default:
   ^~~~~~~
cc1: all warnings being treated as errors
Makefile:1618: recipe for target 'coffgen.lo' failed
make[4]: *** [coffgen.lo] Error 1
make[4]: Leaving directory '/home/shen/QtCreator/gdb-7.7.1/bfd'
Makefile:1660: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/shen/QtCreator/gdb-7.7.1/bfd'
Makefile:1142: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/shen/QtCreator/gdb-7.7.1/bfd'
Makefile:2599: recipe for target 'all-bfd' failed
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory '/home/shen/QtCreator/gdb-7.7.1'
Makefile:832: recipe for target 'all' failed
make: *** [all] Error 2

What could I do to figure it out?