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