lightning
[Top][All Lists]
Advanced

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

Re: [Lightning] lightning-2.1.1 failed build on Fedora 26


From: Paulo César Pereira de Andrade
Subject: Re: [Lightning] lightning-2.1.1 failed build on Fedora 26
Date: Thu, 14 Sep 2017 16:26:35 -0400

2017-09-14 15:49 GMT-04:00 Antonio Trande <address@hidden>:
> Hi all.

  Hi Antonio,

> Latest lightning 2.1.1 does not compile on Fedora 26 with following error:

  Sorry. There was an error in binutils 2.29 or newer detection, and I did not
properly check on "older" systems.

  I will make a new 2.1.2 release to fix that.

> gcc -DHAVE_CONFIG_H -I. -I..    -I../include -D_GNU_SOURCE -O2 -g -pipe
> -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c -o
> rfib.o rfib.c
> jit_disasm.c: In function 'jit_init_debug':
> jit_disasm.c:126:33: error: incompatible type for argument 1 of
> 'disassembler'
>      disasm_print = disassembler(disasm_info.arch, __BYTE_ORDER ==
> __BIG_ENDIAN,
>                                  ^~~~~~~~~~~
> In file included from jit_disasm.c:23:0:
> /usr/include/dis-asm.h:341:27: note: expected 'bfd * {aka struct bfd *}'
> but argument is of type 'enum bfd_architecture'
>  extern disassembler_ftype disassembler (bfd *);
>                            ^~~~~~~~~~~~
> jit_disasm.c:126:20: error: too many arguments to function 'disassembler'
>      disasm_print = disassembler(disasm_info.arch, __BYTE_ORDER ==
> __BIG_ENDIAN,
>                     ^~~~~~~~~~~~
> In file included from jit_disasm.c:23:0:
> /usr/include/dis-asm.h:341:27: note: declared here
>  extern disassembler_ftype disassembler (bfd *);
>                            ^~~~~~~~~~~~
> jit_disasm.c: In function 'disasm_print_address':
> jit_disasm.c:255:34: warning: format '%lx' expects argument of type
> 'long unsigned int', but argument 3 has type 'long long int' [-Wformat=]
>  #  define address_buffer_format  "%lx"
>                                   ^
> jit_disasm.c:265:21: note: in expansion of macro 'address_buffer_format'
>      sprintf(buffer, address_buffer_format, (long long)addr);
>                      ^~~~~~~~~~~~~~~~~~~~~
> jit_disasm.c: In function '_disassemble':
> jit_disasm.c:255:34: warning: format '%lx' expects argument of type
> 'long unsigned int', but argument 3 has type 'long long int' [-Wformat=]
>  #  define address_buffer_format  "%lx"
>                                   ^
> jit_disasm.c:408:26: note: in expansion of macro 'address_buffer_format'
>   bytes = sprintf(buffer, address_buffer_format, (long long)pc);
>                           ^~~~~~~~~~~~~~~~~~~~~
> make[3]: *** [Makefile:511: jit_disasm.lo] Error 1
>
> --
> --
> Antonio Trande
> sagitter AT fedoraproject dot org
> See my vCard.

Thanks,
Paulo



reply via email to

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