Error when building "Toolchain 4.9-2015-q3-update"

Asked by Saeed Molaie on 2018-06-12

I get the following error when building Toolchain 4.9-2015-q3-update (

Excerpt of the error log:
/home/saeed/toolchain/gcc-arm-none-eabi-4_9-2015q3-20150921/src/binutils/ld/mri.c: In function 'mri_draw_tree':
/home/saeed/toolchain/gcc-arm-none-eabi-4_9-2015q3-20150921/src/binutils/ld/mri.c:207:43: error: 'NAME' undeclared (first use in this function)
      base = p->vma ? p->vma : exp_nameop (NAME, ".");
/home/saeed/toolchain/gcc-arm-none-eabi-4_9-2015q3-20150921/src/binutils/ld/mri.c:207:43: note: each undeclared identifier is reported only once for each function it appears in
mv -f .deps/aarch64.Tpo .deps/aarch64.Po
Makefile:1488: recipe for target 'mri.o' failed
make[4]: *** [mri.o] Error 1
make[4]: *** Waiting for unfinished jobs....

usr/lib ../bfd/.libs/libbfd.a -ldl -lz ../libiberty/libiberty.a -lm
mv -f .deps/ldemul.Tpo .deps/ldemul.Po
Makefile:1488: recipe for target 'ldlang.o' failed
make[4]: *** [ldlang.o] Error 1
mv -f .deps/libldtestplug_la-testplug.Tpo .deps/libldtestplug_la-testplug.Plo
mv -f .deps/ldmain.Tpo .deps/ldmain.Po
mv -f .deps/lexsup.Tpo .deps/lexsup.Po
make[4]: Leaving directory '/home/saeed/toolchain/gcc-arm-none-eabi-4_9-2015q3-20150921/build-native/binutils/ld'
Makefile:1713: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/saeed/toolchain/gcc-arm-none-eabi-4_9-2015q3-20150921/build-native/binutils/ld'
Makefile:952: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/saeed/toolchain/gcc-arm-none-eabi-4_9-2015q3-20150921/build-native/binutils/ld'
Makefile:7103: recipe for target 'all-ld' failed
make[1]: *** [all-ld] Error 2
make[4]: Leaving directory '/home/saeed/toolchain/gcc-arm-none-eabi-4_9-2015q3-20150921/build-native/binutils/gprof'
make[3]: Leaving directory '/home/saeed/toolchain/gcc-arm-none-eabi-4_9-2015q3-20150921/build-native/binutils/gprof'
make[2]: Leaving directory '/home/saeed/toolchain/gcc-arm-none-eabi-4_9-2015q3-20150921/build-native/binutils/gprof'
make[1]: Leaving directory '/home/saeed/toolchain/gcc-arm-none-eabi-4_9-2015q3-20150921/build-native/binutils'
Makefile:829: recipe for target 'all' failed
make: *** [all] Error 2


There are many more errors complaining about variables being undeclared similar to above, but I just posted the first instance of them as an example. Prior to this error, I was getting complaints about makeinfo/textinfo being missing. After installing makeinfo I now see the errors I posted above.

Also, I've applied this patch ( prior to building the toolchain using the "How-to-build-toolchain.pdf (md5)" instruction posted in the first link.

Question information

English Edit question
GNU Arm Embedded Toolchain Edit question
No assignee Edit question
Last query:
Last reply:
Tejas Belagod (belagod-tejas) said : #1


We don't support this version of the toolchain anymore. The currently supported version is 7-2017-q4-major. Please update to this version from


Can you help with this problem?

Provide an answer of your own, or ask Saeed Molaie for more information if necessary.

To post a message you must log in.