pulp-platform / ri5cy_gnu_toolchain

22 stars 23 forks source link

fix issue when compiling toolchain with gcc 6.x #4

Open fractalclone opened 7 years ago

fractalclone commented 7 years ago

compiling riscv gcc 5.2.0 with gcc 6.x will result in the following error:

cfns.gperf:101:1: error: ‘const char* libc_namep(const char, unsigned int)’ redeclared inline with ‘gnuinline’ attribute cfns.gperf:26:14: note: ‘const char libc_namep(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

Mainline gcc has already a patch for it. Apply the patch to toolchain/patches/gcc

Signed-off-by: Jean-Paul Etienne fractalclone@gmail.com