[Tinyos-help] tinyos2.x build error
David
wizzardx at gmail.com
Thu May 29 02:33:08 PDT 2008
Fixed the problem.
I think the problem was that the clean process doesn't clean up all
files created by the build process. So my newer versions of the build
tools had problems with files generated by older versions.
I fixed the problem by running 'git clean -d -f' and trying the build again.
For reference, here is the output of 'git clean -d -f' after running a
build, and then cleaning the source:
=====OUTPUT=====
david at lnxdavid:~/dev/internet/tinyos/tinyos2/git_checkout/tinyos-2.x$
git clean -d -f
Removing tools/Makefile.in
Removing tools/aclocal.m4
Removing tools/autom4te.cache/
Removing tools/config-aux/
Removing tools/configure
Removing tools/platforms/Makefile.in
Removing tools/platforms/mica/Makefile.in
Removing tools/platforms/mica/cc1000-channelgen/Makefile.in
Removing tools/platforms/mica/uisp/Makefile.in
Removing tools/platforms/mica/uisp/aclocal.m4
Removing tools/platforms/mica/uisp/autom4te.cache/
Removing tools/platforms/mica/uisp/config/
Removing tools/platforms/mica/uisp/configure
Removing tools/platforms/mica/uisp/kernel/Makefile
Removing tools/platforms/mica/uisp/kernel/Makefile.in
Removing tools/platforms/mica/uisp/kernel/win32/.deps/
Removing tools/platforms/mica/uisp/kernel/win32/Makefile
Removing tools/platforms/mica/uisp/kernel/win32/Makefile.in
Removing tools/platforms/mica/uisp/src/Makefile.in
Removing tools/platforms/mica/uisp/src/config-h.in
Removing tools/platforms/msp430/Makefile.in
Removing tools/platforms/msp430/motelist/Makefile.in
Removing tools/platforms/msp430/motelist/motelist
Removing tools/platforms/msp430/pybsl/Makefile.in
Removing tools/platforms/msp430/pybsl/serial/Makefile.in
Removing tools/platforms/msp430/pybsl/tos-bsl
Removing tools/tinyos/Makefile.in
Removing tools/tinyos/java/Makefile.in
Removing tools/tinyos/java/env/Makefile.in
Removing tools/tinyos/java/serial/Makefile.in
Removing tools/tinyos/misc/Makefile.in
Removing tools/tinyos/ncc/Makefile.in
Removing tools/tinyos/ncc/nesdoc-py/Makefile.in
Removing tos/lib/tosboot/build/
================
Can one of the tinyos2.x devs check this?
Thanks,
David.
On Thu, May 29, 2008 at 11:09 AM, David <wizzardx at gmail.com> wrote:
> Hi list.
>
> I recently upgraded my workstation PC to the latest Debian Unstable,
> and I'm now having errors building tinyos2.x.
>
> My (automated) build procedure is basically this:
>
> 1) setup all TOS environment vars
>
> export TOSROOT=$CHECKOUT_DIR
> export TOSDIR=$TOSROOT/tos
> export MAKERULES=$TOSROOT/support/make/Makerules
> export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:.
> export PYTHONPATH=$TOSROOT/support/sdk/python:$HOME/local/lib/tinyos:$PYTHONPATH
> export PATH=$TOSROOT/support/sdk/c:$PATH
> export PATH=$HOME/local/bin:$PATH
> export PATH=/opt/msp430/bin/:$PATH
>
> 2) Uninstall and disclean
>
> cd $CHECKOUT_DIR/tools
> make uninstall
> make distclean
>
> 3) configure, make, and install:
>
> cd $CHECKOUT_DIR/tools
> ./Bootstrap
> ./configure --prefix=$HOME/local
> yes | make all
> yes | make install
> cd ../tos/lib/tosboot/
> make telosb
>
> I'm getting errors running 'make all'. Here is the error:
>
> =========OUTPUT==========
>
> david at lnxdavid:~/dev/internet/tinyos/tinyos2/git_checkout/tinyos-2.x/tools$
> make all
> Making all in platforms
> make[1]: Entering directory
> `/home/david/dev/internet/tinyos/tinyos2/git_checkout/tinyos-2.x/tools/platforms'
> Making all in mica
> make[2]: Entering directory
> `/home/david/dev/internet/tinyos/tinyos2/git_checkout/tinyos-2.x/tools/platforms/mica'
> Making all in cc1000-channelgen
> make[3]: Entering directory
> `/home/david/dev/internet/tinyos/tinyos2/git_checkout/tinyos-2.x/tools/platforms/mica/cc1000-channelgen'
> source='tos-channelgen.c' object='tos-channelgen.o' libtool=no \
> DEPDIR=.deps depmode=none /bin/sh ../../../config-aux/depcomp \
> gcc -DPACKAGE_NAME=\"tinyos-tools\"
> -DPACKAGE_TARNAME=\"tinyos-tools\" -DPACKAGE_VERSION=\"1.2.4\"
> -DPACKAGE_STRING=\"tinyos-tools\ 1.2.4\" -DPACKAGE_BUGREPORT=\"\"
> -DPACKAGE=\"tinyos-tools\" -DVERSION=\"1.2.4\" -I. -g -O2 -c
> tos-channelgen.c
> gcc -g -O2 -o tos-channelgen tos-channelgen.o
> gcc: tos-channelgen.o: No such file or directory
> gcc: no input files
> make[3]: *** [tos-channelgen] Error 1
> make[3]: Leaving directory
> `/home/david/dev/internet/tinyos/tinyos2/git_checkout/tinyos-2.x/tools/platforms/mica/cc1000-channelgen'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/home/david/dev/internet/tinyos/tinyos2/git_checkout/tinyos-2.x/tools/platforms/mica'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/home/david/dev/internet/tinyos/tinyos2/git_checkout/tinyos-2.x/tools/platforms'
> make: *** [all-recursive] Error 1
>
> =========================
>
> I am using the latest CVS version, but I have the same problem with
> earlier versions, so I think it's due to an updated automake or gcc
> version.
>
> Any tips for fixing this problem?
>
> I'm also going to try to solve the problem myself and will post to
> this thread if/when I fix it.
>
> David.
>
> PS: Here are the gcc and 'make' versions on my workstation:
>
> gcc: 4:4.2.3-9
> make: 3.81-4
>
More information about the Tinyos-help
mailing list