[Tinyos-devel] [nescc-devel] nesC 1.3.0 beta2

Vlado Handziski handzisk at tkn.tu-berlin.de
Thu Jun 19 03:40:46 PDT 2008


It looks like there is a bug in src/nesc-compile related to the path
of thedeputy_stage2.hfile. At least on my machine the /include
subfolder in ncc is not created,
and the header files are put in ncc, resulting in compile error:

[hanjo at localhost Blink]$ make telosb safe
mkdir -p build/telosb
    compiling BlinkAppC to a telosb binary
ncc -o build/telosb/main.exe -DSAFE_TINYOS -fnesc-deputy -fnesc-default-safe
-fnesc-deputy-args='-I/home/hanjo/tos/tinyos-2.x-vanilla/tos/lib/safe/include
--FLIDs --envmachine -DSAFE_TINYOS --nolib '
/home/hanjo/tos/tinyos-2.x-vanilla/tos/lib/safe/msp430/fail.c  -Os -O
-mdisable-hwmul -Wall -Wshadow -Wnesc-all -target=telosb
-fnesc-cfile=build/telosb/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22
-DIDENT_PROGRAM_NAME=\"BlinkAppC\" -DIDENT_USER_ID=\"hanjo\"
-DIDENT_HOSTNAME=\"localhost.local\" -DIDENT_USER_HASH=0x43fc9287L
-DIDENT_UNIX_TIME=0x485a36c0L -DIDENT_UID_HASH=0x751fee7bL  BlinkAppC.nc -lm
build/telosb/app.c:1:54: /usr/local/lib/ncc/include/deputy_stage2.h: No such
file or directory

So either the include should be created or the path in nesc-compile should
be changed:


--- nesc-compile.old    2008-06-19 12:32:21.000000000 +0200
+++ nesc-compile        2008-06-19 12:32:45.000000000 +0200
@@ -119,7 +119,7 @@
 # Deputy annotations
 if($deputy) {
     unshift @nesc_args, "-fnesc-include=deputy_stage1";
-    unshift @nesc_args, "-fnesc-genprefix=#include
\"$ENV{NCDIR}/include/deputy_stage2.h\"";
+    unshift @nesc_args, "-fnesc-genprefix=#include
\"$ENV{NCDIR}/deputy_stage2.h\"";
 }
 else {
     unshift @nesc_args, "-fnesc-include=deputy_nodeputy";


Vlado

On Wed, Jun 18, 2008 at 19:32, David Gay <dgay42 at gmail.com> wrote:

> beta2: moved deputy annotation files into nesC
>
> I also updated the annotation files in TinyOS itself, so compiling
> safe tinyos apps will now only work with beta2.
>
> Kevin, can you build debian packages from the beta2 source tree on
> sourceforge? (http://sf.net/projects/nescc)
>
> David Gay
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> nescc-devel mailing list
> nescc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nescc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-devel/attachments/20080619/fdd6f215/attachment-0001.htm 


More information about the Tinyos-devel mailing list