[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #13811] common/macros.inc throws error during compil
From: |
anonymous |
Subject: |
[avr-libc-dev] [bug #13811] common/macros.inc throws error during compile |
Date: |
Thu, 14 Jul 2005 22:39:35 +0000 |
User-agent: |
Mozilla/5.0 (compatible; Konqueror/3.3; Linux) (KHTML, like Gecko) |
URL:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=13811>
Summary: common/macros.inc throws error during compile
Project: AVR C Runtime Library
Submitted by: None
Submitted on: Thu 07/14/2005 at 18:39
Category: Header
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Percent Complete: 0%
Originator Email: address@hidden
Open/Closed: Open
_______________________________________________________
Details:
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.
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
jvoss --AT-- myuw --DOT-- net | Originator Email
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=13811>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [avr-libc-dev] [bug #13811] common/macros.inc throws error during compile,
anonymous <=