mainSimulavr: an AVR simulator - Support: sr #102942, Compile problem

 
 

sr #102942: Compile problem

Submitter:  None
Submitted:  Wed 24 Mar 2004 03:52:42 PM UTC
   
 
Category:  None Priority:  2
Severity:  1 - Wish Status:  Done
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Closed
Component Version:  * None Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 10 Feb 2005 11:28:46 AM UTC, comment #2: 

Hi,

I actually close this entry for cleaning purpose.

If your problem still exist please create new entry.

Best regards,
   Klaus

Klaus Rudolph <zfrdh>
Group administrator
Wed 24 Mar 2004 06:44:03 PM UTC, comment #1: 

You have a problem with the search patch for header files. AVR-GCC is searching in the simulavr source dir (.../src/) and  finding the eeprom.h there instead of the eeprom.h file provided by avr-libc.

I suspect that you have somehow added a "-I<dir>" to your CFLAGS environment that is confusing avr-gcc.

Also, the inclusion of ina90.h seems a bit odd to me which leads me to believe that you are using a very old version of avr-libc. In the current 1.0.x releases, avr/pgmspace.h does not include ina90.h.

I would bet that upgrading to binutils-2.14, avr-gcc-3.3.2 and avr-libc-1.0.4 will fix your problem.

Theodore A. Roth <troth>
Wed 24 Mar 2004 03:52:42 PM UTC, original submission:  

Hello,
 
I'm a student and for my end studies workd, I have to work on the AVR
Microcontroller. I try to use the simulavr project, but there a probleme
with the compilation.
 
[joseph@localhost test_c]$ make
In file included from
/home/joseph/setOutils/opt/avrgcc/avr/include/ina90.h:100,
                  from
/home/joseph/setOutils/opt/avrgcc/avr/include/avr/pgmspace.h:57,
                  from demo.c:9:
.../src/eeprom.h:68: parse error before "VDevice"
.../src/eeprom.h:76: parse error before '*' token
.../src/eeprom.h:81: parse error before '*' token
.../src/eeprom.h:84: parse error before '}' token
.../src/eeprom.h:94: parse error before "FILE"
demo.c: In function `main':
demo.c:20: invalid lvalue in assignment
demo.c:23: invalid lvalue in assignment
make: * [demo.o] Erreur 1
[joseph@localhost test_c]$
 
 
I tryed to debug it but without success.
please can you tell me from where the problem comes ?
 
thx !
 
Joseph S

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-02-10 zfrdh StatusNone Done
    Assigned totroth None
    Open/ClosedOpen Closed
2004-03-24 troth Priority5 - Normal 2
    Assigned toNone troth

Back to the top

Powered by Savane 3.14-962f.
Corresponding source code