You are not logged in.

#1 2016-10-01 21:08:43

ilya101010
Member
Registered: 2016-09-30
Posts: 2

[SOLVED] Cannot compile i686-elf-gcc

Trying to get i686-elf-gcc cross-compiler working. Something went wrong during compilation.

In file included from /tmp/packerbuild-1000/i686-elf-gcc/i686-elf-gcc/src/gcc-4.9.2/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
make[1]: *** [Makefile:1058: cp/except.o] Error 1
make[1]: Leaving directory '/tmp/packerbuild-1000/i686-elf-gcc/i686-elf-gcc/src/gcc-build/gcc'
make: *** [Makefile:3979: all-gcc] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
The build failed.

How do I solve it?

Last edited by ilya101010 (2016-10-04 19:30:34)

Offline

#2 2016-10-02 14:39:17

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [SOLVED] Cannot compile i686-elf-gcc

Those erors are probably due to arch using gcc 6.2 now.

Do you need the 4.9.2 version of i686-elf-gcc or will a later version also work ?

If the former, try installing gcc4.9 and building  against that.
Incase any version will do, try editing the PKGBUILD to build latest version (similar to what rileyphone posted on i686-elf-gcc aur page) .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2016-10-02 23:16:13

basica
Member
From: Australia
Registered: 2012-10-31
Posts: 217

Re: [SOLVED] Cannot compile i686-elf-gcc

Lone Wolf is right, the inline reference errors are due to the changes made in the v6 branch (encountered them myself). You *may* be able to get around them by removing those references from the header files in question, but I'm not knowledgeable enough to say whether or not that might result in some unwanted side effects.

Offline

#4 2016-10-04 19:31:03

ilya101010
Member
Registered: 2016-09-30
Posts: 2

Re: [SOLVED] Cannot compile i686-elf-gcc

Lone_Wolf wrote:

Those erors are probably due to arch using gcc 6.2 now.

Do you need the 4.9.2 version of i686-elf-gcc or will a later version also work ?

If the former, try installing gcc4.9 and building  against that.
Incase any version will do, try editing the PKGBUILD to build latest version (similar to what rileyphone posted on i686-elf-gcc aur page) .

Thank you, it worked!

Offline

Board footer

Powered by FluxBB