I found a dirty solution .
Heres what I did.
I replaced /usr/bin/as by /usr/bin/avr-as (I backed up as first)

Then i had to change /usr/bin/ld by /usr/bin/avr-ld

These two changes let me compile tinyos files. But obviously I cannot
compile any other program now because those programs wouldnt compile with
an avr assembler. There should be a cleaner solution out there. Hopefully
somebody will post it here.

Thanks
Shweta

On Mon, 30 Jan 2006, Shweta Jain wrote:

> Hi all
>
> I removed the previous installation. Now I have installed the packages
> from http://www.tinyos.net/dist-1.1.0/tools/linux/ with tinyos-1.1.0 .
>
> which are
>  avarice-2.0.20030825cvs-1.i386.rpm
> avr-binutils-2.13.2.1-1.i386.rpm
> avr-gcc-3.3tinyos-1.i386.rpm
> avr-insight-pre6.0cvs.tinyos-1.3.i386.rpm 11-Sep-2003
>  avr-libc-20030512cvs-1.i386.rpm
> graphviz-1.10-1.i386.rpm
>
> Since nesc-1.1.1 is no more available I had installed nesc-1.1.2b.
> Therefore I had to upgrade to avr-binutils 2.15.
> This gives me the same error that  Rene Desgagnes had before.
>
> [EMAIL PROTECTED] Blink]# make mica
>     compiling Blink to a mica binary
> ncc -o build/mica/main.exe -Os -board=micasb -target=mica  -Wall -Wshadow
> -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=100000
> -fnesc-cfile=build/mica/app.c  Blink.nc -lm
> as: unrecognized option `-mmcu=atmega103'
> make: *** [build/mica/main.exe] Error 1
>
>
>  As suggested
> by Kristin I did toscheck which tells me the following
>
> avr-as:
>         /usr/bin/avr-as
>         GNU assembler 2.15
>
> --> WARNING: The avr-as version found by toscheck is not 2.13.2.1 Please
> update your avr-as version by updating your avr-binutils package.
>
> Looks like all this will be solved if I can get nesc-1.1.1. Is
> there any other work around?
>
>
> **************************************************************************
>
>
> On 7/18/05, Rene Desgagnes <rene.desgagnes at gmail.com> wrote:
> > Hi everyone,
> >
> >                   I have read almost all help messages but I didn't
> > solve my problem.  I followed all steps to install tinyos on linux.
> > The first problem I encountered was when I was compiling "Blink" with
> > "make mica2", I received assembler error messages.  However, when I
> > was compiling with "make pc", everything is working properly. So, I
> > have upgraded my binutils package from 2.13 to 2.15 because one of
> > tinyos-help mailinglist topic said that this will solve the problem.
> > No, I'm having a different error message when I compile with "make
> > mica2" :
> > [rene at dhcp-32-214 Blink]$ make mica2
> > mkdir -p build/mica2
> >     compiling Blink to a mica2 binary
> > ncc -o build/mica2/main.exe -Os -finline-limit=100000 -Wall -Wshadow
> > -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=mica2
> > -fnesc-cfile=build/mica2/app.c -board=micasb
> > -DIDENT_PROGRAM_NAME="Blink"
> > -DIDENT_PROGRAM_NAME_BYTES="66,108,105,110,107,0"
> > -DIDENT_USER_ID="rene" -DIDENT_USER_ID_BYTES="114,101,110,101,0"
> > -DIDENT_HOSTNAME="dhcp-32-214.gel"
> >
> -DIDENT_HOSTNAME_BYTES="100,104,99,112,45,51,50,45,50,49,52,46,103,101,108,0"
> > -DIDENT_USER_HASH=0xcadbc733L -DIDENT_UNIX_TIME=0x42dbc426LBlink.nc
> > -lm
> > as: unrecognized option `-mmcu=atmega128'
> > make: *** [exe0] Error 1
> >
> > I went again on tinyos-help mailinglist archive to find out what to do
> > but no one seems to have solved this problem except some who tell to
> > recompile nesc.  I reinstall the nesC rpm but I got this message
> > again.
> >
> > What must I do ?
> >
> > Thanks,
> >
> > Rene Desgagnes
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > Tinyos-help at Millennium.Berkeley.EDU
> >
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
> Shweta
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to