[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error compiling binutils-2.22 with clang v2.9
From: |
Tristan Gingold |
Subject: |
Re: error compiling binutils-2.22 with clang v2.9 |
Date: |
Wed, 7 Mar 2012 09:27:15 +0100 |
On Mar 7, 2012, at 2:34 AM, Roy Batty wrote:
> 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.
Hi,
this is a warning that is transformed into an error (by -Werror). Try to
configure with --disable-werror.
It is very hard to have builds without warnings for many compilers (and even
for severals versions of one compiler).
Tristan.
>
>
> 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
> _______________________________________________
> bug-binutils mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-binutils