This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 4.9.1 Status Report (2014-07-10)
- From: "Franzi Edo." <edo dot franzi at ukos dot ch>
- To: Chris Johns <chrisj at rtems dot org>
- Cc: James Greenhalgh <james dot greenhalgh at arm dot com>, Joel Sherrill <joel dot sherrill at oarcorp dot com>, "pinskia at gmail dot com" <pinskia at gmail dot com>, Ian Lance Taylor <iant at google dot com>, Jakub Jelinek <jakub at redhat dot com>, GCC Development <gcc at gcc dot gnu dot org>
- Date: Mon, 14 Jul 2014 13:36:36 +0200
- Subject: Re: GCC 4.9.1 Status Report (2014-07-10)
- Authentication-results: sourceware.org; auth=none
- References: <20140710103011 dot GE31640 at tucnak dot redhat dot com> <4E484367-BB51-4E47-A5C6-7A71C9A5FC83 at ukos dot ch> <CAKOQZ8yFgUf092b9-F+Hf_ZTZhiNdxQGJJ8znLPxVCw9MhFshg at mail dot gmail dot com> <24B0C232-909F-40BD-BD3A-32DA133E4035 at gmail dot com> <53BF13CB dot 7080001 at oarcorp dot com> <08A99D9D-6C8B-496A-9470-FC259BF95EE5 at ukos dot ch> <20140712094119 dot GA31278 at arm dot com> <C8BDB9A1-2F5C-4FA9-B86A-893F5B622624 at ukos dot ch> <53C34820 dot 1060704 at rtems dot org>
Hi Chris, no way!
It is like if gcc do not take in account of my BUILD_CFLAGS="-g -O2 -fbracket-depth=1024“
I even tried N=2048!
/opt/uKOS/Packages/gcc-4.9.1/gcc/config/arm/neon.md:3486:10917: fatal error:
bracket nesting level exceeded maximum of 256
/opt/uKOS/Packages/gcc-4.9.1/gcc/config/arm/neon.md:3486:10917: note: use
-fbracket-depth=N to increase maximum nesting level
32 warnings and 1 error generated.
make[1]: *** [insn-attrtab.o] Error 1
make: *** [all-gcc] Error 2
Error building gcc pass 1
here is my script for building gcc …
cd ${PATH_TOOLS_GCC}/Packages
echo "Start building:" > gcc_pass1.txt
date >> gcc_pass1.txt
mkdir -p ${PATH_TOOLS_GCC}/builds/gcc-${GCC_VER}/${MACHINE}/gcc-${GCC_VER}
cd ${PATH_TOOLS_GCC}/builds/gcc-${GCC_VER}/${MACHINE}/gcc-${GCC_VER}
BUILD_CFLAGS="-g -O2 -fbracket-depth=1024" ${PATH_TOOLS_GCC}/Packages/gcc-${GCC_VER}/configure \
--target=${TARGET} \
--includedir=/usr/include \
--prefix=${prefix} \
--enable-multilib \
--disable-werror \
--disable-nls \
--disable-libssp \
${GCC1_CONFIG} || { echo "Error configuring gcc pass 1"; exit 1; }
make all-gcc || { echo "Error building gcc pass 1"; exit 1; }
make install-gcc || { echo "Error installing gcc pass 1"; exit 1; }
cd ${PATH_TOOLS_GCC}/Packages
echo "End building:" >> gcc_pass1.txt
date >> gcc_pass1.txt
mv gcc_pass1.txt gcc_pass1_ready.txt
Edo.
On 14 Jul 2014, at 05:01, Chris Johns <chrisj@rtems.org> wrote:
> On 13/07/2014 3:38 am, Franzi Edo. wrote:
>> Hi James (all),
>> Thank you for all of your suggestions.
>> I tried everything unsuccessfully. Unfortunately, the
>>
>> make CFLAGS="-g -O2 -fbracket-depth=1024”
>> and the
>> make BUILD_CFLAGS="-g -O2 -fbracket-depth=1024”
>> do not solve the problem.
>
> Please add 'BUILD_CFLAGS="-g -O2 -fbracket-depth=1024”' to the configure command line before the configure script is referenced, ie:
>
> $ BUILD_CFLAGS="-g -O2 -fbracket-depth=1024” ../gcc-4.9.0/configure ...
>
> Chris