Page 1 of 1

Cross-compiler binutils make fail with cygwin on win 8.1 x64

Posted: Thu Jul 30, 2015 12:15 pm
by tadryanom
-> Compilation Error:

gcc -DHAVE_CONFIG_H -I. -I/cygdrive/d/TulioAdriano/Projetos/sources/binutils-2.9/gas -I. -D_GNU_SOURCE -I. -I/cygdrive/d/TulioAdriano/Projetos/sources/binutils-2.9/gas -I../bfd -I/cygdrive/d/TulioAdriano/Projetos/sources/binutils-2.9/gas/config -I/cygdrive/d/TulioAdriano/Projetos/sources/binutils-2.9/gas/../include -I/cygdrive/d/TulioAdriano/Projetos/sources/binutils-2.9/gas/.. -I/cygdrive/d/TulioAdriano/Projetos/sources/binutils-2.9/gas/../bfd -g -O2 -c /cygdrive/d/TulioAdriano/Projetos/sources/binutils-2.9/gas/app.c
In file included from ./targ-cpu.h:1:0,
from /cygdrive/d/TulioAdriano/Projetos/sources/binutils-2.9/gas/config/obj-elf.h:61,
from ./obj-format.h:1,
from /cygdrive/d/TulioAdriano/Projetos/sources/binutils-2.9/gas/config/te-generic.h:19,
from ./targ-env.h:1,
from /cygdrive/d/TulioAdriano/Projetos/sources/binutils-2.9/gas/as.h:599,
from /cygdrive/d/TulioAdriano/Projetos/sources/binutils-2.9/gas/app.c:29:
/cygdrive/d/TulioAdriano/Projetos/sources/binutils-2.9/gas/config/tc-i386.h:396:32: error: array type has incomplete element type
extern const struct relax_type md_relax_table[];
^
Makefile:1291: recipe for target 'app.o' failed
make[1]: * [app.o] Error 1
make[1]: Leaving directory '/home/TulioAdriano/opt/cross/binutils-build/gas'
Makefile:1084: recipe for target 'all-gas' failed
make: * [all-gas] Error 2

-> System/Environment:

Processor: Intel(R) Pentium(R) CPU P6200 @ 2.13GHz
RAM: 4GB
Operating System: Microsoft(R) Windows(R) 8.1 Pro 64 bits
Cygwin setup version: 2.871 (64 bits)

Compiler:

$ gcc --version
gcc (GCC) 4.9.3

$ ld --version
GNU ld (GNU Binutils) 2.25

Re: Cross-compiler binutils make fail with cygwin on win 8.1

Posted: Thu Jul 30, 2015 12:30 pm
by Octocontrabass
Why are you trying to compile binutils from 1998?

You probably want binutils-2.25, which is the latest version.

Re: Cross-compiler binutils make fail with cygwin on win 8.1

Posted: Thu Jul 30, 2015 1:28 pm
by tadryanom
Oops. Sorry, it was a mistake! :oops: