Compilation Problems

Vivek Vaid vaid at me.iitb.ac.in
Wed Feb 27 11:59:27 UTC 2002


Vasudev Mulchandani <vasu at tataelxsi.co.in> wrote:
> % ../rtems-4.5.0/c/configure --target=i386-rtems
> --enable-rtemsbsp=i386ex --prefix=/opt/rtems

i wonder why you need i386ex BSP. that board is not common in India.
first try making pc386 bsp. as, that will run on any pc386 or
higher. i386ex is vendor specific bsp. (read its README)

infact u can skip --enable-rtemsbsp parameter, then it will configure for
all bsps in 386 category. and then u can specify the bsp while
issuing command make.
a userfriendly line appears at end of configure telling how to make for a
specific bsp. or read README.configure.

anyway, whatever you do, try to find the "c" directory in
build/some_dir/c
and run make from there and try. (try this if making from build/ doesnt
work)

regards,
Vivek
-- 
============================================================

"To develop working ideas efficiently, I try to fail as fast
 as I can."
						R. Feynman
============================================================



> 
> This succeeded but then I found a strange thing.. the build directory
> did not have a directory like build/i386-rtems/c as in your case..
> 
> Then I went ahead with make and this is what I get
> 
> ---------------------------------------------------------------------------------
> Making all in make
> make[1]: Entering directory `/home/rtems/build/make'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/rtems/build/make'
> Making all in .
> make[1]: Entering directory `/home/rtems/build'
> make[1]: Nothing to be done for `all-am'.
> make[1]: Leaving directory `/home/rtems/build'
> Making all in i386ex
> make[1]: Entering directory `/home/rtems/build/i386ex'
> Making all in make
> make[2]: Entering directory `/home/rtems/build/i386ex/make'
> Makefile:515: ../../.././c/i386ex/make/custom/i386ex.cfg: No such file
> or direcy
> make[2]: *** No rule to make target
> `../../.././c/i386ex/make/custom/i386ex.cfg.
> make[2]: Leaving directory `/home/rtems/build/i386ex/make'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/rtems/build/i386ex'
> make: *** [all-recursive] Error 1
> ---------------------------------------------------------------------------------
> 
> I suspect, I have missed out on some installation...
> 
> Vasu
> Vivek Vaid wrote:
> > 
> > On Tue, 26 Feb 2002, Vasudev Mulchandani wrote:
> > > Hello !
> > >
> > > I am trying to build rtems and facing some compilation problems
> > >
> > > Host: Solaris 8.0 on sparc
> > > Target: i386
> > >
> > > my directory structure looks like
> > >
> > > % ls
> > > build/  rtems-4.5.0/
> > >
> > > % cd build
> > > % ../rtems-4.5.0/c/configure --target=i386-rtems
> > > --enable-rtemsbsp=i386ex --prefix=opt
> >                                 ^^^^^^^^^^
> > the documentation says --prefix=/opt/rtems
> > I am a newbie. but it worked this way on my redhat 7.2 system
> > 
> > if it still doesnt work then try running make from inside
> > build/i386-rtems/c
> > 
> > 'make' didnt work for me once from build/ and it worked fine from
> > build/i386-rtems/c
> > and i had posted this as query earlier
> > 
> > later i found the cause was my custom-recompiled kernel. it works all fine
> > with redhat's original kernel. i dont know the reason.
> > 
> > >
> > > The configuration is succesful.
> > > % make all
> > >
> > > This leads to an error
> > > --------------------------------------------------------------------------------------------
> > > removing the earlier capture..
> > > checking target's objcopy... (cached) /opt/rtems/bin/i386-rtems-objcopy
> > > checking target's size... (cached) /opt/rtems/bin/i386-rtems-size
> > > checking target's strip... (cached) /opt/rtems/i386-rtems/bin/strip
> > > checking for make/custom/i386ex.cfg... yes
> > > checking for RTEMS_CPU_MODEL...
> > > ../../../../../rtems-4.5.0/c/src/lib/libcpu/i386/configure:
> > > ../../../../../c/i386ex/make/i386ex.cache: not found
> > > configure: error:
> > > ../../../../../rtems-4.5.0/c/src/lib/libcpu/i386/configure failed for
> > > i386
> > > configure: error: ../../../../rtems-4.5.0/c/src/lib/libcpu/configure
> > > failed for libcpu
> > > configure: error: ../../../rtems-4.5.0/c/src/lib/configure failed for
> > > lib
> > > make[1]: *** [i386ex] Error 1
> > > make[1]: Leaving directory `/home/rtems/build'
> > > make: *** [all-recursive] Error 1
> > > --------------------------------------------------------------------------------------------
> > >
> > > Have installed all the gnu tools in /opt
> > > % ls /opt/rtems
> > > bin/  include/  lib/   share/
> > > i386-rtems/  info/  man/
> > >
> > > % ls /opt/rtems/bin
> > > cpp*                    i386-rtems-gasp*        i386-rtems-readelf*
> > > gcov*                   i386-rtems-gcc*         i386-rtems-size*
> > > i386-rtems-addr2line*   i386-rtems-ld*          i386-rtems-strings*
> > > i386-rtems-ar*          i386-rtems-nm*          i386-rtems-strip*
> > > i386-rtems-as*          i386-rtems-objcopy*     i386-rtems-unprotoize*
> > > i386-rtems-c++*         i386-rtems-objdump*
> > > i386-rtems-c++filt*     i386-rtems-protoize*
> > > i386-rtems-g++*         i386-rtems-ranlib*
> > >
> > > % ls /opt/rtems/i386-rtems/bin
> > > ar*  as*  gcc*  ld*  nm*  ranlib*  strip*
> > >
> > > Hope I am on the right track !
> > >
> > > HELP !!!
> > >
> > > Vasu
> > >
> > >
> > 
> > regards,
> > Vivek
> > -
> 
> 




More information about the users mailing list