View previous topic :: View next topic |
Author |
Message |
mitchy_g Guest
|
Posted: Sun Dec 18, 2005 3:26 am Post subject: Linux Binutils installation |
|
|
Hi,
Im trying to compile and install binutils-2.14-turbo-1.0.2 on ubuntu 5.10. Configure runs fine, but during 'make' i get the following error:
Code: |
In file included from ./targ-cpu.h:1,
from ./config/obj-elf.h:42,
from ./obj-format.h:1,
from ./config/te-linux.h:4,
from targ-env.h:1,
from as.h:616,
from app.c:30:
./config/tc-i386.h:516: error: array type has incomplete element type
make[3]: *** [app.o] Error 1
make[3]: Leaving directory `/home/mitch/bladox/binutils-2.14-turbo-1.0.2/gas'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mitch/bladox/binutils-2.14-turbo-1.0.2/gas'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/home/mitch/bladox/binutils-2.14-turbo-1.0.2/gas'
make: *** [all-gas] Error 2
|
Am i doing anything wrong here? do i need to install some other packages?
Thanks for you help |
|
Back to top |
|
 |
pz Guest
|
Posted: Sun Dec 18, 2005 9:15 am Post subject: |
|
|
Are you sure the configuration was for AVR target? I.e. ./configure --target=avr ?
It doesn't make sense that build touches "./config/tc-i386.h" - this is for i386 platform. Something wrong went with ./configure. |
|
Back to top |
|
 |
mitchy_g Guest
|
Posted: Mon Dec 19, 2005 1:07 am Post subject: |
|
|
Thanks for the reply, i re-configured with ./configure --target=avr and got this error. As you said it still seems to be looking at i386 stuff, do i need to use make with a different command?
Code: | bucomm.o: In function `make_tempname':
/home/mitch/bladox/binutils-2.14-turbo-1.0.2/binutils/bucomm.c:441: warning: the use of `mktemp' is dangerous, better use `mkstemp'
../opcodes/.libs/libopcodes.a(disassemble.o): In function `disassembler':
./disassemble.c:86: undefined reference to `print_insn_i386'
collect2: ld returned 1 exit status
make[3]: *** [objdump] Error 1
make[3]: Leaving directory `/home/mitch/bladox/binutils-2.14-turbo-1.0.2/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mitch/bladox/binutils-2.14-turbo-1.0.2/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/home/mitch/bladox/binutils-2.14-turbo-1.0.2/binutils'
make: *** [all-binutils] Error 2
|
Thanks again
Mitch |
|
Back to top |
|
 |
pz Guest
|
Posted: Tue Dec 20, 2005 11:57 am Post subject: |
|
|
Strange, very strange. Must be something wrong with autoconf in ubuntu. Could you delete whole dir and unter/configure it again? (configure leaves some cache so maybe there is a relict). |
|
Back to top |
|
 |
mitchy_g Guest
|
Posted: Tue Dec 20, 2005 1:17 pm Post subject: |
|
|
Thanks pz
Installation is fine now! As you said configure must leave cache
 |
|
Back to top |
|
 |
|