lightning
[Top][All Lists]
Advanced

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

[Lightning] lightning-2.1.1 failed build on Fedora 26


From: Antonio Trande
Subject: [Lightning] lightning-2.1.1 failed build on Fedora 26
Date: Thu, 14 Sep 2017 21:49:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

Hi all.

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

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.

Attachment: sagitter.vcf
Description: Vcard

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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