Error occurred while building GCC 4.9

4 posts / 0 new
Last post
#1 Sat, 2017-04-08 20:46
asgeek
  • asgeek's picture
  • Offline
  • Last seen: 11 months 2 weeks ago
  • Joined: 2017-04-08

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.

Wed, 2017-04-12 00:39
mmix
  • mmix's picture
  • Offline
  • Last seen: 3 weeks 2 days ago
  • Joined: 2016-06-07
Tue, 2017-04-18 19:08 (Reply to #2)
asgeek
  • asgeek's picture
  • Offline
  • Last seen: 11 months 2 weeks ago
  • Joined: 2017-04-08

@mmix Thank you for the answer! I went through the links. I am not an expert on this subject. Could you please explain little more about the method you have followed to build GCC 4.9.

Thanks in advance.

Wed, 2017-04-12 07:01
tinalloyd
  • tinalloyd's picture
  • Offline
  • Last seen: 11 months 3 weeks ago
  • Joined: 2017-04-12

Thankyou for information.

Log in or register to post comments