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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitter:  None
Submitted:  Thu 14 Jul 2005 10:39:33 PM UTC
   
 
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Percent Complete:  0% Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  None
Fixed Release:  None

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

Duplicate for bug #12033. Fixed 01.07.2005.

Anatoly Sokolov <aesok>
Group 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.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-07-15 aesok Open/ClosedOpen Closed
2005-07-15 aesok StatusNone Fixed
2005-07-14 None Carbon-Copy- Added jvoss --AT-- myuw --DOT-- net

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code