This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Link error when building default redboot ecm for ipaq


On Mon, 2001-09-10 at 23:34, wyeepeng@dso.org.sg wrote:
> I am using the GUI configtool 2.03. I am not very sure what u mean by "clean" 
> build directory. Whenever I select "new" from "file" menu, it will give me a 
> sort of default config such as the sh processor for some board. In the end, I 
> need to open a template (compaq ipaq pocket pc). Then, I will import the 
> redboot_rom.ecm on top of the ipaq template. Did I do something wrong or was 
> there a bug in the source or appln?
> 

Those are the correct steps.  However, you should not do anything else 
in between executing them.  That is, execute exactly:
  File->New
  Build->Templates
    Choose iPAQ, redboot
  
I just tried this using the latest anonCVS sources and the Linux 
ConfigTool (version 2.03) and it worked perfectly.

> Another thing. How can I be absolutely sure that the source codes that I 
> downloaded are correct and not corrupted. There isn't md5 hashes for the 
> package. Or does the cvs client performs integrity checks for me?
> 

I'm not sure about this one.  Since we deliver eCos via CVS, having MD5
hashes for every file would be somewhat honerous.  I'm pretty sure that
CVS is doing some level of checking, but I could be wrong.

> Regards
> Yee Peng
> 
> Quoting Gary Thomas <gthomas@redhat.com>:
> 
> > On Mon, 2001-09-10 at 14:26, wyeepeng@dso.org.sg wrote:
> > > Hi,
> > > I downloaded the ecos cvs source and imported the redboot_ROM.ecm from
> > the
> > > hal/arm.... directory. Then, I build the library without any
> > modification but I
> > > encountered the following error. It seems that there is a redefinition
> > of the
> > > function gets. I am not very sure how to resolve this. Can anyone
> > help? Thanks
> > > in advance.
> > > 
> > 
> > You _must_ have done something beyond what you've said.  RedBoot does
> > not use the stdio package (which is where that error is coming from).
> > 
> > Your steps should be (in a _clean_ directory):
> >   % ecosconfig new ipaq redboot
> >   % ecosconfig import
> > ${ECOS_REPOSITORY}/hal/arm/sa11x0/ipaq/current/misc/redboot_ROM.ecm
> >   % ecosconfig tree
> >   % make
> > 
> > If you're using the ConfigTool, make sure you start from a clean build
> > directory and then choose the 'redboot' template.
> > 
> > >
> > 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > ......
> > >
> > /fat/tinyos/ecos/configtool/configtool-2.03/./ipaq_def_install/lib/libtarget.a
> (redboot_io.o):
> > > In function `verify_action':
> > > make: Leaving directory
> > > `/fat/tinyos/ecos/configtool/configtool-2.03/ipaq_def_build'
> > >
> > /fat/tinyos/ecos/repository/ecos/packages/redboot/current/src/io.c:444:
> > multiple
> > > definition of `gets'
> > >
> > /fat/tinyos/ecos/configtool/configtool-2.03/./ipaq_def_install/lib/libtarget.a
> (language_c_libc_stdio_gets.o):/fat/tinyos/ecos/repository/ecos/packages/languag
> e/c/libc/stdio/current/src/input/gets.cxx:67:
> > > first defined here
> > > /skiff/local/arm-linux/bin/ld: Warning: size of symbol `gets' changed
> > from 272
> > > to 692 in redboot_io.o
> > > /skiff/local/arm-linux/bin/ld: warning: no memory region specified for
> > section
> > > `.got.plt'
> > > /skiff/local/arm-linux/bin/ld: warning: no memory region specified for
> > section
> > > `.got'
> > > collect2: ld returned 1 exit status
> > > make[1]: ***
> > >
> > [/fat/tinyos/ecos/configtool/configtool-
> 2.03/./ipaq_def_install/bin/redboot.elf]
> > > Error 1
> > > make: *** [build] Error 2
> > >
> > 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > 
> > > Regards
> > > Yee Peng
> > 
> > 
> > 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]