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

All about the OSDev Wiki. Discussions about the organization and general structure of articles and how to use the wiki. Request changes here if you don't know how to use the wiki.
Post Reply
tadryanom
Posts: 2
Joined: Thu Jul 30, 2015 12:00 pm

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

Post 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
Last edited by tadryanom on Thu Jul 30, 2015 12:38 pm, edited 1 time in total.
Octocontrabass
Member
Member
Posts: 5501
Joined: Mon Mar 25, 2013 7:01 pm

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

Post by Octocontrabass »

Why are you trying to compile binutils from 1998?

You probably want binutils-2.25, which is the latest version.
tadryanom
Posts: 2
Joined: Thu Jul 30, 2015 12:00 pm

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

Post by tadryanom »

Oops. Sorry, it was a mistake! :oops:
Post Reply