gatagat / lap

Linear Assignment Problem solver (LAPJV/LAPMOD).
BSD 2-Clause "Simplified" License
211 stars 66 forks source link

Failed To Build on NVIDIA XAVIER NX #33

Closed liu-mengyang closed 2 years ago

liu-mengyang commented 2 years ago

Hi, this is an amazing REPO for me to run many applications for many years. I have great admiration for you!

But at this time, I have to deploy my application on the NVIDIA XAVIER NX, whose architecture of CPU is ARMv8 and run in the Ubuntu OS. I met a big problem which I cannot find any answers about it from Google, Stackoverflow, and so on...

Please help me, this is important to me šŸ™

I list the errors I met:

Building wheels for collected packages: lap
  Building wheel for lap (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/ethan/miniconda3/envs/pt110/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-kq3g2mph/lap_e7aa1bbd3f4f4512b2c816ded6f8506b/setup.py'"'"'; __file__='"'"'/tmp/pip-install-kq3g2mph/lap_e7aa1bbd3f4f4512b2c816ded6f8506b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-rydfszek
       cwd: /tmp/pip-install-kq3g2mph/lap_e7aa1bbd3f4f4512b2c816ded6f8506b/
  Complete output (150 lines):
  Partial import of lap during the build process.
  Generating cython files
  running bdist_wheel
  running build
  running config_cc
  unifing config_cc, config, build_clib, build_ext, build commands --compiler options
  running config_fc
  unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
  running build_src
  build_src
  building extension "lap._lapjv" sources
  building data_files sources
  build_src: building npy-pkg config files
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.9
  creating build/lib.linux-aarch64-3.9/lap
  copying lap/__init__.py -> build/lib.linux-aarch64-3.9/lap
  copying lap/lapmod.py -> build/lib.linux-aarch64-3.9/lap
  running build_ext
  customize UnixCCompiler
  customize UnixCCompiler using build_ext
  CCompilerOpt.cc_test_flags[1013] : testing flags (-march=native)
  C compiler: gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC

  creating /tmp/tmp7ds1tf5u/home
  creating /tmp/tmp7ds1tf5u/home/ethan
  creating /tmp/tmp7ds1tf5u/home/ethan/miniconda3
  creating /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs
  creating /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110
  creating /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib
  creating /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9
  creating /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages
  creating /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy
  creating /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils
  creating /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks
  compile options: '-I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c'
  extra options: '-march=native'
  CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[716] : Command (gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC -I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c /home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.c -o /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.o -MMD -MF /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.o.d -march=native) failed with exit status 1 output ->
  gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
  gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?

  CCompilerOpt.cc_test_flags[1017] : testing failed
  CCompilerOpt.cc_test_flags[1013] : testing flags (-O3)
  C compiler: gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC

  compile options: '-I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c'
  extra options: '-O3'
  CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[716] : Command (gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC -I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c /home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.c -o /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.o -MMD -MF /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.o.d -O3) failed with exit status 1 output ->
  gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
  gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?

  CCompilerOpt.cc_test_flags[1017] : testing failed
  CCompilerOpt.cc_test_flags[1013] : testing flags (-Werror)
  C compiler: gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC

  compile options: '-I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c'
  extra options: '-Werror'
  CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[716] : Command (gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC -I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c /home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.c -o /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.o -MMD -MF /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.o.d -Werror) failed with exit status 1 output ->
  gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
  gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?

  CCompilerOpt.cc_test_flags[1017] : testing failed
  CCompilerOpt.__init__[1701] : check requested baseline
  CCompilerOpt.feature_test[1466] : testing feature 'NEON_FP16' with flags ()
  C compiler: gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC

  compile options: '-I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c'
  CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[716] : Command (gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC -I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c /home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/cpu_neon_fp16.c -o /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/cpu_neon_fp16.o -MMD -MF /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/cpu_neon_fp16.o.d) failed with exit status 1 output ->
  gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
  gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?

  CCompilerOpt.feature_test[1482] : testing failed
  CCompilerOpt.feature_test[1466] : testing feature 'NEON' with flags ()
  C compiler: gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC

  compile options: '-I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c'
  CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[716] : Command (gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC -I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c /home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/cpu_neon.o.d) failed with exit status 1 output ->
  gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
  gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?

  CCompilerOpt.feature_test[1482] : testing failed
  CCompilerOpt.__init__[1710] : check requested dispatch-able features
  CCompilerOpt.feature_test[1466] : testing feature 'NEON_VFPV4' with flags ()
  C compiler: gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC

  compile options: '-I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c'
  CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[716] : Command (gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC -I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c /home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmp7ds1tf5u/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d) failed with exit status 1 output ->
  gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
  gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?

  CCompilerOpt.feature_test[1482] : testing failed
  CCompilerOpt.__init__[1726] : initialize targets groups
  CCompilerOpt.__init__[1728] : parse target group simd_test
  CCompilerOpt._parse_target_tokens[1939] : skip targets (SSE42 VSX2 SSE2 VSX3 XOP AVX512_SKX FMA4 AVX512F NEON (AVX2 FMA3) ASIMD VSX) not part of baseline or dispatch-able features
  CCompilerOpt.generate_dispatch_header[2272] : generate CPU dispatch header: (build/src.linux-aarch64-3.9/numpy/distutils/include/npy_cpu_dispatch_config.h)
  CCompilerOpt.generate_dispatch_header[2281] : dispatch header dir build/src.linux-aarch64-3.9/numpy/distutils/include does not exist, creating it
  customize UnixCCompiler
  customize UnixCCompiler using build_ext
  building 'lap._lapjv' extension
  compiling C++ sources
  C compiler: g++ -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC

  creating build/temp.linux-aarch64-3.9/lap
  compile options: '-I/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/core/include -Ilap -I/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/core/include -Ibuild/src.linux-aarch64-3.9/numpy/distutils/include -I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c'
  g++: lap/_lapjv.cppg++: lap/lapjv.cpp
  g++: lap/lapmod.cpp

  g++: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  g++: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  g++: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  g++: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  g++: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  g++: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
  g++: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
  g++: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
  g++: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
  g++: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
  g++: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
  g++: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
  error: Command "g++ -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC -I/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/core/include -Ilap -I/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/core/include -Ibuild/src.linux-aarch64-3.9/numpy/distutils/include -I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c lap/lapjv.cpp -o build/temp.linux-aarch64-3.9/lap/lapjv.o -MMD -MF build/temp.linux-aarch64-3.9/lap/lapjv.o.d" failed with exit status 1

  ########### EXT COMPILER OPTIMIZATION ###########
  Platform      :
    Architecture: aarch64
    Compiler    : gcc

  CPU baseline  :
    Requested   : 'min'
    Enabled     : none
    Flags       : none
    Extra checks: none

  CPU dispatch  :
    Requested   : 'max -xop -fma4'
    Enabled     : none
    Generated   : none
  CCompilerOpt.cache_flush[809] : write cache to path -> /tmp/pip-install-kq3g2mph/lap_e7aa1bbd3f4f4512b2c816ded6f8506b/build/temp.linux-aarch64-3.9/ccompiler_opt_cache_ext.py
  ----------------------------------------
  ERROR: Failed building wheel for lap
  Running setup.py clean for lap
Failed to build lap
Installing collected packages: lap
    Running setup.py install for lap ... error
    ERROR: Command errored out with exit status 1:
     command: /home/ethan/miniconda3/envs/pt110/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-kq3g2mph/lap_e7aa1bbd3f4f4512b2c816ded6f8506b/setup.py'"'"'; __file__='"'"'/tmp/pip-install-kq3g2mph/lap_e7aa1bbd3f4f4512b2c816ded6f8506b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-og0mh0kk/install-record.txt --single-version-externally-managed --compile --install-headers /home/ethan/miniconda3/envs/pt110/include/python3.9/lap
         cwd: /tmp/pip-install-kq3g2mph/lap_e7aa1bbd3f4f4512b2c816ded6f8506b/
    Complete output (139 lines):
    Partial import of lap during the build process.
    Generating cython files
    running install
    running build
    running config_cc
    unifing config_cc, config, build_clib, build_ext, build commands --compiler options
    running config_fc
    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
    running build_src
    build_src
    building extension "lap._lapjv" sources
    building data_files sources
    build_src: building npy-pkg config files
    running build_py
    creating build
    creating build/lib.linux-aarch64-3.9
    creating build/lib.linux-aarch64-3.9/lap
    copying lap/__init__.py -> build/lib.linux-aarch64-3.9/lap
    copying lap/lapmod.py -> build/lib.linux-aarch64-3.9/lap
    running build_ext
    customize UnixCCompiler
    customize UnixCCompiler using build_ext
    CCompilerOpt.cc_test_flags[1013] : testing flags (-march=native)
    C compiler: gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC

    creating /tmp/tmpw743dubj/home
    creating /tmp/tmpw743dubj/home/ethan
    creating /tmp/tmpw743dubj/home/ethan/miniconda3
    creating /tmp/tmpw743dubj/home/ethan/miniconda3/envs
    creating /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110
    creating /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110/lib
    creating /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110/lib/python3.9
    creating /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages
    creating /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy
    creating /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils
    creating /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks
    compile options: '-I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c'
    extra options: '-march=native'
    CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[716] : Command (gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC -I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c /home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.c -o /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.o -MMD -MF /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.o.d -march=native) failed with exit status 1 output ->
    gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
    gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
    gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
    gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?

    CCompilerOpt.cc_test_flags[1017] : testing failed
    CCompilerOpt.cc_test_flags[1013] : testing flags (-O3)
    C compiler: gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC

    compile options: '-I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c'
    extra options: '-O3'
    CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[716] : Command (gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC -I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c /home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.c -o /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.o -MMD -MF /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.o.d -O3) failed with exit status 1 output ->
    gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
    gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
    gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
    gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?

    CCompilerOpt.cc_test_flags[1017] : testing failed
    CCompilerOpt.cc_test_flags[1013] : testing flags (-Werror)
    C compiler: gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC

    compile options: '-I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c'
    extra options: '-Werror'
    CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[716] : Command (gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC -I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c /home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.c -o /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.o -MMD -MF /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/test_flags.o.d -Werror) failed with exit status 1 output ->
    gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
    gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
    gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
    gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?

    CCompilerOpt.cc_test_flags[1017] : testing failed
    CCompilerOpt.__init__[1701] : check requested baseline
    CCompilerOpt.feature_test[1466] : testing feature 'NEON' with flags ()
    C compiler: gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC

    compile options: '-I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c'
    CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[716] : Command (gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC -I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c /home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/cpu_neon.c -o /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/cpu_neon.o -MMD -MF /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/cpu_neon.o.d) failed with exit status 1 output ->
    gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
    gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
    gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
    gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?

    CCompilerOpt.feature_test[1482] : testing failed
    CCompilerOpt.feature_test[1466] : testing feature 'NEON_VFPV4' with flags ()
    C compiler: gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC

    compile options: '-I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c'
    CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[716] : Command (gcc -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC -I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c /home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/cpu_neon_vfpv4.c -o /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/cpu_neon_vfpv4.o -MMD -MF /tmp/tmpw743dubj/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/distutils/checks/cpu_neon_vfpv4.o.d) failed with exit status 1 output ->
    gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
    gcc: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
    gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
    gcc: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?

    CCompilerOpt.feature_test[1482] : testing failed
    CCompilerOpt.__init__[1710] : check requested dispatch-able features
    CCompilerOpt.__init__[1726] : initialize targets groups
    CCompilerOpt.__init__[1728] : parse target group simd_test
    CCompilerOpt._parse_target_tokens[1939] : skip targets (NEON ASIMD AVX512F (AVX2 FMA3) SSE2 SSE42 AVX512_SKX VSX2 FMA4 XOP VSX3 VSX) not part of baseline or dispatch-able features
    CCompilerOpt.generate_dispatch_header[2272] : generate CPU dispatch header: (build/src.linux-aarch64-3.9/numpy/distutils/include/npy_cpu_dispatch_config.h)
    CCompilerOpt.generate_dispatch_header[2281] : dispatch header dir build/src.linux-aarch64-3.9/numpy/distutils/include does not exist, creating it
    customize UnixCCompiler
    customize UnixCCompiler using build_ext
    building 'lap._lapjv' extension
    compiling C++ sources
    C compiler: g++ -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC

    creating build/temp.linux-aarch64-3.9/lap
    compile options: '-I/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/core/include -Ilap -I/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/core/include -Ibuild/src.linux-aarch64-3.9/numpy/distutils/include -I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c'
    g++: lap/_lapjv.cppg++: lap/lapjv.cppg++: lap/lapmod.cpp

    g++: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
    g++: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
    g++: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
    g++: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
    g++: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
    g++: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
    g++: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
    g++: error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory
    g++: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
    g++: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
    g++: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
    g++: error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?
    error: Command "g++ -pthread -B /home/ethan/miniconda3/envs/pt110/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -I/home/ethan/miniconda3/envs/pt110/include -fPIC -O2 -n1 .2-a+fp16+rcpc+dotprod+crypto -isystem /home/ethan/miniconda3/envs/pt110/include -fPIC -I/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/core/include -Ilap -I/home/ethan/miniconda3/envs/pt110/lib/python3.9/site-packages/numpy/core/include -Ibuild/src.linux-aarch64-3.9/numpy/distutils/include -I/home/ethan/miniconda3/envs/pt110/include/python3.9 -c lap/lapmod.cpp -o build/temp.linux-aarch64-3.9/lap/lapmod.o -MMD -MF build/temp.linux-aarch64-3.9/lap/lapmod.o.d" failed with exit status 1

    ########### EXT COMPILER OPTIMIZATION ###########
    Platform      :
      Architecture: aarch64
      Compiler    : gcc

    CPU baseline  :
      Requested   : 'min'
      Enabled     : none
      Flags       : none
      Extra checks: none

    CPU dispatch  :
      Requested   : 'max -xop -fma4'
      Enabled     : none
      Generated   : none
    CCompilerOpt.cache_flush[809] : write cache to path -> /tmp/pip-install-kq3g2mph/lap_e7aa1bbd3f4f4512b2c816ded6f8506b/build/temp.linux-aarch64-3.9/ccompiler_opt_cache_ext.py
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/ethan/miniconda3/envs/pt110/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-kq3g2mph/lap_e7aa1bbd3f4f4512b2c816ded6f8506b/setup.py'"'"'; __file__='"'"'/tmp/pip-install-kq3g2mph/lap_e7aa1bbd3f4f4512b2c816ded6f8506b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-og0mh0kk/install-record.txt --single-version-externally-managed --compile --install-headers /home/ethan/miniconda3/envs/pt110/include/python3.9/lap Check the logs for full command output.

Maybe the important information is ''error: .2-a+fp16+rcpc+dotprod+crypto: No such file or directory" and "error: unrecognized command line option ā€˜-n1ā€™; did you mean ā€˜-nā€™?".

liu-mengyang commented 2 years ago

I found that this problem can be solved in Python3.8, but the official Pytorch for Jetson is only supported for Python3.6. Hmmm, okay, this issue will be closed.

liu-mengyang commented 2 years ago

Amazing! The essential reason for this error is the incorrect version of NumPy. I don't know why the Numpy version in the original system is incorrect, but after I add the export OPENBLAS_CORETYPE=ARMV8 into the ~/.bashrc and reinstall the Numpy, the installation of lap is a success!