Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

Error in creating the final executable

Hi,

I am trying to build my output file after linking all the objs and linking it with my other .a files and the script target.ld...

The linking is SUCCESS, its generating the output XXX also. But When I m trying to run/debug in NIOSII IDE using NIOS II Instruction simulator, I am getting the following error message.

Fatal Error! : ELF file XXX is not an executable file (option -f<filename>)

What might be the problem? Can anyone help?

Akhil

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    That problem I solved by masking my own makefile with Altera generated makefile. So first it will build my XXX, then it will build the ELF file. So that problem with output file format has gone.

    Now what I am doing is I copied the main function of my APP.. and pasted it into the sample Hello eCos World Application and edited the target.ld file with 2 more .a files of my Application and linking. So now the output format is correct. The control is coming to my main function. But when I call any function from the main function.. After 1 or 2 steps its terminating. Now the msg I am getting is

    [eth_drv_ioctl] Warning: Driver can&#39;t set multi-cast mode

    Thread[cyg_net_init] Init: mbinit(0x00000000)

    [cyg_net_init] Init: cyg_net_init_devs(0x00000000)

    Init device &#39;lan91c111_eth0&#39;

    [cyg_net_init] Init: loopattach(0x00000000)

    [cyg_net_init] Init: ifinit(0x00000000)

    [cyg_net_init] Init: domaininit(0x00000000)

    [cyg_net_init] Init: cyg_net_add_domain(0x010d3f20)

    New domain internet at 0x00000000

    [cyg_net_init] Init: cyg_net_add_domain(0x010d39c8)

    New domain route at 0x00000000

    [cyg_net_init] Init: call_route_init(0x00000000)

    [cyg_net_init] Done

    [eth_drv_ioctl] Warning: Driver can&#39;t set multi-cast mode

    [eth_drv_ioctl] Warning: Driver can&#39;t set multi-cast mode

    BOOTP/DHCP failed on eth0

    So again, I am kind of stucked... http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif