Status of TCS211 on C139
Das Signal
das.signal at freecalypso.org
Thu Nov 12 20:18:30 CET 2015
Hi Mychaela,
When compiling the toolchain on a new Debian system, I ran into
a small problem due to the less permissive gcc version (4.9.1):
In file included from ../../binutils-2.21.1/bfd/opncls.c:26:0:
../../binutils-2.21.1/bfd/opncls.c: In function ‘bfd_fopen’:
./bfd.h:524:65: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
^
../../binutils-2.21.1/bfd/opncls.c:249:5: note: in expansion of macro ‘bfd_set_cacheable’
bfd_set_cacheable (nbfd, TRUE);
^
cc1: all warnings being treated as errors
The patch below does the trick for me by not treating this specific
warning as an error:
diff --git a/toolchain/build+install.sh b/toolchain/build+install.sh
index 5aed749..86023e0 100755
--- a/toolchain/build+install.sh
+++ b/toolchain/build+install.sh
@@ -37,7 +37,7 @@ tar xjf $1/binutils-2.21.1a.tar.bz2
patch binutils-2.21.1/bfd/elf32-arm.c < binutils-patches/elf32-arm.patch
mkdir -p binutils-build
cd binutils-build
-../binutils-2.21.1/configure --prefix=$2 ${target_args} --disable-nls
+CFLAGS="-Wno-error=unused-value" ../binutils-2.21.1/configure --prefix=$2 ${target_args} --disable-nls
make all
make install
cd ..
Hopefully this will help others who run into the same issue.
--DS
More information about the Community
mailing list