bug-binutils
[Top][All Lists]
Advanced

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

error compiling binutils-2.22 with clang v2.9


From: Roy Batty
Subject: error compiling binutils-2.22 with clang v2.9
Date: Tue, 6 Mar 2012 17:34:42 -0800 (PST)

To Whom It May Concern:

i don't know if your project even has an interest in being compiled with anything other than GCC @ this point in time, but here is an error I found when trying to make binutils with clang.  note that this was performed on a fairly standard fedora 16 x86_64-bit install ( using kernel 3.2.9-1.fc16.x86_64 #1 SMP )  ... hope this is of some use to your project.  let me know if you need further information.


libtool: compile:  clang -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\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT opncls.lo -MD -MP -MF .deps/opncls.Tpo -c opncls.c -o opncls.o
opncls.c:249:5: error: _expression_ result unused [-Werror,-Wunused-value]
    bfd_set_cacheable (nbfd, TRUE);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from opncls.c:26:
./bfd.h:524:67: note: instantiated from:
#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
                                                                  ^
./bfd.h:127:14: note: instantiated from:
#define TRUE 1
             ^
1 error generated.
*** Error code 1

Stop.
bmake: stopped in /bin_build/binutils-2.22/bfd
*** Error code 1

reply via email to

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