I followed the instructions, but I set several environment variables: MAKEFLAGS="-j 4" CFLAGS="-march=corei7 -Os -pipe" CXXFLAGS="${CFLAGS}"
The error: ../../binutils-2.23.2/binutils/stabs.c: In function 'parse_stab_type': ../../binutils-2.23.2/binutils/stabs.c:2797:57: error: 'physname' may be used uninitialized in this function [-Werror=maybe-uninitialized] variants[cvars] = debug_make_static_method_variant (dhandle, ^ ../../binutils-2.23.2/binutils/stabs.c:2596:16: note: 'physname' was declared here const char *physname; ^ cc1: all warnings being treated as errors make[4]: *** [stabs.o] Error 1 On Sun, Sep 1, 2013 at 5:14 PM, Bruce Dubbs <bruce.du...@gmail.com> wrote: > Klemen Košir wrote: > > Hello! > > > > Today, I've been compiling LFS 7.4-rc2, and I got stuck in chapter 6.13, > > where binutils failed to compile. > > > > I looked at the compile log and I've found a warning regarding the > variable > > physname in binutils/stabs.c being used uninitialized. The compiler > turned > > the warning into an error. Maybe the reason for this was the -O2 compiler > > flag. > > > > I found a way to fix the error by looking at the commit log on the > official > > Git repository, and this [1] is the solution. > > > > It's weird that this change wasn't in the tarball, since it was made in > > January. > > We certainly have not seen that in our reference builds. > > gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.23.2/binutils -I. > -I../../binutils-2.23.2/binutils -I../bfd > -I../../binutils-2.23.2/binutils/../bfd > -I../../binutils-2.23.2/binutils/../include > -DLOCALEDIR="\"/usr/share/locale\"" > -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall > -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT > stabs.o -MD -MP -MF .deps/stabs.Tpo -c -o stabs.o > ../../binutils-2.23.2/binutils/stabs.c > > builds without error. What is the exact instruction, including the > error, that you have? > > -- Bruce > -- > http://linuxfromscratch.org/mailman/listinfo/lfs-dev > FAQ: http://www.linuxfromscratch.org/faq/ > Unsubscribe: See the above information page >
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page