Hi
according this
Hint, I set below environmet variables after chrooting and before installing any packages:
export CFLAGS="-Os -fomit-frame-pointer -march=i686 -pipe" && CXXFLAGS=$CFLAGS
export CC="gcc -s"
export LDFLAGS="-s"
I have installed glibc by
adding "--enable-omitfp --disable-nls" as extra configure arguments and any problem dosn't occurs.
in section 6.13, I add --disable-nls option in configure command.
when I running " make tooldir=/usr" command, below errors occur:
Code:
gcc -s -DHAVE_CONFIG_H -I. -I../../binutils-2.22/binutils -I. -I../../binutils-2.22/binutils -I../bfd -I../../binutils-2.22/binutils/../bfd -I../../binutils-2.22/binutils/../include -DLOCALEDIR="\"/usr/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -Os -fomit-frame-pointer -march=i686 -pipe -MT prdbg.o -MD -MP -MF .deps/prdbg.Tpo -c -o prdbg.o ../../binutils-2.22/binutils/prdbg.c
mv -f .deps/prdbg.Tpo .deps/prdbg.Po
gcc -s -DHAVE_CONFIG_H -I. -I../../binutils-2.22/binutils -I. -I../../binutils-2.22/binutils -I../bfd -I../../binutils-2.22/binutils/../bfd -I../../binutils-2.22/binutils/../include -DLOCALEDIR="\"/usr/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -Os -fomit-frame-pointer -march=i686 -pipe -MT rddbg.o -MD -MP -MF .deps/rddbg.Tpo -c -o rddbg.o ../../binutils-2.22/binutils/rddbg.c
mv -f .deps/rddbg.Tpo .deps/rddbg.Po
gcc -s -DHAVE_CONFIG_H -I. -I../../binutils-2.22/binutils -I. -I../../binutils-2.22/binutils -I../bfd -I../../binutils-2.22/binutils/../bfd -I../../binutils-2.22/binutils/../include -DLOCALEDIR="\"/usr/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -Os -fomit-frame-pointer -march=i686 -pipe -MT debug.o -MD -MP -MF .deps/debug.Tpo -c -o debug.o ../../binutils-2.22/binutils/debug.c
mv -f .deps/debug.Tpo .deps/debug.Po
gcc -s -DHAVE_CONFIG_H -I. -I../../binutils-2.22/binutils -I. -I../../binutils-2.22/binutils -I../bfd -I../../binutils-2.22/binutils/../bfd -I../../binutils-2.22/binutils/../include -DLOCALEDIR="\"/usr/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -Os -fomit-frame-pointer -march=i686 -pipe -MT stabs.o -MD -MP -MF .deps/stabs.Tpo -c -o stabs.o ../../binutils-2.22/binutils/stabs.c
../../binutils-2.22/binutils/stabs.c: In function 'parse_stab_type':
../../binutils-2.22/binutils/stabs.c:2797:57: error: 'physname' may be used uninitialized in this function [-Werror=maybe-uninitialized]
../../binutils-2.22/binutils/stabs.c:2596:16: note: 'physname' was declared here
cc1: all warnings being treated as errors
make[4]: *** [stabs.o] Error 1
make[4]: Leaving directory `/sources/binutils-build/binutils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/sources/binutils-build/binutils'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/sources/binutils-build/binutils'
make[1]: *** [all-binutils] Error 2
make[1]: Leaving directory `/sources/binutils-build'
make: *** [all] Error 2
root:/sources/binutils-build#
what is happened? how fix these errors?