[Tinyos-help] 'make telosb' fails after tinyos2.1.1 installation from repository

Vinai Sundaram vinaisundaram at gmail.com
Fri Aug 3 19:51:15 PDT 2012


Well, I figured the problem. I had installed msp430-4.6 to work with
latest SVN version of TinyOS when I couldn't successfully install the
msp430-legacy packages. That installation of msp430-4.6 was
interfering with my msp430-legacy package installation.

To make it work, I needed to purge msp430-legacy and remove msp430-4.6
as follows.
  sudo apt-get purge  msp430-tinyos-legacy
  sudo apt-get remove msp430-46

Now, the following command installs everything correctly from the
tinyprod repository and I am able to compile for telosb platforms.
  sudo apt-get install tinyos-2.1.1 nesc tinyos-tools
msp430-tinyos-legacy avr-tinyos


Thanks for your help, Eric.

Best,
Vinai
--
Vinai Sundaram
Ph.D. Candidate
School of Electrical and Computer Engineering
Purdue University, West Lafayette IN
Web: http://www.ece.purdue.edu/~vsundar/


On Wed, Jul 25, 2012 at 8:41 PM, Eric Decker <cire831 at gmail.com> wrote:
>
> Sorry you are still having problems.   But I'm out of time to help figure
> out what is going on with this.
>
> I did test the installation out on my system.
>
> One of the weird things is when you try to install msp430-tinyos-legacy it
> isn't finding the dependencies.
> That is weird.
>
> Did you do "sudo apt-get update"?
>
>
> I'm running Ubuntu 11.10 (Oneric). and I installed the packages fine.   What
> version of the OS are you
> running?   I don't know why dpkg is failing with the install and don't have
> time to figure it out.  Especally
> since I can't duplicate the failure.
>
> You may want to punt and kick over to using the development trunk and use
> the 46 toolchain.
>
>
>
> On Wed, Jul 25, 2012 at 5:10 PM, Vinai Sundaram <vinaisundaram at gmail.com>
> wrote:
>>
>> Eric,
>>
>> Thank you for your help. I am still running into problems.
>>
>> I used the commands in tinyprod.net to clean up old tinyos packages
>> and commented stanford repository. Then, I tried to install everything
>> from tinyprod repository as you suggested. When I issued the command
>> you mentioned, it resulted in 'unmet dependencies' error.
>>
>> ===
>> vsundar at vsundar-laptop:~$ sudo apt-get   install tinyos-2.1.1 nesc
>> tinyos-tools msp430-tinyos-legacy
>> Reading package lists... Done
>>
>> ...
>>
>> The following packages have unmet dependencies:
>>   msp430-tinyos-legacy: Depends: msp430-binutils-tinyos-legacy but it
>> is not going to be installed
>>                         Depends: msp430-gcc-tinyos-legacy but it is
>> not going to be installed
>>                         Depends: msp430-libc-tinyos-legacy but it is
>> not going to be installed
>> E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
>> specify a solution).
>> vsundar at vsundar-laptop:~$
>> ===
>>
>> When I added those required packages to the install command, it gave
>> the following error.
>>
>> ===
>> vsundar at vsundar-laptop:~$ sudo apt-get  install tinyos-2.1.1 nesc
>> tinyos-tools msp430-tinyos-legacy msp430-binutils-tinyos-legacy
>> msp430-gcc-tinyos-legacy  msp430-libc-tinyos-legacy
>> Reading package lists... Done
>>
>> ...
>>
>> Errors were encountered while processing:
>>
>> /var/cache/apt/archives/msp430-binutils-tinyos-legacy_2.17-20110905_i386.deb
>>  /var/cache/apt/archives/msp430-gcc-tinyos-legacy_3.2.3-20110905_i386.deb
>>
>> /var/cache/apt/archives/msp430-libc-tinyos-legacy_20060801cvs-20110905_i386.deb
>> E: Sub-process /usr/bin/dpkg returned an error code (1)
>> vsundar at vsundar-laptop:/opt$
>> ===
>>
>> Could you help?
>>
>> Thanks,
>> Vinai
>>
>> On Wed, Jul 25, 2012 at 5:15 AM, Eric Decker <cire831 at gmail.com> wrote:
>> >
>> >
>> > On Mon, Jul 23, 2012 at 9:37 PM, Vinai Sundaram
>> > <vinaisundaram at gmail.com>
>> > wrote:
>> >>
>> >> Thanks for your response. I am not sure what I am supposed to.
>> >>
>> >> The following command at http://tinyprod.net/repos/debian/ removed
>> >> tinyos-2.1.1 as well.
>> >>
>> >> "sudo dpkg -P `dpkg -l nesc '*tinyos*' | grep ^ii | awk '{ print $2 }'
>> >> | xargs` "
>> >>
>> >> So, I reinstalled tinyos-2.1.1 as mentioned in tinyos.net website. I
>> >> tried to selectively remove msp430 packages but couldn't do it because
>> >> of dependencies.requirements.
>> >
>> >
>> > The tinyos-2.1.1_2.1.1-20100401 package has dependencies of various
>> > required
>> > packages.
>> > Which of course causes problems when trying to move forward and
>> > reorganize
>> > things.
>> > It doesn't really need these dependencies because it is a source
>> > package.
>> > Sources
>> > don't have binary dependencies.   And in fact the tinyos-2.1.1 package
>> > is
>> > kind of odd in
>> > that it looks like a binary package, when what should have been built is
>> > a
>> > source package.
>> > I'll get around to fixing that eventually...   Probably for the 2.1.2
>> > release...
>> >
>> > In the meantime...
>> >
>> > I've rebuilt the tinyos-2.1.1 package so it no longer has the
>> > dependencies
>> > that are causing
>> > you the problems you are running into.   This package is up on the
>> > tinyprod
>> > repository and
>> > is called tinyos-2.1.1_2.1.1-tinyprod1.   It will automatically replace
>> > your
>> > existing tinyos-2.1.1
>> > package.
>> >
>> > So do the removal again.   You can probably leave the repository to
>> > stanford
>> > in /etc/apt/sources*
>> > but you may want to point solely at tinyprod.net to make sure apt-get
>> > doesn't get confused.
>> >
>> > And then...
>> >
>> > sudo
>> > apt-get update
>> > apt-get install tinyos-2.1.1 nesc tinyos-tools msp430-tinyos-legacy
>> >
>> > That should do the trick.   This will install the tools in /usr.
>> >
>> >
>> >> When I tried to install legacy packages for msp430 without removing
>> >> the old packages, it failed. Here is the command I ran.
>> >>
>> >> sudo apt-get install  msp430-binutils-tinyos-legacy
>> >> msp430-gcc-tinyos-legacy msp430-libc-tinyos-legacy
>> >> msp430-tinyos-legacy
>> >>
>> >> Could you tell me how to remove the msp430 packages without affecting
>> >> tinyos installation in (/opt/tinyos-2.1.1/) and install msp430-legacy
>> >> packages?
>> >>
>> >>
>> >> Thanks,
>> >> Vinai
>> >>
>> >> On Mon, Jul 23, 2012 at 10:55 PM, Eric Decker <cire831 at gmail.com>
>> >> wrote:
>> >> >
>> >> > Try using the repository at http://tinyprod.net/repos/debian/
>> >> >
>> >> > And you want the *-legacy packages for released T2.1.1 source bits.
>> >> >
>> >> > If it still doesn't work send me the output of:
>> >> >
>> >> > ncc --version -target=telosb    (note: the - in front of target is a
>> >> > single,
>> >> > version has -- (double))
>> >> >
>> >> >
>> >> >
>> >> > On Mon, Jul 23, 2012 at 7:28 PM, Vinai Sundaram
>> >> > <vinaisundaram at gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> I installed tinyos 2.1.1 on my laptop running a fresh installation
>> >> >> of
>> >> >> Ubuntu 10.04 LTS (Lucid).  I followed the instructions at this
>> >> >> website.
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> http://docs.tinyos.net/tinywiki/index.php/Installing_TinyOS_2.1.1#Two-step_install_on_your_host_OS_with_Debian_packages
>> >> >>
>> >> >> While 'make micaz' succeeds for Blink, 'make telosb' fails. I have
>> >> >> appended the error message below.
>> >> >>
>> >> >> This problem has been discussed in 2011. According to this thread
>> >> >>
>> >> >>
>> >> >>
>> >> >> (http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2011-August/052201.html),
>> >> >> using old packages from the following link has solved the problem.
>> >> >> http://tinyos.stanford.edu/tinyos/dists/ubuntu.old
>> >> >>
>> >> >> However, I got the following error when I ran 'sudo apt-get update'
>> >> >> after adding the above link in /etc/apt/sources.list.
>> >> >>
>> >> >> W: Failed to fetch
>> >> >>
>> >> >>
>> >> >>
>> >> >> http://tinyos.stanford.edu/tinyos/dists/ubuntu.old/dists/lucid/main/binary-i386/Packages.gz
>> >> >>  404  Not Found
>> >> >>
>> >> >> Could someone help?
>> >> >>
>> >> >> Thanks,
>> >> >> Vinai
>> >> >>
>> >> >>
>> >> >> Error message
>> >> >> ----------------------
>> >> >>
>> >> >> xyz at xyz-laptop:/opt/tinyos-2.1.1/apps/Blink$ make telosb
>> >> >> mkdir -p build/telosb
>> >> >>     compiling BlinkAppC to a telosb binary
>> >> >> ncc -o build/telosb/main.exe  -Os -O -mdisable-hwmul
>> >> >> -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=telosb
>> >> >> -fnesc-cfile=build/telosb/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22
>> >> >> -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"vsundar\"
>> >> >> -DIDENT_HOSTNAME=\"vsundar-laptop\" -DIDENT_USERHASH=0x49e966aaL
>> >> >> -DIDENT_TIMESTAMP=0x500e0483L -DIDENT_UIDHASH=0xb41fd438L
>> >> >> BlinkAppC.nc -lm
>> >> >> In file included from
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/msp430hardware.h:29,
>> >> >>                  from
>> >> >> /opt/tinyos-2.1.1/tos/platforms/telosb/hardware.h:4,
>> >> >>                  from
>> >> >> /opt/tinyos-2.1.1/tos/system/SchedulerBasicP.nc:41:
>> >> >>
>> >> >> /usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/io.h:1:2:
>> >> >> warning: #warning <io.h> is deprecated, please include <msp430.h>
>> >> >> In file included from
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/msp430hardware.h:30,
>> >> >>                  from
>> >> >> /opt/tinyos-2.1.1/tos/platforms/telosb/hardware.h:4,
>> >> >>                  from
>> >> >> /opt/tinyos-2.1.1/tos/system/SchedulerBasicP.nc:41:
>> >> >>
>> >> >>
>> >> >> /usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/signal.h:43:2:
>> >> >> warning: #warning msp430-libc <signal.h> deprecated, using
>> >> >> <legacymsp430.h>
>> >> >> In file included from
>> >> >> /opt/tinyos-2.1.1/tos/platforms/telosa/PlatformLedsC.nc:38,
>> >> >>                  from /opt/tinyos-2.1.1/tos/system/LedsC.nc:38,
>> >> >>                  from BlinkAppC.nc:45:
>> >> >> In component `HplMsp430GeneralIOC':
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:227:
>> >> >> syntax error before `;'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:321:
>> >> >> cannot find `P30'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:322:
>> >> >> cannot find `P31'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:323:
>> >> >> cannot find `P31'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:324:
>> >> >> cannot find `P32'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:325:
>> >> >> cannot find `P33'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:326:
>> >> >> cannot find `P33'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:327:
>> >> >> cannot find `P34'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:328:
>> >> >> cannot find `P35'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:330:
>> >> >> cannot find `P50'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:331:
>> >> >> cannot find `P51'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:332:
>> >> >> cannot find `P52'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:333:
>> >> >> cannot find `P53'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:334:
>> >> >> cannot find `P36'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:335:
>> >> >> cannot find `P37'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:337:
>> >> >> cannot find `P60'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:338:
>> >> >> cannot find `P61'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:339:
>> >> >> cannot find `P62'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:340:
>> >> >> cannot find `P63'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:341:
>> >> >> cannot find `P64'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:342:
>> >> >> cannot find `P65'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:343:
>> >> >> cannot find `P66'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:344:
>> >> >> cannot find `P67'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:346:
>> >> >> cannot find `P66'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:347:
>> >> >> cannot find `P67'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:349:
>> >> >> cannot find `P67'
>> >> >> /opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:350:
>> >> >> cannot find `P57'
>> >> >> In component `PlatformLedsC':
>> >> >> /opt/tinyos-2.1.1/tos/platforms/telosa/PlatformLedsC.nc:48: cannot
>> >> >> find
>> >> >> `Port54'
>> >> >> /opt/tinyos-2.1.1/tos/platforms/telosa/PlatformLedsC.nc:51: cannot
>> >> >> find
>> >> >> `Port55'
>> >> >> /opt/tinyos-2.1.1/tos/platforms/telosa/PlatformLedsC.nc:54: cannot
>> >> >> find
>> >> >> `Port56'
>> >> >> make: *** [exe0] Error 1
>> >> >> xyz at xyz-aptop:/opt/tinyos-2.1.1/apps/Blink$
>> >> >> _______________________________________________
>> >> >> Tinyos-help mailing list
>> >> >> Tinyos-help at millennium.berkeley.edu
>> >> >>
>> >> >>
>> >> >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Eric B. Decker
>> >> > Senior (over 50 :-) Researcher
>> >> >
>> >> >
>> >
>> >
>> >
>> >
>> > --
>> > Eric B. Decker
>> > Senior (over 50 :-) Researcher
>> >
>> >
>>
>>
>>
>> --
>> Vinai Sundaram
>> Graduate Research Assistant
>> School of Electrical and Computer Engineering
>> Purdue University West Lafayette IN USA
>> Web: http://web.ics.purdue.edu/~vsundar/
>
>
>
>
> --
> Eric B. Decker
> Senior (over 50 :-) Researcher
>
>


More information about the Tinyos-help mailing list