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

 
 

bug #12295: _cooked_size compilation error and solution

Submitter:  None
Submitted:  Sat 12 Mar 2005 10:38:10 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  zfrdh
Originator Email:  * -email is unavailable- Open/Closed:  Closed
Component Version:  * None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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>
Group administrator
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 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 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-03-13 zfrdh StatusNone Fixed
    Assigned toNone zfrdh
    Open/ClosedOpen Closed
2005-03-12 None Carbon-Copy- Added seventhguardian_ --AT-- hotmail --DOT-- com

Back to the top

Powered by Savane 3.13-aa77.
Corresponding source code