FS#40337 - [crash] build fails

Attached to Project: Community Packages
Opened by Joel Teichroeb (klusark) - Monday, 12 May 2014, 23:01 GMT
Last edited by Anatol Pomozov (anatolik) - Tuesday, 10 June 2014, 19:04 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Anatol Pomozov (anatolik)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I. -I./../include -DHAVE_bfd_elf64_x86_64_vec -DHAVE_bfd_elf32_i386_vec -DHAVE_bfd_elf32_x86_64_vec -DHAVE_i386linux_vec -DHAVE_i386pei_vec -DHAVE_x86_64pei_vec -DHAVE_bfd_elf64_l1om_vec -DHAVE_bfd_elf64_k1om_vec -DHAVE_bfd_elf64_little_generic_vec -DHAVE_bfd_elf64_big_generic_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -DBINDIR=\"/usr/local/bin\" -D_FORTIFY_SOURCE=2 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -MT opncls.lo -MD -MP -MF .deps/opncls.Tpo -c opncls.c -o opncls.o
In file included from opncls.c:26:0:
opncls.c: In function 'bfd_fopen':
bfd.h:529:65: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
^
opncls.c:263:5: note: in expansion of macro 'bfd_set_cacheable'
bfd_set_cacheable (nbfd, TRUE);
^
cc1: all warnings being treated as errors
Makefile:1607: recipe for target 'opncls.lo' failed
make[6]: *** [opncls.lo] Error 1
Makefile:1649: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
Makefile:1135: recipe for target 'all' failed
make[4]: *** [all] Error 2
Makefile:2585: recipe for target 'all-bfd' failed
make[3]: *** [all-bfd] Error 2
Makefile:834: recipe for target 'all' failed
make[2]: *** [all] Error 2

crash build failed

Makefile:224: recipe for target 'gdb_merge' failed
make[1]: *** [gdb_merge] Error 1
Makefile:219: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...


Steps to reproduce:
sudo extra-x86_64-build
This task depends upon

Closed by  Anatol Pomozov (anatolik)
Tuesday, 10 June 2014, 19:04 GMT
Reason for closing:  Upstream
Additional comments about closing:  Fixed in 7.0.7
Comment by Anatol Pomozov (anatolik) - Monday, 12 May 2014, 23:47 GMT
The bug comes from older version of GDB used by crash. In the newer GDBthis macro is replaced with inline function:

/* See note beside bfd_set_section_userdata. */
static inline bfd_boolean
bfd_set_cacheable (bfd * abfd, bfd_boolean val)
{
abfd->cacheable = val;
return TRUE;
}

Loading...