Article ID: 000077776 Content Type: Troubleshooting Last Reviewed: 09/11/2012

Why do I get the error "error: macro names must be identifiers" when compiling my Nios II standalone Board Support Package?

Environment

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Description

The GNU compiler tools do not allow preprocessor identifiers that start with a number. This issue can be seen when the user creates a peripheral in the Qsys GUI and gives it a name that starts with a number. This results in macro functions that fail when parsed by the GNU preprocessor.

To resolve this issue, rename the peripherals within your system to start with a letter. Generation of the standalone Board Support Package (BSP) should then not fail with this error.

Related Products

This article applies to 1 products

Intel® Programmable Devices