Re: [lfs-dev] Bug in binutils-2.23.2

2013-09-03 Thread Bruce Dubbs
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

Re: [lfs-dev] Bug in binutils-2.23.2

2013-09-01 Thread William Harrington
On Sep 1, 2013, at 12:35 PM, Klemen Košir wrote: > I'm using -Os since I'll be installing it on a USB drive. That shouldn't be the definitive reason for using -Os. If you understand what Os does, it wouldn't matter where you are installing the binaries. It has to do with which system you wi

Re: [lfs-dev] Bug in binutils-2.23.2

2013-09-01 Thread Klemen Košir
I solved it by removing the flags. On Sun, Sep 1, 2013 at 7:46 PM, William Harrington wrote: > > On Sep 1, 2013, at 12:15 PM, Klemen Košir wrote: > > I get the same error. It's a normal warning, but gcc treats it as an error. > > > Gotta reconfigure the build system. > > If you remove CFLAGS and

Re: [lfs-dev] Bug in binutils-2.23.2

2013-09-01 Thread Bruce Dubbs
Klemen Košir wrote: > I get the same error. It's a normal warning, but gcc treats it as an error. > > > On Sun, Sep 1, 2013 at 6:56 PM, Bruce Dubbs wrote: > >> Klemen Košir wrote: >>> I followed the instructions, but I set several environment variables: >>> >>> MAKEFLAGS="-j 4" >>> CFLAGS="-march=

Re: [lfs-dev] Bug in binutils-2.23.2

2013-09-01 Thread William Harrington
On Sep 1, 2013, at 12:15 PM, Klemen Košir wrote: I get the same error. It's a normal warning, but gcc treats it as an error. Gotta reconfigure the build system. If you remove CFLAGS and CXXFLAGS and rebuild binutils from scratch, you will not see the error again. It has to do with -Os a

Re: [lfs-dev] Bug in binutils-2.23.2

2013-09-01 Thread Klemen Košir
I'm using -Os since I'll be installing it on a USB drive. I've compiled the package from scratch now, and everything works OK now. Thanks for the tips. On Sun, Sep 1, 2013 at 7:05 PM, Ken Moffat wrote: > On Sun, Sep 01, 2013 at 06:23:47PM +0200, Klemen Košir wrote: > > I followed the instructi

Re: [lfs-dev] Bug in binutils-2.23.2

2013-09-01 Thread William Harrington
On Sep 1, 2013, at 11:23 AM, Klemen Košir wrote: ../../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, Just to note, This will arise whe

Re: [lfs-dev] Bug in binutils-2.23.2

2013-09-01 Thread Klemen Košir
I get the same error. It's a normal warning, but gcc treats it as an error. On Sun, Sep 1, 2013 at 6:56 PM, Bruce Dubbs wrote: > Klemen Košir wrote: > > I followed the instructions, but I set several environment variables: > > > > MAKEFLAGS="-j 4" > > CFLAGS="-march=corei7 -Os -pipe" > > CXXFLA

Re: [lfs-dev] Bug in binutils-2.23.2

2013-09-01 Thread Ken Moffat
On Sun, Sep 01, 2013 at 06:23:47PM +0200, Klemen Košir wrote: > I followed the instructions, but I set several environment variables: > > MAKEFLAGS="-j 4" > CFLAGS="-march=corei7 -Os -pipe" > CXXFLAGS="${CFLAGS}" For some time, -Os has been deprecated in kernel builds. It got introduced there w

Re: [lfs-dev] Bug in binutils-2.23.2

2013-09-01 Thread William Harrington
On Sep 1, 2013, at 11:23 AM, Klemen Košir wrote: CFLAGS="-march=corei7 -Os -pipe" Remove Os, restart the build from scratch and see if the error removes itself. Sincerely, William Harrington-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/

Re: [lfs-dev] Bug in binutils-2.23.2

2013-09-01 Thread Bruce Dubbs
Klemen Košir wrote: > 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

Re: [lfs-dev] Bug in binutils-2.23.2

2013-09-01 Thread Klemen Košir
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

Re: [lfs-dev] Bug in binutils-2.23.2

2013-09-01 Thread William Harrington
On Sep 1, 2013, at 10:03 AM, Klemen Košir wrote: 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. This wil

Re: [lfs-dev] Bug in binutils-2.23.2

2013-09-01 Thread Bruce Dubbs
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