Philip Levis wrote:

On Mon, 2005-11-07 at 23:09 -0500, Andreas Krause wrote:
Hi all,

since I was having problems with an earlier version of Mate using
TelosB, I checked out the current source tree from Sourceforge. When I
use VMBuilder to build the bombilla-telosb.vmsf VM, and run "make
telosb" in the apps/BombillaTelosB directory, I get the following
error message:

cc1: error: invalid option `disable-hwmul'
<commandline>: failed to preprocess /opt/tinyos-1.x/tos/system/tos.h
cc1: error: invalid option `disable-hwmul'
<commandline>: failed to preprocess MateTopLevel.nc
failed to parse nesC file MateTopLevel.nc
make: *** [vm_specific/BombillaTelosBVMConstants.java] Error 1

The complete log is following. Can anybody help me compiling Mate for
TelosB under the current TinyOS source tree?
Thanks,

Have you been able to compile other TinyOS applications?

The -mdisable-hwmul is an option that disables hardware multiply on the
msp430, because the compiler has some bugs when you use it. I have no
idea why ncg would fail on that option; theoretically, this would happen
any time you try to run ncg for the Telos platform.

What versions of msp430-gcc, nesC, and ncc are you using?

Hi Phil, Andreas,

I have this exact problem when using Mate' 2.2.2 release (no problem with 2.2.1 release). Has there been a resolution? My guess is that ncg is not passing the -target=telosb parameter to ncc, because this error is what happens when ncc calls gcc instead of msp430-gcc. Note that other apps, like Blink, or even BombillaTelosA, build fine and use the -mdisable-hwmul flag.

Here are my versions:

msp430-gcc: 3.2.3 (built using build-mspgcc script; I get the same error with the msp430-gcc that shipped with the 1.1.13 release of TOS)

ncc: 1.1.2

nesC: I presume 1.1.2?

I am using the TinyOS release that added Telos support (1.1.13 I believe) patched with the 1.1.14 CVS snapshot.

I just ran an experiment: replaced the tools/../script and lib/VM dirs with 2.2.1 and compared the make output for BombillaTelosB. The ONLY difference is that "make telosb" uses "-I.../platform/telosb" under 2.2.2 (and fails with hwmul error) and "-I.../platform/telos" under 2.2.1 (and works).

-Leo
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to