[Tinyos-devel] [nescc-devel] nesC 1.3.0 beta2
David Gay
dgay42 at gmail.com
Thu Jun 19 08:47:28 PDT 2008
On Thu, Jun 19, 2008 at 3:40 AM, Vlado Handziski
<handzisk at tkn.tu-berlin.de> wrote:
> It looks like there is a bug in src/nesc-compile related to the path of the
> deputy_stage2.h file. 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";
You're right, and that's the right patch.
David
More information about the Tinyos-devel
mailing list