Using the following: gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj- c++,treelang --prefix=/usr --enable-shared --with-system-zlib -- libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable- nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable- clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable- targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux- gnu --target=i486-linux-gnu Thread model: posix gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
I get the following error whilst building: binutils-2.20/configure --target=arm-elf --prefix=/home/user/tools/arm-elf ../../binutils-2.20/gas/config/tc-arm.c: In function make_mapping_symbol: ../../binutils-2.20/gas/config/tc-arm.c:2489: warning: empty body in an if- statement make[4]: *** [tc-arm.o] Error 1 make[4]: Leaving directory `/home/user/tools_build/b-b/gas' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/user/tools_build/b-b/gas' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/user/tools_build/b-b/gas' make[1]: *** [all-gas] Error 2 make[1]: Leaving directory `/home/user/tools_build/b-b' make: *** [all] Error 2 make: Leaving directory `/home/user/tools_build/b-b' diff -p tc-arm-old.c tc-arm.c *** tc-arm-old.c 2009-12-03 14:00:27.000000000 -0500 --- tc-arm.c 2009-12-03 13:30:20.000000000 -0500 *************** make_mapping_symbol (enum mstate state, *** 2486,2492 **** --- 2486,2494 ---- frag->tc_frag_data.first_map = symbolP; } if (frag->tc_frag_data.last_map != NULL) + { know (S_GET_VALUE (frag->tc_frag_data.last_map) < S_GET_VALUE (symbolP)); + } frag->tc_frag_data.last_map = symbolP; } The above seems to fix the build. -- Summary: Build error in tc-arm.c Product: binutils Version: 2.20 Status: NEW Severity: normal Priority: P3 Component: gas AssignedTo: unassigned at sources dot redhat dot com ReportedBy: rcc at zubira dot com CC: bug-binutils at gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: arm-unknown-elf http://sourceware.org/bugzilla/show_bug.cgi?id=11050 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils