ros2-platform

[复制链接]
 楼主| keer_zu 发表于 2024-4-17 10:16 | 显示全部楼层 |阅读模式
qnx.nto.toolchain.cmake.tar.gz (1.64 KB, 下载次数: 2)
 楼主| keer_zu 发表于 2024-4-17 13:13 | 显示全部楼层
ros2_galactic/src/eProsima/Fast-DDS/thirdparty/asio/asio/include/asio/detail/tss_ptr.hpp
ros2_galactic/src/eProsima/Fast-DDS/thirdparty/asio/asio/include/asio/detail/signal_blocker.hpp

add:

#define ASIO_HAS_PTHREADS
 楼主| keer_zu 发表于 2024-4-17 13:14 | 显示全部楼层
Starting >>> zstd_vendor                                                                                                                           
--- stderr: numpy_vendor                                                                                                                                 
Cloning into 'numpy'...
Note: switching to 'db4f43983cb938f12c311e1f5b7165e270c393b4'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at db4f43983c Merge pull request #23966 from charris/prepare-1.25.0-release
Submodule 'doc/source/_static/scipy-mathjax' (https://github.com/scipy/scipy-mathjax.git) registered for path 'doc/source/_static/scipy-mathjax'
Submodule 'numpy/core/src/npysort/x86-simd-sort' (https://github.com/intel/x86-simd-sort) registered for path 'numpy/core/src/npysort/x86-simd-sort'
Submodule 'numpy/core/src/umath/svml' (https://github.com/numpy/SVML.git) registered for path 'numpy/core/src/umath/svml'
Cloning into '/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/doc/source/_static/scipy-mathjax'...
Cloning into '/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/core/src/npysort/x86-simd-sort'...
Cloning into '/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/core/src/umath/svml'...
/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/setup.py:17: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.errors import CompileError
Running from numpy source directory.
/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/setup.py:69: DeprecationWarning:

  `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
  of the deprecation of `distutils` itself. It will be removed for
  Python >= 3.12. For older Python versions it will remain present.
  It is recommended to use `setuptools < 60.0` for those Python versions.
  For more details, see:
    https://numpy.org/devdocs/refere ... atus_migration.html


  import numpy.distutils.command.sdist
/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/distutils/system_info.py:2161: UserWarning:
    Optimized (vendor) Blas libraries are not found.
    Falls back to netlib Blas library which has worse performance.
    A better performance should be easily gained by switching
    Blas library.
  if self._calc_info(blas):
/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/distutils/system_info.py:2161: UserWarning:
    Blas (http://www.netlib.org/blas/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [blas]) or by setting
    the BLAS environment variable.
  if self._calc_info(blas):
/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/distutils/system_info.py:2161: UserWarning:
    Blas (http://www.netlib.org/blas/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [blas_src]) or by setting
    the BLAS_SRC environment variable.
  if self._calc_info(blas):
/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/distutils/system_info.py:1979: UserWarning:
    Lapack (http://www.netlib.org/lapack/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [lapack]) or by setting
    the LAPACK environment variable.
  return getattr(self, '_calc_info_{}'.format(name))()
/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/distutils/system_info.py:1979: UserWarning:
    Lapack (http://www.netlib.org/lapack/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [lapack_src]) or by setting
    the LAPACK_SRC environment variable.
  return getattr(self, '_calc_info_{}'.format(name))()
Warning: attempted relative import with no known parent package
/usr/lib/python3.11/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
  warnings.warn(msg)
Traceback (most recent call last):
  File "/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/setup.py", line 567, in <module>
    setup_package()
  File "/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/setup.py", line 559, in setup_package
    setup(**metadata)
  File "/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/distutils/core.py", line 169, in setup
    return old_setup(**new_attr)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/kevin/env/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.11/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/home/kevin/env/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/usr/lib/python3.11/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/distutils/command/build_ext.py", line 101, in run
    self.run_command('build_src')
  File "/usr/lib/python3.11/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/kevin/env/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/usr/lib/python3.11/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/distutils/command/build_src.py", line 144, in run
    self.build_sources()
  File "/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/distutils/command/build_src.py", line 155, in build_sources
    self.build_library_sources(*libname_info)
  File "/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/distutils/command/build_src.py", line 288, in build_library_sources
    sources = self.generate_sources(sources, (lib_name, build_info))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/distutils/command/build_src.py", line 378, in generate_sources
    source = func(extension, build_dir)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/core/setup.py", line 660, in get_mathlib_info
    mlibs = check_mathlib(config_cmd)
            ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kevin/ros2_galactic/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/core/setup.py", line 387, in check_mathlib
    raise RuntimeError(
RuntimeError: math library missing; rerun setup.py after setting the MATHLIB env variable
make[2]: *** [numpy-prefix/src/numpy-stamp/numpy-build] Error 1
make[1]: *** [CMakeFiles/numpy.dir/all] Error 2
make: *** [all] Error 2


 楼主| keer_zu 发表于 2024-4-17 15:55 | 显示全部楼层
build.tar.gz (2.54 KB, 下载次数: 1)
 楼主| keer_zu 发表于 2024-4-18 09:40 | 显示全部楼层
this developer dose a lot of work related to ros2 security:

https://github.com/ShawnSchaerer

 楼主| keer_zu 发表于 2024-4-19 10:22 | 显示全部楼层
  1. rosdep install --from-paths src --ignore-src -r -y
  1. rosdep install --from-paths src --ignore-src -r -y --rosdistro galactic



 楼主| keer_zu 发表于 2024-4-19 14:03 | 显示全部楼层
  1. add:
  2. #define ASIO_HAS_PTHREADS

  3. to
  4. ros2_foxy/src/eProsima/Fast-DDS/thirdparty/asio/asio/include/asio/detail/tss_ptr.hpp



 楼主| keer_zu 发表于 2024-4-19 14:03 | 显示全部楼层

and

  1. ros2_foxy/src/eProsima/Fast-DDS/thirdparty/asio/asio/include/asio/detail/signal_blocker.hpp
 楼主| keer_zu 发表于 2024-4-19 14:18 | 显示全部楼层
src/qnx_deps/netifaces_vendor/CMakeLists.txt

delete "-Vgcc_ntoaarch64le" opition
 楼主| keer_zu 发表于 2024-4-19 14:40 | 显示全部楼层
this issue:

  1. --- stderr: numpy_vendor                                                                                                                                                              
  2. Cloning into 'numpy'...
  3. Note: switching to 'db4f43983cb938f12c311e1f5b7165e270c393b4'.

  4. You are in 'detached HEAD' state. You can look around, make experimental
  5. changes and commit them, and you can discard any commits you make in this
  6. state without impacting any branches by switching back to a branch.

  7. If you want to create a new branch to retain commits you create, you may
  8. do so (now or later) by using -c with the switch command. Example:

  9.   git switch -c <new-branch-name>

  10. Or undo this operation with:

  11.   git switch -

  12. Turn off this advice by setting config variable advice.detachedHead to false

  13. HEAD is now at db4f43983c Merge pull request #23966 from charris/prepare-1.25.0-release
  14. Submodule 'doc/source/_static/scipy-mathjax' (https://github.com/scipy/scipy-mathjax.git) registered for path 'doc/source/_static/scipy-mathjax'
  15. Submodule 'numpy/core/src/npysort/x86-simd-sort' (https://github.com/intel/x86-simd-sort) registered for path 'numpy/core/src/npysort/x86-simd-sort'
  16. Submodule 'numpy/core/src/umath/svml' (https://github.com/numpy/SVML.git) registered for path 'numpy/core/src/umath/svml'
  17. Cloning into '/home/kevin/ros2_foxy/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/doc/source/_static/scipy-mathjax'...
  18. Cloning into '/home/kevin/ros2_foxy/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/core/src/npysort/x86-simd-sort'...
  19. Cloning into '/home/kevin/ros2_foxy/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/core/src/umath/svml'...
  20. Traceback (most recent call last):
  21.   File "setup.py", line 22, in <module>
  22.     raise RuntimeError("Python version >= 3.9 required.")
  23. RuntimeError: Python version >= 3.9 required.
  24. make[2]: *** [numpy-prefix/src/numpy-stamp/numpy-build] Error 1
  25. make[1]: *** [CMakeFiles/numpy.dir/all] Error 2
  26. make: *** [all] Error 2
  27. ---
  28. Failed   <<< numpy_vendor [1min 50s, exited with code 2]

i did this:

  1. mv -f src/qnx_deps/numpy_vendor/  ~/source/ros2_foxy/src/qnx_deps/



 楼主| keer_zu 发表于 2024-4-19 14:52 | 显示全部楼层
this issue:

  1. --- stderr: numpy_vendor                                                                                                                                                              
  2. Cloning into 'numpy'...
  3. Note: switching to 'db4f43983cb938f12c311e1f5b7165e270c393b4'.

  4. You are in 'detached HEAD' state. You can look around, make experimental
  5. changes and commit them, and you can discard any commits you make in this
  6. state without impacting any branches by switching back to a branch.

  7. If you want to create a new branch to retain commits you create, you may
  8. do so (now or later) by using -c with the switch command. Example:

  9.   git switch -c <new-branch-name>

  10. Or undo this operation with:

  11.   git switch -

  12. Turn off this advice by setting config variable advice.detachedHead to false

  13. HEAD is now at db4f43983c Merge pull request #23966 from charris/prepare-1.25.0-release
  14. Submodule 'doc/source/_static/scipy-mathjax' (https://github.com/scipy/scipy-mathjax.git) registered for path 'doc/source/_static/scipy-mathjax'
  15. Submodule 'numpy/core/src/npysort/x86-simd-sort' (https://github.com/intel/x86-simd-sort) registered for path 'numpy/core/src/npysort/x86-simd-sort'
  16. Submodule 'numpy/core/src/umath/svml' (https://github.com/numpy/SVML.git) registered for path 'numpy/core/src/umath/svml'
  17. Cloning into '/home/kevin/ros2_foxy/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/doc/source/_static/scipy-mathjax'...
  18. Cloning into '/home/kevin/ros2_foxy/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/core/src/npysort/x86-simd-sort'...
  19. Cloning into '/home/kevin/ros2_foxy/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/core/src/umath/svml'...
  20. Traceback (most recent call last):
  21.   File "setup.py", line 22, in <module>
  22.     raise RuntimeError("Python version >= 3.9 required.")
  23. RuntimeError: Python version >= 3.9 required.
  24. make[2]: *** [numpy-prefix/src/numpy-stamp/numpy-build] Error 1
  25. make[1]: *** [CMakeFiles/numpy.dir/all] Error 2
  26. make: *** [all] Error 2
  27. ---
  28. Failed   <<< numpy_vendor [1min 50s, exited with code 2]

i did this:

  1. mv -f src/qnx_deps/numpy_vendor/  ~/source/ros2_foxy/src/qnx_deps/



 楼主| keer_zu 发表于 2024-4-19 14:56 | 显示全部楼层
  1. HEAD is now at 3e02d91 Bumped version number.
  2. In file included from /usr/include/python3.8/Python.h:8,
  3.                  from netifaces.c:1:
  4. /usr/include/python3.8/pyconfig.h:104:3: error: #error unknown multiarch location for pyconfig.h
  5. # error unknown multiarch location for pyconfig.h
  6.    ^~~~~
  7. In file included from /usr/include/python3.8/pyport.h:4,
  8.                  from /usr/include/python3.8/Python.h:63,
  9.                  from netifaces.c:1:
  10. /usr/include/python3.8/pyconfig.h:104:3: error: #error unknown multiarch location for pyconfig.h
  11. # error unknown multiarch location for pyconfig.h
  12.    ^~~~~
  13. In file included from /usr/include/python3.8/pymath.h:4,
  14.                  from /usr/include/python3.8/Python.h:84,
  15.                  from netifaces.c:1:
  16. /usr/include/python3.8/pyconfig.h:104:3: error: #error unknown multiarch location for pyconfig.h
  17. # error unknown multiarch location for pyconfig.h
  18.    ^~~~~
  19. In file included from /usr/include/python3.8/pytime.h:5,
  20.                  from /usr/include/python3.8/Python.h:85,
  21.                  from netifaces.c:1:
  22. /usr/include/python3.8/pyconfig.h:104:3: error: #error unknown multiarch location for pyconfig.h
  23. # error unknown multiarch location for pyconfig.h
  24.    ^~~~~
  25. In file included from /usr/include/python3.8/Python.h:85,
  26.                  from netifaces.c:1:
  27. /usr/include/python3.8/pytime.h:123:59: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  28. PyAPI_FUNC(int) _PyTime_FromTimeval(_PyTime_t *tp, struct timeval *tv);
  29.                                                            ^~~~~~~
  30. /usr/include/python3.8/pytime.h:130:12: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  31.      struct timeval *tv,
  32.             ^~~~~~~
  33. /usr/include/python3.8/pytime.h:135:12: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  34.      struct timeval *tv,
  35.             ^~~~~~~
  36. In file included from /usr/include/python3.8/Python.h:97,
  37.                  from netifaces.c:1:
  38. /usr/include/python3.8/unicodeobject.h:68:2: error: #error Must define SIZEOF_WCHAR_T
  39. #error Must define SIZEOF_WCHAR_T
  40.   ^~~~~
  41. In file included from /usr/include/python3.8/Python.h:156,
  42.                  from netifaces.c:1:
  43. /usr/include/python3.8/fileutils.h:90:27: warning: 'struct stat' declared inside parameter list will not be visible outside of this definition or declaration
  44. #  define _Py_stat_struct stat
  45.                            ^~~~
  46. /usr/include/python3.8/fileutils.h:95:12: note: in expansion of macro '_Py_stat_struct'
  47.      struct _Py_stat_struct *status);
  48.             ^~~~~~~~~~~~~~~
  49. /usr/include/python3.8/fileutils.h:90:27: warning: 'struct stat' declared inside parameter list will not be visible outside of this definition or declaration
  50. #  define _Py_stat_struct stat
  51.                            ^~~~
  52. /usr/include/python3.8/fileutils.h:99:12: note: in expansion of macro '_Py_stat_struct'
  53.      struct _Py_stat_struct *status);
  54.             ^~~~~~~~~~~~~~~
  55. /usr/include/python3.8/fileutils.h:103:12: warning: 'struct stat' declared inside parameter list will not be visible outside of this definition or declaration
  56.      struct stat *status);
  57.             ^~~~
  58. error: command '/home/kevin/qnx710/host/linux/x86_64/usr/bin/aarch64-unknown-nto-qnx7.1.0-gcc' failed with exit status 1
  59. make[2]: *** [netifaces-prefix/src/netifaces-stamp/netifaces-build] Error 1
  60. make[1]: *** [CMakeFiles/netifaces.dir/all] Error 2
  61. make: *** [all] Error 2
  62. ---
  63. Failed   <<< netifaces_vendor [10.1s, exited with code 2]
  64. #error Must define SIZEOF_WCHAR_T
  65.   ^~~~~
  66. In file included from /usr/include/python3.8/Python.h:156,
  67.                  from netifaces.c:1:
  68. /usr/include/python3.8/fileutils.h:90:27: warning: 'struct stat' declared inside parameter list will not be visible outside of this definition or declaration
  69. #  define _Py_stat_struct stat
  70.                            ^~~~
  71. /usr/include/python3.8/fileutils.h:95:12: note: in expansion of macro '_Py_stat_struct'
  72.      struct _Py_stat_struct *status);
  73.             ^~~~~~~~~~~~~~~
  74. /usr/include/python3.8/fileutils.h:90:27: warning: 'struct stat' declared inside parameter list will not be visible outside of this definition or declaration
  75. #  define _Py_stat_struct stat
  76.                            ^~~~
  77. /usr/include/python3.8/fileutils.h:99:12: note: in expansion of macro '_Py_stat_struct'
  78.      struct _Py_stat_struct *status);
  79.             ^~~~~~~~~~~~~~~
  80. /usr/include/python3.8/fileutils.h:103:12: warning: 'struct stat' declared inside parameter list will not be visible outside of this definition or declaration
  81.      struct stat *status);
  82.             ^~~~
  83. error: command '/home/kevin/qnx710/host/linux/x86_64/usr/bin/aarch64-unknown-nto-qnx7.1.0-gcc' failed with exit status 1
  84. make[2]: *** [netifaces-prefix/src/netifaces-stamp/netifaces-build] Error 1
  85. make[1]: *** [CMakeFiles/netifaces.dir/all] Error 2
  86. make: *** [all] Error 2
  87. ---
  88. Failed   <<< netifaces_vendor [10.1s, exited with code 2]


i remove this directory:
  1. mv -f src/qnx_deps/netifaces_vendor/  ~/source/ros2_foxy/src/qnx_deps/

temporarily

您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:qq群:49734243 Email:zukeqiang@gmail.com

1478

主题

12917

帖子

55

粉丝
快速回复 在线客服 返回列表 返回顶部