打印

ros2-platform

[复制链接]
1416|11
手机看帖
扫描二维码
随时随地手机跟帖
沙发
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)

使用特权

评论回复
5
keer_zu|  楼主 | 2024-4-18 09:40 | 只看该作者
this developer dose a lot of work related to ros2 security:

https://github.com/ShawnSchaerer

使用特权

评论回复
6
keer_zu|  楼主 | 2024-4-19 10:22 | 只看该作者
rosdep install --from-paths src --ignore-src -r -y
 rosdep install --from-paths src --ignore-src -r -y --rosdistro galactic



使用特权

评论回复
7
keer_zu|  楼主 | 2024-4-19 14:03 | 只看该作者
add:
#define ASIO_HAS_PTHREADS

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



使用特权

评论回复
8
keer_zu|  楼主 | 2024-4-19 14:03 | 只看该作者

and

ros2_foxy/src/eProsima/Fast-DDS/thirdparty/asio/asio/include/asio/detail/signal_blocker.hpp

使用特权

评论回复
9
keer_zu|  楼主 | 2024-4-19 14:18 | 只看该作者
src/qnx_deps/netifaces_vendor/CMakeLists.txt

delete "-Vgcc_ntoaarch64le" opition

使用特权

评论回复
10
keer_zu|  楼主 | 2024-4-19 14:40 | 只看该作者
this issue:

--- 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_foxy/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/doc/source/_static/scipy-mathjax'...
Cloning into '/home/kevin/ros2_foxy/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/core/src/npysort/x86-simd-sort'...
Cloning into '/home/kevin/ros2_foxy/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/core/src/umath/svml'...
Traceback (most recent call last):
  File "setup.py", line 22, in <module>
    raise RuntimeError("Python version >= 3.9 required.")
RuntimeError: Python version >= 3.9 required.
make[2]: *** [numpy-prefix/src/numpy-stamp/numpy-build] Error 1
make[1]: *** [CMakeFiles/numpy.dir/all] Error 2
make: *** [all] Error 2
---
Failed   <<< numpy_vendor [1min 50s, exited with code 2]

i did this:

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



使用特权

评论回复
11
keer_zu|  楼主 | 2024-4-19 14:52 | 只看该作者
this issue:

--- 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_foxy/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/doc/source/_static/scipy-mathjax'...
Cloning into '/home/kevin/ros2_foxy/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/core/src/npysort/x86-simd-sort'...
Cloning into '/home/kevin/ros2_foxy/build/aarch64le/numpy_vendor/numpy-prefix/src/numpy/numpy/core/src/umath/svml'...
Traceback (most recent call last):
  File "setup.py", line 22, in <module>
    raise RuntimeError("Python version >= 3.9 required.")
RuntimeError: Python version >= 3.9 required.
make[2]: *** [numpy-prefix/src/numpy-stamp/numpy-build] Error 1
make[1]: *** [CMakeFiles/numpy.dir/all] Error 2
make: *** [all] Error 2
---
Failed   <<< numpy_vendor [1min 50s, exited with code 2]

i did this:

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



使用特权

评论回复
12
keer_zu|  楼主 | 2024-4-19 14:56 | 只看该作者
HEAD is now at 3e02d91 Bumped version number.
In file included from /usr/include/python3.8/Python.h:8,
                 from netifaces.c:1:
/usr/include/python3.8/pyconfig.h:104:3: error: #error unknown multiarch location for pyconfig.h
# error unknown multiarch location for pyconfig.h
   ^~~~~
In file included from /usr/include/python3.8/pyport.h:4,
                 from /usr/include/python3.8/Python.h:63,
                 from netifaces.c:1:
/usr/include/python3.8/pyconfig.h:104:3: error: #error unknown multiarch location for pyconfig.h
# error unknown multiarch location for pyconfig.h
   ^~~~~
In file included from /usr/include/python3.8/pymath.h:4,
                 from /usr/include/python3.8/Python.h:84,
                 from netifaces.c:1:
/usr/include/python3.8/pyconfig.h:104:3: error: #error unknown multiarch location for pyconfig.h
# error unknown multiarch location for pyconfig.h
   ^~~~~
In file included from /usr/include/python3.8/pytime.h:5,
                 from /usr/include/python3.8/Python.h:85,
                 from netifaces.c:1:
/usr/include/python3.8/pyconfig.h:104:3: error: #error unknown multiarch location for pyconfig.h
# error unknown multiarch location for pyconfig.h
   ^~~~~
In file included from /usr/include/python3.8/Python.h:85,
                 from netifaces.c:1:
/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
PyAPI_FUNC(int) _PyTime_FromTimeval(_PyTime_t *tp, struct timeval *tv);
                                                           ^~~~~~~
/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
     struct timeval *tv,
            ^~~~~~~
/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
     struct timeval *tv,
            ^~~~~~~
In file included from /usr/include/python3.8/Python.h:97,
                 from netifaces.c:1:
/usr/include/python3.8/unicodeobject.h:68:2: error: #error Must define SIZEOF_WCHAR_T
#error Must define SIZEOF_WCHAR_T
  ^~~~~
In file included from /usr/include/python3.8/Python.h:156,
                 from netifaces.c:1:
/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
#  define _Py_stat_struct stat
                           ^~~~
/usr/include/python3.8/fileutils.h:95:12: note: in expansion of macro '_Py_stat_struct'
     struct _Py_stat_struct *status);
            ^~~~~~~~~~~~~~~
/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
#  define _Py_stat_struct stat
                           ^~~~
/usr/include/python3.8/fileutils.h:99:12: note: in expansion of macro '_Py_stat_struct'
     struct _Py_stat_struct *status);
            ^~~~~~~~~~~~~~~
/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
     struct stat *status);
            ^~~~
error: command '/home/kevin/qnx710/host/linux/x86_64/usr/bin/aarch64-unknown-nto-qnx7.1.0-gcc' failed with exit status 1
make[2]: *** [netifaces-prefix/src/netifaces-stamp/netifaces-build] Error 1
make[1]: *** [CMakeFiles/netifaces.dir/all] Error 2
make: *** [all] Error 2
---
Failed   <<< netifaces_vendor [10.1s, exited with code 2]
#error Must define SIZEOF_WCHAR_T
  ^~~~~
In file included from /usr/include/python3.8/Python.h:156,
                 from netifaces.c:1:
/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
#  define _Py_stat_struct stat
                           ^~~~
/usr/include/python3.8/fileutils.h:95:12: note: in expansion of macro '_Py_stat_struct'
     struct _Py_stat_struct *status);
            ^~~~~~~~~~~~~~~
/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
#  define _Py_stat_struct stat
                           ^~~~
/usr/include/python3.8/fileutils.h:99:12: note: in expansion of macro '_Py_stat_struct'
     struct _Py_stat_struct *status);
            ^~~~~~~~~~~~~~~
/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
     struct stat *status);
            ^~~~
error: command '/home/kevin/qnx710/host/linux/x86_64/usr/bin/aarch64-unknown-nto-qnx7.1.0-gcc' failed with exit status 1
make[2]: *** [netifaces-prefix/src/netifaces-stamp/netifaces-build] Error 1
make[1]: *** [CMakeFiles/netifaces.dir/all] Error 2
make: *** [all] Error 2
---
Failed   <<< netifaces_vendor [10.1s, exited with code 2]


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

temporarily

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

1349

主题

12426

帖子

53

粉丝