Hi!

On Thu, 5 Nov 2009, David Sanz wrote:

Dear all,

Razvan.. I have exactly the same packages you have, plus:

ii  msp430-optional-tinyos 2.1-20090326                               Dummy 
package to pull in all optional msp430

The only difference is that my repository is "hardy" version.

The debs are the same as far as I know.

Héberte.. I am using TinyOS 2.1.0 with gcc 4.4.1. Do you think I should
downgrade it?

[gcc -v

Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.4.1-4ubuntu8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4
--enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-targets=all --disable-werror --with-arch-32=i486
--with-tune=generic --enable-checking=release --build=i486-linux-gnu
--host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)

]


The host gcc only matters when you use TOSSIM. The nesc is making use of the cross compiler.

When you do 'make telosb' you'll see ncc being run with a lot of parameters. Can you run by hand that command adding the -v flag? At some point in the output you should see something like this:

        #include "..." and component search starts here:
        #include <...> search starts here:

         [...]

         /home/lpl/local/src/tinyos-2.x/tos/types/
         /home/lpl/local/src/tinyos-2.x/tos/system/
         /usr/lib/gcc-lib/msp430/3.2.3/include/
         /usr/msp430/include/
        End of search list.

The sys/inttypes.h is in /usr/msp430/include/. :-)

--
Razvan ME

Finally, as I am in hurry with my work, I have installed Ubuntu 9.04 in
VirtualBox and works fine. But don't worry: as soon as I will have some free
time, I will come back and try to fix it. If I get it, you will have some
news from Madrid :-)

Thank you again. It is so nice to find so willing people.

Best,

David


2009/11/4 Héberte Fernandes de Moraes <[email protected]>

Hello

Are you using tinyos 1.x or 2.x? If you use the version 1.x, try install
the gcc 3.4.
apt-get install gcc-3.4
Use this version for compile apps of tinyos 1.x

Sorry my bad english!

Cheers

Heberte

On Wed, Nov 4, 2009 at 11:01, Razvan Musaloiu-E. <[email protected]>wrote:

Hi!

On Wed, 4 Nov 2009, David Sanz wrote:

Hi,

I had it, but tried again and.. nothing. Can I ask you if you installed
Karmic or upgraded from 9.04?

I did a clean install of the 9.10. Just to make sure, here are the
MSP430 packages I have:

       $ dpkg -l 'msp430*' | grep ^ii
       ii  msp430-binutils-tinyos               2.17-20080806          
MSP430TOOLS -- Binutils
       ii  msp430-gcc-tinyos                    3.2.3-20080806         
MSP430TOOLS -- GNU CC
       ii  msp430-libc-tinyos                   20060801cvs-20080806         
MSP430TOOLS -- Libc
       ii  msp430-tinyos                        2.1-20080806         Dummy 
package to pull in all msp430-related
       ii  msp430-tinyos-base                   2.1-20080806         Dummy 
package required by all msp430-tinyos

The repository I have in /etc/apt/sources.list is the following:

       deb http://tinyos.stanford.edu/tinyos/dists/ubuntu feisty main

--
Razvan ME

I m thinking in format and install again 9.04 or use a virtual machine.. :S

Thanks,

David


2009/11/3 Razvan Musaloiu-E. <[email protected]>

Hi!

On Tue, 3 Nov 2009, David Sanz wrote:

 Hello Razvan,

Thanks for your quick answer :-)  Unfortunately, I already had libc6-dev
installed, and new nesc 1.3.0 package seems not to solve the problem: when
compiling, I obtain the same results.

I ve also tried adding some includes in my makefie, but nothing.. is there
anyway to reset dependency manually?


My bad, I didn't notice that you are compiling for telosb. :P Did you
install the MSP430 toolchain? You should be able to get it by doing 'apt-get
install msp430-tinyos'. Give it a try and let me know if doesn't work. I
just installed a fresh Ubuntu 9.10 and it worked. :D


All the best!
Razvan ME

 2009/11/3 Razvan Musaloiu-E. <[email protected]>

 Hi!


On Tue, 3 Nov 2009, David Sanz wrote:

 Dear all,


After work perfectly with tin...@ubuntu 9.04, I upgraded my OS to Ubuntu
9.10, and now I am not able even to compile the simplest code. The results
when trying to compile are in this way:

$ make telosb

mkdir -p build/telosb
 compiling SenseToRadioAppC to a telosb binary
ncc -o build/telosb/main.exe  -Os -O -mdisable-hwmul -Wall -Wshadow
-Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=
-DDEFINED_TOS_AM_GROUP=0x22 -I/opt/tinyos-2.1.0/tos/lib/printf
-DIDENT_APPNAME=\"SenseToRadioApp\" -DIDENT_USERNAME=\"sanz\"
-DIDENT_HOSTNAME=\"dSanz\" -DIDENT_USERHASH=0x556e4852L
-DIDENT_TIMESTAMP=0x4aef1c37L -DIDENT_UIDHASH=0xb47d6cd5L
SenseToRadioAppC.nc -lm

/usr/lib/ncc/deputy_nodeputy.h:4:20: error: stddef.h: No such file or directory
/usr/lib/ncc/nesc_nx.h:14:26: error: sys/inttypes.h: No such file or directory
/usr/lib/ncc/nesc_nx.h:235: syntax error before `__nesc_ntoh_uint8'
/usr/lib/ncc/nesc_nx.h:240: syntax error before `__nesc_hton_uint8'
/usr/lib/ncc/nesc_nx.h:242: warning: type defaults to `int' in declaration of 
`base'
/usr/lib/ncc/nesc_nx.h:242: `value' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:242: warning: data definition has no type or storage 
class
/usr/lib/ncc/nesc_nx.h:243: syntax error before `return'
/usr/lib/ncc/nesc_nx.h:246: syntax error before `__nesc_ntoh_leuint8'
/usr/lib/ncc/nesc_nx.h:251: syntax error before `__nesc_hton_leuint8'
/usr/lib/ncc/nesc_nx.h:253: warning: type defaults to `int' in declaration of 
`base'
/usr/lib/ncc/nesc_nx.h:253: redefinition of `base'
...

After looking for in the mailing list and forum, I ve done tos-check-env,
and everything seem to be OK, so I guess is a problem with paths or similar.
I ve included stddef.h at /usr/lib/ncc
I ve also included this lines

CFLAGS+=-I/usr/lib/gcc/.../include  // where there was stddef.h
CFLAGS+=-I/usr/include/

in /opt/tinyos-2.x/support/make/sim.extra

and does not work. Don't know what else to do.

Do someone has had a similar problem? Does someone have any idea?


 Try to to install the libc6-dev package (apt-get install libc6-dev). The
nesc 1.3.0 package is missing this dependency. The 1.3.1 from here is
fixed:
      
http://cs.jhu.edu/~razvanm/wsn/debian/nesc-1.3.1.deb<http://cs.jhu.edu/%7Erazvanm/wsn/debian/nesc-1.3.1.deb>


All the best!
Razvan ME




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




--
Héberte Fernandes de Moraes
Mestrando - Programa de Engenharia de Sistemas e Computação
LCP/PESC/COPPE/UFRJ

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

Reply via email to