bug-binutils
[Top][All Lists]
Advanced

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

Re: error compiling binutils-2.22 with clang v2.9


From: Ian Lance Taylor
Subject: Re: error compiling binutils-2.22 with clang v2.9
Date: Wed, 07 Mar 2012 05:41:33 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Roy Batty <address@hidden> writes:

> 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


There is nothing wrong with this code.  It is working as intended.

Ian



reply via email to

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