Skip to content

Xtensa Clang fails to compile Nuttx (LLVM-252) #68

Closed
@lucic71

Description

@lucic71

Hi,

I was trying to compile Nuttx with the Clang fork provided in this repo and the following error is triggered:

/home/lucianp/git/nuttxspace/nuttx/include/arch/syscall.h:265:6: error: invalid operand for instruction
    "wsr a5, intset\n"
     ^
<inline asm>:2:9: note: instantiated into assembly here
wsr a5, intset

This code is part of sys_call2, but the error is triggered for all sys_call variants.

Note that I added -target xtensa to CFLAGS.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions