My platform is Debian x64, the posted tools are for x86 hense I follow the procedure to build myself the toolchain for x64.

Everything goes well and I can complete build gdb and binutils, when building gcc the “make all-gcc” runs for a long time and finally stops at this:

In file included from ../../../source/gcc-4.9.2-20150423/gcc/cp/except.c:1013:0:
cfns.gperf: In function ‘const char* libc_name_p(const char*, unsigned int)’:
cfns.gperf:101:1: error: ‘const char* libc_name_p(const char*, unsigned int)’ redeclared inline with ‘gnu_inline’ attribute
cfns.gperf:26:14: note: ‘const char* libc_name_p(const char*, unsigned int)’ previously declared here
cfns.gperf: At global scope:
cfns.gperf:26:14: warning: inline function ‘const char* libc_name_p(const char*, unsigned int)’ used but never defined
Makefile:1060: recipe for target ‘cp/except.o’ failed
make[1]: *** [cp/except.o] Error 1
make[1]: Leaving directory ‘/home/eddie/Downloads/rl78/build/gcc/gcc’
Makefile:3935: recipe for target ‘all-gcc’ failed
make: *** [all-gcc] Error 2

This is the source code for toolchain for RL78 from gcc-4.9.2-20150423_rl78_v15.02.tar.bz2

However exactly the same problem happens when building the toolchain for RX from gcc-4.8.4_rx_v15.02.tar.bz2.

I traced the issue to cfns.h and took the liberty to change a couple lines to just let the build process continue:

#ifdef __GNUC__
__attribute__ ((__gnu_inline__))
const char * libc_name_p (const char *, unsigned int);

Now the build continues for a long time but ultimately fails with another error (this time the error is different for RX than for  RL78), at this point I rather not introduce more changes to I’m reporting it.

Note: I can use the x86 pre-built toolchains -in fact I’m using them – but I thought it’d be important to bring this matter to your attention so you can take a look and fix the conflict in next builds.


manisimov 回答済