Your message dated Tue, 23 Jul 2024 19:04:57 +0200
with message-id <zp_iusebr-rqt...@aurel32.net>
and subject line Re: Bug#1075851: mayavi2: FTBFS on ppc64el and riscv64
has caused the Debian Bug report #1075851,
regarding mayavi2: FTBFS on ppc64el and riscv64
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1075851: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075851
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: mayavi2
Version: 4.8.1-5
Severity: serious
Tags: ftbfs
X-Debbugs-Cc: debian-ri...@lists.debian.org, debian-powe...@lists.debian.org

Hi Maintainer

mayavi2 FTBFS on ppc64el [1] and riscv64 [2], where it built
previously.   I've copied what I hope
is the relevant part of the log below.

This is blocking the transition to Python 3.12 as default.

Regards
Graham


[1] https://buildd.debian.org/status/logs.php?pkg=mayavi2&arch=ppc64el
[2] https://buildd.debian.org/status/logs.php?pkg=mayavi2&arch=riscv64

INFO: compile options: '-I/usr/include/python3.12 -c'
extra options: '-march=native'
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/setup.py", line 432, in <module>
    setup(
  File "/usr/lib/python3/dist-packages/numpy/distutils/core.py", line
170, in setup
    return old_setup(**new_attr)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line
107, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py",
line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py",
line 201, in run_commands
    dist.run_commands()
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py",
line 969, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1233,
in run_command
    super().run_command(command)
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py",
line 988, in run_command
    cmd_obj.run()
  File "/<<PKGBUILDDIR>>/setup.py", line 288, in run
    build.build.run(self)
  File "/usr/lib/python3/dist-packages/numpy/distutils/command/build.py",
line 62, in run
    old_build.run(self)
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py",
line 131, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py",
line 318, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1233,
in run_command
    super().run_command(command)
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py",
line 988, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/numpy/distutils/command/build_ext.py",
line 163, in run
    self.compiler_opt = new_ccompiler_opt(
                        ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/numpy/distutils/ccompiler_opt.py",
line 2665, in new_ccompiler_opt
    opt = CCompilerOpt(compiler, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/numpy/distutils/ccompiler_opt.py",
line 2223, in __init__
    _CCompiler.__init__(self)
  File "/usr/lib/python3/dist-packages/numpy/distutils/ccompiler_opt.py",
line 1075, in __init__
    if self.cc_test_flags([f]):
       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/numpy/distutils/ccompiler_opt.py",
line 908, in cache_wrap_me
    ccb = cb(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/numpy/distutils/ccompiler_opt.py",
line 1088, in cc_test_flags
    test = self.dist_test(test_path, flags)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/numpy/distutils/ccompiler_opt.py",
line 632, in dist_test
    self.dist_compile(
  File "/usr/lib/python3/dist-packages/numpy/distutils/ccompiler_opt.py",
line 614, in dist_compile
    return ccompiler.compile(sources, extra_postargs=flags, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py",
line 91, in <lambda>
    m = lambda self, *args, **kw: func(self, *args, **kw)
                                  ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py",
line 369, in CCompiler_compile
    single_compile(o)
  File "/usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py",
line 328, in single_compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/usr/lib/python3/dist-packages/numpy/distutils/ccompiler.py",
line 91, in <lambda>
    m = lambda self, *args, **kw: func(self, *args, **kw)
                                  ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py",
line 54, in UnixCCompiler__compile
    self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + deps +
  File "/usr/lib/python3/dist-packages/numpy/distutils/ccompiler_opt.py",
line 756, in _dist_test_spawn
    o = subprocess.check_output(cmd, stderr=subprocess.STDOUT,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 550, in run
    stdout, stderr = process.communicate(input, timeout=timeout)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 1196, in communicate
    stdout = self.stdout.read()
             ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position
30: ordinal not in range(128)
INFO: CCompilerOpt.cache_flush[864] : write cache to path ->
/<<PKGBUILDDIR>>/build/temp.linux-riscv64-cpython-312/ccompiler_opt_cache_ext.py
Exception ignored in: <function _Cache.__del__ at 0x3f9a0fb6a0>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/numpy/distutils/ccompiler_opt.py",
line 852, in __del__
AttributeError: 'NoneType' object has no attribute 'items'
E: pybuild pybuild:389: build: plugin distutils failed with: exit
code=1: /usr/bin/python3 setup.py build

--- End Message ---
--- Begin Message ---
On 2024-07-08 22:15, Aurelien Jarno wrote:
> On 2024-07-06 12:09, Graham Inggs wrote:
> > Source: mayavi2
> > Version: 4.8.1-5
> > Severity: serious
> > Tags: ftbfs
> > X-Debbugs-Cc: debian-ri...@lists.debian.org, debian-powe...@lists.debian.org
> > 
> > Hi Maintainer
> > 
> > mayavi2 FTBFS on ppc64el [1] and riscv64 [2], where it built
> > previously.   I've copied what I hope
> > is the relevant part of the log below.
> 
> From a quick look, the problems appears when testing for the support of
> -march=native. ppc64el and riscv64 have in common that they don't
> support this GCC option.
> 
> Normally this fails the following way:
> 
> | $ gcc -march=native
> | gcc: error: '-march=native': ISA string must begin with rv32 or rv64
> | gcc: fatal error: no input files
> | compilation terminated.
> 
> However something sets LC_CTYPE to C.UTF-8, and pybuild also sets LC_ALL
> to C.UTF-8. This causes GCC to output a slightly different error message:
> 
> | $ LC_CTYPE=C.UTF-8 gcc -march=native
> | gcc: error: ‘-march=native’: ISA string must begin with rv32 or rv64
> | gcc: fatal error: no input files
> | compilation terminated.
> 
> Note how the quotes are different and use non-ASCII characters. This is
> what chokes numpy distutils code. Now I am not sure why the problem
> suddenly happens. It might be related or not to a Python 3.12 change.

The numpy distutils code is not shipped anymore since version the binNMU 
1:1.26.4+ds-10+b1, as it has been rebuilt against a Python version
without distutils issue.

That said mayavi2 does not build anymore following the removal of
python3-distutils, but this is a different issue not specific to
riscv64, so I have opened bug #1076818.

I am therefore closing this bug.

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurel...@aurel32.net                     http://aurel32.net

--- End Message ---

Reply via email to