[ECOS] error while linking : flash problem
Andrew Lunn
andrew@lunn.ch
Fri Aug 26 09:41:00 GMT 2005
On Fri, Aug 26, 2005 at 04:07:47PM +0700, Indra Antonius Simalango wrote:
>
> Dear all,
>
> I've built my eCos for pc_rltk8139 target with all package. While linking
> my application, I've some error messages like this :
> ---------------------------------------------------------------------------------
> [root@pinguin eFax]# gcc -o efax efax.o efaxlib.o efaxio.o efaxos.o
> efaxmsg.o -L /home/indra/eCos/install/lib/ -Ttarget.ld -nostdlib
> /home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_init+0x21):
> In function `flash_init':
> /home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:92:
> undefined reference to `flash_hwr_init'
> /home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_dev_query+0x7):
> In function `flash_dev_query':
> /home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:118:
> undefined reference to `flash_query'
> /home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_erase+0x25):
> In function `flash_erase':
> /home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:179:
> undefined reference to `flash_erase_block'
> /home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_erase+0x90):/home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:216:
> undefined reference to `flash_hwr_map_error'
> /home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_program+0x31):
> In function `flash_program':
> /home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:265:
> undefined reference to `flash_program_buf'
> /home/indra/eCos/install/lib//libtarget.a(io_flash_flash.o)(.text.flash_program+0x99):/home/indra/anoncvs/ecos/packages/io/flash/current/src/flash.c:287:
> undefined reference to `flash_hwr_map_error'
> collect2: ld returned 1 exit status
> ----------------------------------------------------------------------------------
>
> If I don't want to use any flash component, which part of my file ecos.ecc
> should I modify?
ecosconfig remove flash
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list