simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] compile problem


From: Theodore Roth
Subject: Re: [Simulavr-devel] compile problem
Date: Tue Jul 30 12:32:01 2002

Hi John,

Which version of avr-libc are you using? The headers mentioned in the
error are part of avr-libc and have gone through some changes lately which
could break things. I'm not sure that I've updated simulavr's avr test
programs for the newer libs. Thus, if you are using gcc-3.0.2, you should
_not_ be using the avr-libc from cvs.

If you are going to extended simulavr, you should probably get the latest
bintutils, gcc and avr-libc from cvs. The next release of simulavr will
require those.

More notes below...

On Mon, 29 Jul 2002, John Regehr wrote:

:) Since I'm interested in extending simulavr a bit, I wanted to compile
:) from the latest CVS and I'm running into a problem.  I haven't really
:) tried to debug it yet since it's probably something obvious...
:)
:) On a pretty much standard Redhat 7.3 box with gcc 3.1.1 and avr-gcc
:) 3.0.2 I get the error below.
:)
:) Any help is appreciated.  Thanks,
:)
:) John Regehr
:)
:)
:) avr-gcc  -I. -I. -I../src -I.     -g -Wall -mmcu=at90s8515 -c `test -f
:) demo.c || echo './'`demo.c

Where did the above command line come from? The programs in the test_c/
directory should not be including anything from the simulator source...
Ahh! ina90.h #includes eeprom.h. Not good since there's an eeprom.h in the
simulavr src.

Did you use the configure script to set up the build? When compiling
everything on my system, I get these lines:

  cd ../obj-avr/test_c; make
  avr-gcc  -I../../test_c -g -Wall -mmcu=at90s8515 -c ../../test_c/demo.c
  avr-gcc  -g -Wall -mmcu=at90s8515  -o demo  demo.o

You should have to do anything other than a top-level `make` to build all
everything in the project.

Ted Roth



:) In file included from /opt/avrgcc/avr/include/ina90.h:100,
:)                  from /opt/avrgcc/avr/include/pgmspace.h:57,
:)                  from /opt/avrgcc/avr/include/progmem.h:1,
:)                  from demo.c:8:
:) .../src/eeprom.h:63: parse error before "VDevice"
:) .../src/eeprom.h:65: parse error before "eecr"
:) .../src/eeprom.h:66: parse error before "eecr_mask"
:) .../src/eeprom.h:67: parse error before "eedr"
:) .../src/eeprom.h:68: parse error before "eearl"
:) .../src/eeprom.h:69: parse error before "eearh"
:) .../src/eeprom.h:71: parse error before '*' token
:) .../src/eeprom.h:74: parse error before '*' token
:) .../src/eeprom.h:76: parse error before '}' token
:) .../src/eeprom.h:78: parse error before "byte"
:) .../src/eeprom.h:79: parse error before "byte"
:) .../src/eeprom.h:84: parse error before "FILE"
:) gmake[1]: *** [demo.o] Error 1
:) gmake[1]: Leaving directory `/home/regehr/simulavr/test_c'
:) gmake: *** [all-recursive] Error 1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]