Skip to content

How to build the Toolchains with specific CFLAGS and CXXFLAGS? #1861

@Krotti83

Description

@Krotti83

I have some issues with the built binaries, especially GDB. In the default build I get an illegal instruction exception (SIGILL) when trying to use the simulator from GDB. Seems the binary from the simulator use some x86 AVX instructions which are not available on my very old system.

For non-RISC-V toolchains I pass the options with CFLAGS and CXXFLAGS to the configure script to the build system, where I define -march and -mtune. I have tried to pass the option in the configure script from this repository too, but these flags will be ignored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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