bugAVR C Runtime Library - Bugs: bug #13811, common/macros.inc throws error...

 
 

bug #13811: common/macros.inc throws error during compile

Submitted by:  None
Submitted on:  Thu 14 Jul 2005 10:39:33 PM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPercent Complete: 0%
Assigned to: NoneOriginator Email: -unavailable-
Open/Closed: ClosedRelease: None
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 15 Jul 2005 05:01:31 PM UTC, comment #1:

Duplicate for bug #12033. Fixed 01.07.2005.

Anatoly Sokolov <aesok>
Project Administrator
Thu 14 Jul 2005 10:39:33 PM UTC, original submission:

When compiling avr-libc-1.2.3, I get the error:
make[2]: Entering directory `/usr/local/src/avr-libc-1.2.3/libc/pmstring'
avr-gcc -DPACKAGE=\"avr-libc\" -DVERSION=\"1.2.3\" -D__AVRLIBC__=1 -D__AVRLIBC_MINOR__=2 -I. -I. -I../../include -I../../common -x assembler-with-cpp -Wa,-gstabs -D__COMPILING_AVR_LIBC__ -mmcu=avr2 -c strlcat_P.S -o strlcat_P.o
../../common/macros.inc: Assembler messages:
../../common/macros.inc:129: Error: Macro with this name was already defined
../../common/macros.inc:181: Error: Macro with this name was already defined
../../common/macros.inc:189: Error: Macro with this name was already defined
../../common/macros.inc:198: Error: Macro with this name was already defined

This is because strlcat_P.S includes gasava.inc which includes macro.inc and also includes macro.inc. macro.inc lacks the fix that prevents the reloading of the header.
The solution is to add:
#ifndef _MACROS_INC
#define _MACROS_INC
#endif /* _MACROS_INC */
around macros.inc just like it is done in gasava.inc.

With this addition, 1.2.3 compiles correctly.

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

 

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

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 15 Jul 2005 05:01:31 PM UTCaesokOpen/ClosedOpen=>Closed
Fri 15 Jul 2005 05:01:30 PM UTCaesokStatusNone=>Fixed
Thu 14 Jul 2005 10:39:34 PM UTCNoneCarbon-Copy-=>Added jvoss --AT-- myuw --DOT-- net

Back to the top


Powered by Savane 3.1-cleanup1