Hi all!

First, thanks for your quick replies. I didn't see your post Andrey,
I'll follow any potential answer you might get.

Phil, I upgraded my nesc compiler to the latest version as you can see here:

$ ncc --version

ncc: 1.3.0
nescc: 1.3.0beta4
gcc: gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

However, the error is still there, as you can see at the end of the
email. I also thought commenting those lines would work, but I was not
really confident how sure that option was :)

Any other suggestion?

Thanks again,

Iñigo

***********************************************************************
$ make micaz sim
mkdir -p simbuild/micaz
  placing object files in simbuild/micaz
  writing XML schema to app.xml
  compiling SimpleAppC to object file sim.o
ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim
-fnesc-nido-tosnodes=1000 -fnesc-simulate
-fnesc-nido-motenumber=sim_node\(\)   -Wall -Wshadow -Wnesc-all
-target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb
-DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
-I../../Src -I../../Src/Interfaces -I../../Src/CommunicationTree
-I../../Src/CommunicationTree/NeighborManagement
-I/opt/tinyos-2.x/tos/lib/net -I/opt/tinyos-2.x/tos/lib/net/4bitle
-I/opt/tinyos-2.x/tos/lib/net/ctp -DIDENT_APPNAME=\"SimpleAppC\"
-DIDENT_USERNAME=\"urteaga\" -DIDENT_HOSTNAME=\"txarly\"
-DIDENT_USERHASH=0x90e5717cL -DIDENT_TIMESTAMP=0x486d1f0dL
-DIDENT_UIDHASH=0xaba89170L -Wno-nesc-data-race SimpleAppC.nc
-fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants
-fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags
-fnesc-dumpfile=app.xml
  compiling Python support and C libraries into pytossim.o, tossim.o,
and c-support.o
g++ -c  -shared -fPIC -o simbuild/micaz/pytossim.o -g -O0 -I../../Src
-I../../Src/Interfaces -I../../Src/CommunicationTree
-I../../Src/CommunicationTree/NeighborManagement
-I/opt/tinyos-2.x/tos/lib/net -I/opt/tinyos-2.x/tos/lib/net/4bitle
-I/opt/tinyos-2.x/tos/lib/net/ctp -DIDENT_APPNAME=\"SimpleAppC\"
-DIDENT_USERNAME=\"urteaga\" -DIDENT_HOSTNAME=\"txarly\"
-DIDENT_USERHASH=0x90e5717cL -DIDENT_TIMESTAMP=0x486d1f0dL
-DIDENT_UIDHASH=0xaba89170L
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx
-I/usr/include/python2.5 -I/opt/tinyos-2.x/tos/lib/tossim
-DHAVE_CONFIG_H
In file included from /opt/tinyos-2.x/tos/lib/tossim/tos.h:66,
                 from /opt/tinyos-2.x/tos/lib/tossim/tossim.h:39,
                 from /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:681:
/opt/tinyos-2.x/tos/lib/tossim/../../lib/safe/include/annots_stage1.h:39:
error: stray '@' in program
/opt/tinyos-2.x/tos/lib/tossim/../../lib/safe/include/annots_stage1.h:40:
error: stray '@' in program
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function 'PyObject*
_wrap_nesc_app_t_numVariables_set(PyObject*, PyObject*)':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:1999: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2000: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function 'PyObject*
_wrap_nesc_app_t_numVariables_get(PyObject*, PyObject*)':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2066: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2067: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function 'PyObject*
_wrap_nesc_app_t_variableNames_set(PyObject*, PyObject*)':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2134: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2135: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function 'PyObject*
_wrap_nesc_app_t_variableNames_get(PyObject*, PyObject*)':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2202: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2203: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function 'PyObject*
_wrap_nesc_app_t_variableTypes_set(PyObject*, PyObject*)':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2270: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2271: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function 'PyObject*
_wrap_nesc_app_t_variableTypes_get(PyObject*, PyObject*)':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2338: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2339: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function 'PyObject*
_wrap_nesc_app_t_variableArray_set(PyObject*, PyObject*)':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2406: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2407: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function 'PyObject*
_wrap_nesc_app_t_variableArray_get(PyObject*, PyObject*)':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2474: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2475: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function 'PyObject*
_wrap_delete_nesc_app_t(PyObject*, PyObject*)':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2554: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2555: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function 'PyObject*
_wrap_new_Mote(PyObject*, PyObject*)':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2698: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2699: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function 'PyObject*
_wrap_new_Tossim(PyObject*, PyObject*)':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2997: warning:
deprecated conversion from string constant to 'char*'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2998: warning:
deprecated conversion from string constant to 'char*'
make: *** [sim-exe] Error 1
***********************************************************************

On Thu, Jul 3, 2008 at 8:30 PM, Andrey Gursky <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I had the same error. I've posted it here already. I could figure out throw
> CVS the developer nickname who has made this 2 lines changes: idgay. But I
> found no e-mail. Maybe guests don't allow to see it. Does somebody know how
> we can submit this issue?
>
> As workaround I've commented successfully these lines. But I can only guess
> how dangerous it can be.
>
>
> Andrey
>
>
>
>
> Iñigo Urteaga wrote:
>>
>> Hi all,
>>
>> I updated my CVS directory today and found that I am not able to
>> compile my code for simulation ("make micaz sim") anymore. However, I
>> am able to compile the code for real motes ("make micaz").
>>
>> Error output is included at the end of the email. It seems to be
>> related to the latest updates to the
>> /tinyos-2.x/tos/lib/safe/include/annots_stage1.h file. I am using the
>> stable nesC version (1.2.9-20080625), not the nesC 1.3 beta version.
>> All the tinyos tree was successfully updated using CVS.
>>
>> Any help would be greatly appreciated.
>>
>> Thanks in advance,
>>
>> Iñigo
>>
>> ***********************************************************************
>>  make micaz sim
>> mkdir -p simbuild/micaz
>>  placing object files in simbuild/micaz
>>  writing XML schema to app.xml
>>  compiling SimpleAppC to object file sim.o
>> ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim
>> -fnesc-nido-tosnodes=1000 -fnesc-simulate
>> -fnesc-nido-motenumber=sim_node\(\)   -Wall -Wshadow -Wnesc-all
>> -target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb
>> -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
>> -I../../Src -I../../Src/Interfaces -I../../Src/CommunicationTree
>> -I../../Src/CommunicationTree/NeighborManagement
>> -I/opt/tinyos-2.x/tos/lib/net -I/opt/tinyos-2.x/tos/lib/net/4bitle
>> -I/opt/tinyos-2.x/tos/lib/net/ctp -DIDENT_APPNAME=\"SimpleAppC\"
>> -DIDENT_USERNAME=\"urteaga\" -DIDENT_HOSTNAME=\"txarly\"
>> -DIDENT_USERHASH=0x90e5717cL -DIDENT_TIMESTAMP=0x486d0997L
>> -DIDENT_UIDHASH=0x08ad6904L -Wno-nesc-data-race SimpleAppC.nc
>> -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants
>> -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags
>> -fnesc-dumpfile=app.xml
>>  compiling Python support and C libraries into pytossim.o, tossim.o,
>> and c-support.o
>> g++ -c  -shared -fPIC -o simbuild/micaz/pytossim.o -g -O0 -I../../Src
>> -I../../Src/Interfaces -I../../Src/CommunicationTree
>> -I../../Src/CommunicationTree/NeighborManagement
>> -I/opt/tinyos-2.x/tos/lib/net -I/opt/tinyos-2.x/tos/lib/net/4bitle
>> -I/opt/tinyos-2.x/tos/lib/net/ctp -DIDENT_APPNAME=\"SimpleAppC\"
>> -DIDENT_USERNAME=\"urteaga\" -DIDENT_HOSTNAME=\"txarly\"
>> -DIDENT_USERHASH=0x90e5717cL -DIDENT_TIMESTAMP=0x486d0997L
>> -DIDENT_UIDHASH=0x08ad6904L
>> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx
>> -I/usr/include/python2.5 -I/opt/tinyos-2.x/tos/lib/tossim
>> -DHAVE_CONFIG_H
>> In file included from /opt/tinyos-2.x/tos/lib/tossim/tos.h:66,
>>                 from /opt/tinyos-2.x/tos/lib/tossim/tossim.h:39,
>>                 from /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:681:
>> /opt/tinyos-2.x/tos/lib/tossim/../../lib/safe/include/annots_stage1.h:39:
>> error: stray '@' in program
>> /opt/tinyos-2.x/tos/lib/tossim/../../lib/safe/include/annots_stage1.h:40:
>> error: stray '@' in program
>> make: *** [sim-exe] Error 1
>>
>> ***********************************************************************
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>>
>
>

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

Reply via email to