I just followed the directions in packaging/README-MAINTAINER.txt, installed the dependencies, downloaded the code, etc., but "make build" failed with:
gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include -DLOCALEDIR="\"/opt/mspgcc/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c cxxfilt.c
cc1: warnings being treated as errors
cxxfilt.c: In function ‘demangle_it’:
cxxfilt.c:66: error: format not a string literal and no format arguments
cxxfilt.c:71: error: format not a string literal and no format arguments
make: *** [cxxfilt.o] Error 1
make: Leaving directory `/home/ta/mspgcc/sf/packaging/build/binutils-2.18/binutils'
I fixed this (printf() was called without a format string parameter), tried again, but it failed on a different module. Before going too far down this road, is there source code I could download that would have a better chance of compiling?
Any word on this as I am experiencing the same problem.
Edit the makefile and scroll down to "binutils-build". Modify the "./configure" line to include CFLAGS="-g -O2 -Wno-error" as seen below:
cd $(BUILDDIR)/$(BINUTILS) && ./configure --target=msp430 $(CROSSOPT) --prefix=$(PREFIX) \
--disable-nls --disable-shared --enable-debug --disable-threads \
--with-gcc --with-gnu-as --with-gnu-ld --with-stabs CFLAGS="-g -O2 -Wno-error"\
Then drive on as usual.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.