Skip to content

Reply To: compile error on M1 chip

Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum, first register on this website and then send a message via our contact form.

Forums OpenLB Bug Reports compile error on M1 chip Reply To: compile error on M1 chip

#6329
Adrian
Keymaster

Thanks for your report. However, this likely is not something that we can fix on our end – a quick web search suggests that the “march=native” flag only works on architectures where defaults are provided by clang. You can check if something marching A1 is available via “clang –print-supported-cpus” in more recent clang versions.

Alternatively you may also drop the “march=native” flag completely as it is not required to get a working build (e.g. it is not included in the default debug flags).

I’d be interested in hearing if something breaks after that as I have not yet had the chance to test OpenLB on M1.