[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
i386 bsp issues
- Date: Thu, 2 Aug 2001 06:02:07 -0500 (CDT)
- From: lange92 at 2067.resnet.uni.edu (lange92 at 2067.resnet.uni.edu)
- Subject: i386 bsp issues
On 2 Aug 2001, Ralf Corsepius wrote:
> Am 02 Aug 2001 04:04:38 -0500 schrieb lange92 at 2067.resnet.uni.edu:
> > On Thu, 2 Aug 2001, Joel Sherrill wrote:
> > > > ../rtems-4.5.0/configure --target=i386-rtems --enable-posix
> > > > --enable-rtemsbsp="pc386"
> > > > --prefix=/users/lange92/illinoiscentral/build-i386-coff-rtems
> > > >
> > > > compiles further now, but then it bombs out with the following errors:
> > > > ../../../../../../pc386/lib/librtemsall.a(bootcard.o): In function `boot_card':
> > > > bootcard.c:108: undefined reference to `bsp_start'
> > > Look in startup/Makefile* and remove the -DUSE_INIT_FINI
> > This error still remains after making the change. Any ideas on this one?
> Could it be possible that you are mixing coff and elf?
> --target=i386-rtems => elf
> --prefix=../build-i386-coff-rtems ????
I should have examined the included text more closely. Joel had suggested
that, so I built i386-rtemscoff:
../rtems-4.5.0/configure --target=i386-rtemscoff --enable-posix
Currently I'm sitting on about 6 different build directories, and each one
complains about the line "bsp_start();" in bootcard.c:108.
I tried it on rtems-4.0.0:
../rtems-4.0.0/configure --target=i386-rtemscoff --enable-posix
rtems-4.0.0 compiles for a while, then fails:
In file included from: ../../../../../../rtems-4.0.0/c/src/lib/libnetworking/libc/gethostbydns.c:78:
conflicting types for `gethostname'
previous declaration of `gethostname'
In function `gethostanswer':
warning: implicit declaration of function `strcasecomp'
warning: implicit declaration of function `bcopy'
In function `_gethostbydnsaddr':
warning: implicit declaration of function `bcmp'
make: *** [o-pc386/gethostbydns.o] Error 1
Actually, I'm pretty sure I'm mixing COFF and ELF here--I was attempting
an rtems-4.0.0 build after the bsp_specs file appeared to be something
similar to the changes I made to 4.5.0 to make it work COFF-style.
My understanding is that i386 is ELF, but Joel pointed out that I need
COFF for gnat-3.12p and gcc-2.8.1.
But I think I got way off on a tangent here. I'm trying to build
rtems-4.5.0; I did the 4.0.0 build only as a quick test.
But the error that I'm staring at is:
../../../../../../pc386/lib/librtemsall.a(bootcard.o): In function `boot_card':
bootcard.c:108: undefined reference to `bsp_start'
Logically, I don't see how any build could succeed here, because there are
no bspstart.h files! Thus there cannot be a "#include <bspstart.h>" or
anything similar... But I don't claim to understand how this all works.
On the other hand, if the bootcard.c can see symbols from bspstart.c
somehow, then perhaps it's the issue about how the compiler is
descriminating between `bsp_start();' and the weak alias `void
bsp_start ( void )' (which I find in i386/pc386/startup/bspstart.c:215).
But again, I'm only guessing. If someone knows the real problem, I'd be
happy to hear it.