Error occurred while building GCC 4.9
- 3 months 3 days ago
I tried to build GCC 4.9 on Alpine Linux. Before that I have installed all the required packages from apk tool. I have installed alpine-sdk, m4, libelf, automake, autoconf, perl. Whine building GCC I got this error
cfns.gperf:101:1: error: 'const char* libc_name_p(const char*, unsigned int)' redeclared inline with 'gnu_inline'
After googling the error what I found is, this error is occurred due to trying build GCC 4 with GCC 5. As many forums said, we must use GCC 4 or older version to build GCC 4.9. I have tried many ways to find GCC 4 or older version to install on alpine. But I couldn't find any. I would be really grateful if someone could suggest me a way to build GCC 4.9 on alpine linux.
Thanks in advance.