Skip to content

Warn about -mavx compile option #2

@ThwyIgo

Description

@ThwyIgo

In the Makefile, gcc is used with the -mavx flag, which allows it to use some instructions that are available only to some specific CPUs.
If the CPU doesn't support the instructions, make run will fail with the following unhelpful and confusing error message:

Makefile:21: recipe for target 'run' failed
make: *** [run] Error -1073741795

Possible solutions:

Just remove -mavx from the Makefile.
OR...
Warn the users that their CPU should support the AVX instruction set, and provide instructions to compile without AVX if it's not supported.

Info about the environment

OS: Windows 10 (native, without WSL)
Compiler: GCC

I speak portuguese if anything wasn't clear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions