This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

BUG in bfd Makefile (.am or .in): gcc-4.5 , no, gcc-4.4.5 as well


# error log posted at end
# fix - this works i think is only needed in binutils-2.21.1/bfd/

[ -d gcc-4.4.5/ ] &&
CPPFLAGS=" $CPPFLAGS -W-Wstrict-aliasing=0 "

the right fix is to Makefile.*, but the below is illegible and i have no idea where in .am to fix the "4.5" thing nor whether if i find it i can fix it and or add -Wstrict to it

# in Makefile.am and Makefile.in (both same)

# Disable -Werror, if it has been enabled, since coffswap.h won't
# compile with gcc 4.5 and above.
coff-tic4x.lo: coff-tic4x.c
$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< $(NO_WERROR
        $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
#       source='$<' object='$@' libtool=yes \
#       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
#       $(LTCOMPILE) -c -o $@ $< $(NO_WERROR)


-----------------------------

make.log:libtool: compile: gcc -DHAVE_CONFIG_H -I. -DTRAD_CORE -I. -I. -I./../include -DHAVE_bfd_elf32_i386_vec -DHAVE_i386linux_vec -DHAVE_i386pei_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -DBINDIR=\"/usr/local/bin\" -I/usr/local/include -I/usr/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT archive.lo -MD -MP -MF .deps/archive.Tpo -c archive.c -o archive.o make.log:archive.c:2421: error: dereferencing pointer '__u' does break strict-aliasing rules make.log:archive.c:2421: error: dereferencing pointer '__u' does break strict-aliasing rules make.log:archive.c:2421: error: dereferencing pointer '__u' does break strict-aliasing rules mkinstalldirs:# from a parallel make. We use --version in the probe to restrict


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]