bugSimulavr: an AVR simulator - Bugs: bug #12295, _cooked_size compilation error and...

 
 

bug #12295: _cooked_size compilation error and solution

Submitted by:  None
Submitted on:  Sat 12 Mar 2005 10:38:10 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Klaus Rudolph <zfrdh>
Originator Email: -unavailable-Open/Closed: Closed
Component Version: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 19 Oct 2005 06:11:22 AM UTC, comment #3:

From my point of view you allways have to compile a libbfd for avr target to use simulavrxx. And if you have to compile a avr version you can compile allways an actual one. Attention: Using header files from different libbfd versions can result in total misbehaviour or crash of simulavrxx. So please allways use actual binutils and and take care that the actual headers will be used from build tool chain.

Klaus Rudolph <zfrdh>
Project AdministratorIn charge of this item.
Mon 17 Oct 2005 09:58:04 PM UTC, comment #2:

I use Debian Sarge, and the bfd lib shipped with the distribution still use _cooked_size. Why not support both ?

Anonymous
Sun 13 Mar 2005 02:58:32 PM UTC, comment #1:

Bug is fixed in CVS src/avrdevice.cpp

Thanks,
Klaus

Klaus Rudolph <zfrdh>
Project AdministratorIn charge of this item.
Sat 12 Mar 2005 10:38:10 PM UTC, original submission:

I got this error while trying to compile version 0.8-005:

avrdevice.cpp: In member function `void AvrDevice::Load(const char*)':
avrdevice.cpp:123: error: 'struct bfd_section' has no member named '
_cooked_size'
avrdevice.cpp:133: error: 'struct bfd_section' has no member named '
_cooked_size'
make[2]: *** [avrdevice.lo] Error 1
make[2]: Leaving directory `/home/renato/Caixote/Hardware/AVR/avr-simulation/simulavrxx-0.8.005/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/renato/Caixote/Hardware/AVR/avr-simulation/simulavrxx-0.8.005/src'
make: *** [all-recursive] Error 1

I found the solution. The field "_cooked_size" is now named "size". I made the correction in the source file "avrdevice.cpp" (only two places needed correction) and managed to compile it.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 13 Mar 2005 02:58:32 PM UTCzfrdhStatusNone=>Fixed
  Assigned toNone=>zfrdh
  Open/ClosedOpen=>Closed
Sat 12 Mar 2005 10:38:10 PM UTCNoneCarbon-Copy-=>Added seventhguardian_ --AT-- hotmail --DOT-- com

Back to the top


Powered by Savane 3.1-cleanup1