public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Build Error for new Hardware
@ 2005-07-01 18:37 Raghu Bulusu
  2005-07-01 18:46 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: Raghu Bulusu @ 2005-07-01 18:37 UTC (permalink / raw)
  To: 'ecos-discuss@sources.redhat.com'

Hi,

   I am getting the following error when I am building ecos for a custom
hardware board with SH7750 on it. What could be possibly wrong


make[1]: Leaving directory
`/ecos-c/MDP/ecos/sh7750/mdp7750_build/hal/common/current'
/ecos-c/MDP/ecos/sh7750/mdp7750_install/lib/libtarget.a(redboot_main.o): In
function `valid_address':
make: Leaving directory `/ecos-c/MDP/ecos/sh7750/mdp7750_build'
/ecos-c/cygwin/opt/ecos/ecos-cvs/packages/redboot/current/src/main.c:160:
multiple definition of `_cyg_start'
src/stubrom/gdb_module.o:/ecos-c/cygwin/opt/ecos/ecos-cvs/packages/hal/commo
n/current/src/stubrom/stubrom.c:57: first defined here
/opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.2.1/../../../../sh-elf
/bin/ld: Warning: size of symbol `_cyg_start' changed from 24 to 656 in
/ecos-c/MDP/ecos/sh7750/mdp7750_install/lib/libtarget.a(redboot_main.o)
/opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.2.1/../../../../sh-elf
/bin/ld: address 0x8c00538 of
/ecos-c/MDP/ecos/sh7750/mdp7750_install/bin/gdb_module.img section .data is
not within region ram
/opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.2.1/../../../../sh-elf
/bin/ld: address 0x8c05794 of
/ecos-c/MDP/ecos/sh7750/mdp7750_install/bin/gdb_module.img section .bss is
not within region ram
collect2: ld returned 1 exit status
make[1]: *** [/ecos-c/MDP/ecos/sh7750/mdp7750_install/bin/gdb_module.img]
Error 1
make: *** [build] Error 2


This is what my ..rom.ldi file look like

MEMORY

{

    ram : ORIGIN = 0x8c000000, LENGTH = 0x04000000

    rom : ORIGIN = 0x80000000, LENGTH = 0x01000000

}



SECTIONS

{

    SECTIONS_BEGIN

    SECTION_vectors (rom, 0x80000000, LMA_EQ_VMA)

    SECTION_text (rom, ALIGN (0x4), LMA_EQ_VMA)

    SECTION_fini (rom, ALIGN (0x4), LMA_EQ_VMA)

    SECTION_rodata1 (rom, ALIGN (0x8), LMA_EQ_VMA)

    SECTION_rodata (rom, ALIGN (0x8), LMA_EQ_VMA)

    SECTION_fixup (rom, ALIGN (0x4), LMA_EQ_VMA)

    SECTION_gcc_except_table (rom, ALIGN (0x1), LMA_EQ_VMA)

    SECTION_data (ram, 0x8c000000, FOLLOWING (.gcc_except_table))

    SECTION_bss (ram, ALIGN (0x10), LMA_EQ_VMA)

    CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);

    SECTIONS_END

}

I observed that the address pointed by error is no where in the region of
ram or rom.Any help would be great.

Thanks,
Raghu 

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Build Error for new Hardware
  2005-07-01 18:37 [ECOS] Build Error for new Hardware Raghu Bulusu
@ 2005-07-01 18:46 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2005-07-01 18:46 UTC (permalink / raw)
  To: Raghu Bulusu; +Cc: 'ecos-discuss@sources.redhat.com'

On Fri, Jul 01, 2005 at 02:37:47PM -0400, Raghu Bulusu wrote:
> Hi,
> 
>    I am getting the following error when I am building ecos for a custom
> hardware board with SH7750 on it. What could be possibly wrong
> 
> 
> make[1]: Leaving directory
> `/ecos-c/MDP/ecos/sh7750/mdp7750_build/hal/common/current'
> /ecos-c/MDP/ecos/sh7750/mdp7750_install/lib/libtarget.a(redboot_main.o): In
> function `valid_address':
> make: Leaving directory `/ecos-c/MDP/ecos/sh7750/mdp7750_build'
> /ecos-c/cygwin/opt/ecos/ecos-cvs/packages/redboot/current/src/main.c:160:
> multiple definition of `_cyg_start'
> src/stubrom/gdb_module.o:/ecos-c/cygwin/opt/ecos/ecos-cvs/packages/hal/commo
> n/current/src/stubrom/stubrom.c:57: first defined here

You somehow have both redboot and stubrom built.

My guess is you changed the template in an existing work tree. This
does not work. Start again from an empty directory.

        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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-01 18:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-01 18:37 [ECOS] Build Error for new Hardware Raghu Bulusu
2005-07-01 18:46 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).