tianyikillua / medcoupling

Python repackaging of the MEDCoupling library
GNU Lesser General Public License v2.1
4 stars 3 forks source link

swig 4.1.1 installed from pip install, macOS 13.5 #6

Open hhhcj opened 1 year ago

hhhcj commented 1 year ago
 /private/var/folders/t6/465xs6k90tb7cfthlkl65wfw0000gn/T/pip-install-0dry_i65/medcoupling_f70c7cb9521f4ee99275ebc08f3d2564/medCoupling-9.7.0/src/MEDCoupling_Swig/../MEDCoupling/MEDCouplingMemArray.txx:2508:57: warning: implicit conversion changes signedness: 'MEDCoupling::mcIdType' (aka 'int') to 'unsigned long' [-Wsign-conversion]
              std::copy(work,work+effNbSh,work+(nbOfCompo-effNbSh));// ze big shift
                                                         ~^~~~~~~
  /private/var/folders/t6/465xs6k90tb7cfthlkl65wfw0000gn/T/pip-install-0dry_i65/medcoupling_f70c7cb9521f4ee99275ebc08f3d2564/medCoupling-9.7.0/src/MEDCoupling_Swig/../MEDCoupling/MEDCouplingMemArray.txx:2509:51: warning: implicit conversion changes signedness: 'MEDCoupling::mcIdType' (aka 'int') to 'unsigned long' [-Wsign-conversion]
              std::copy((T*)buf,(T *)buf+(nbOfCompo-effNbSh),work);
                                                   ~^~~~~~~
  /private/var/folders/t6/465xs6k90tb7cfthlkl65wfw0000gn/T/pip-install-0dry_i65/medcoupling_f70c7cb9521f4ee99275ebc08f3d2564/medCoupling-9.7.0/src/MEDCoupling_Swig/../MEDCoupling/MEDCouplingMemArray.txx:2514:32: warning: implicit conversion changes signedness: 'MEDCoupling::mcIdType' (aka 'int') to 'unsigned long' [-Wsign-conversion]
        sts[i]=_info_on_compo[(i+effNbSh)%nbOfCompo];
                                ~^~~~~~~
  2915 warnings and 5 errors generated.
  make[2]: *** [src/MEDCoupling_Swig/CMakeFiles/_MEDCoupling.dir/CMakeFiles/_MEDCoupling.dir/MEDCouplingPYTHON_wrap.cxx.o] Error 1
  make[1]: *** [src/MEDCoupling_Swig/CMakeFiles/_MEDCoupling.dir/all] Error 2
  make: *** [all] Error 2
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/private/var/folders/t6/465xs6k90tb7cfthlkl65wfw0000gn/T/pip-install-0dry_i65/medcoupling_f70c7cb9521f4ee99275ebc08f3d2564/setup.py", line 168, in <module>
      setup(
    File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
      return distutils.core.setup(**attrs)
    File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 973, in run_commands
      self.run_command(cmd)
    File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 1217, in run_command
      super().run_command(command)
    File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
      self.distribution.run_command(command)
    File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 1217, in run_command
      super().run_command(command)
    File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 132, in run
      self.run_command(cmd_name)
    File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
      self.distribution.run_command(command)
    File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 1217, in run_command
      super().run_command(command)
    File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
      cmd_obj.run()
    File "/private/var/folders/t6/465xs6k90tb7cfthlkl65wfw0000gn/T/pip-install-0dry_i65/medcoupling_f70c7cb9521f4ee99275ebc08f3d2564/setup.py", line 149, in run
      download_build_medcoupling()
    File "/private/var/folders/t6/465xs6k90tb7cfthlkl65wfw0000gn/T/pip-install-0dry_i65/medcoupling_f70c7cb9521f4ee99275ebc08f3d2564/setup.py", line 127, in download_build_medcoupling
      subprocess.check_call(cmake_build_args, cwd=builddir, env=env)
    File "/usr/local/Cellar/python@3.9/3.9.14/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 373, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['/usr/local/bin/cmake', '--build', '.', '--config', 'Release', '--target', 'install']' returned non-zero exit status 2.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for medcoupling Running setup.py clean for medcoupling Failed to build medcoupling ERROR: Could not build wheels for medcoupling, which is required to install pyproject.toml-based projects (gwstore) lawrence-he:build apple$