Hi Bo, On Fri, 2025-10-24 at 00:17 +0800, Bo YU wrote: > isospec failed to build ppc64el and riscv64 due to -march=native: > https://buildd.debian.org/status/fetch.php?pkg=isospec&arch=ppc64el&ver=2.2.3%2Bcleaned1-1&stamp=1761070922&raw=0 > https://buildd.debian.org/status/fetch.php?pkg=isospec&arch=riscv64&ver=2.2.3%2Bcleaned1-1&stamp=1761101061&raw=0 > > I proposal one patch below and test it on riscv64: > > --- a/setup.py > +++ b/setup.py > @@ -36,10 +36,7 @@ > return ["/O2", "/std:c++17"] > if use_asan: > return '-O0 -g -DISOSPEC_DEBUG -std=c++17 -fsanitize=address'.split() > - ret = ['-O3', '-std=c++17'] > - if native_ok: > - ret.extend(['-mtune=native', '-march=native']) > - return ret > + return ['-O3', '-std=c++17'] > > cmodule = Extension('IsoSpecCppPy', > sources = ['IsoSpec++/python-build.cpp'], >
Using -march=native is also a potential baseline violation and therefore the flag should be removed either way. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

