Skip to content

Build error. Wrong number of arguments for the attribute "interrupt". #2

Description

@erikmartinessanches

Following the installation instructions for macOS (10.13.2) this error appears when trying to build project-template with make:

mipsel-mcb32-elf-gcc -march=mips32r2 -msoft-float -Wa,-msoft-float -G 0 -ffreestanding -march=mips32r2 -msoft-float -Wa,-msoft-float -c -MD -o project.c.o project.c
mipsel-mcb32-elf-gcc -march=mips32r2 -msoft-float -Wa,-msoft-float -G 0 -ffreestanding -march=mips32r2 -msoft-float -Wa,-msoft-float -c -MD -o main.c.o main.c
main.c:10:1: varning: attributdirektivet ”vector” ignorerat [-Wattributes]
 void __attribute__((vector(4), interrupt(IPL7))) blinkISR(void){
 ^
main.c:10:1: fel: fel antal argument angivet för attributet ”interrupt”
Makefile:71: recipe for target 'main.c.o' failed
make: *** [main.c.o] Error 1

make -version:
GNU Make 4.1 Built for x86_64-apple-darwin14.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions