While installing the face recognition (below following line) library i got this error please help me out
I am on Jetson nano devloper kit 4 GB ram
Carrier board version B01
nvidia@ubuntu:~/dlib-19.17$ sudo python3 setup.py install
running install
running bdist_egg
running egg_info
writing dlib.egg-info/PKG-INFO
writing dependency_links to dlib.egg-info/dependency_links.txt
writing top-level names to dlib.egg-info/top_level.txt
package init file ‘dlib/init.py’ not found (or not a regular file)
reading manifest file ‘dlib.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
writing manifest file ‘dlib.egg-info/SOURCES.txt’
installing library code to build/bdist.linux-aarch64/egg
running install_lib
running build_py
running build_ext
Building extension for Python 3.6.9 (default, Jun 29 2022, 11:45:57)
Invoking CMake setup: ‘cmake /home/nvidia/dlib-19.17/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/nvidia/dlib-19.17/build/lib.linux-aarch64-3.6 -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_BUILD_TYPE=Release’
– The C compiler identification is unknown
– The CXX compiler identification is GNU 7.5.0
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – broken
CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/nvidia/dlib-19.17/build/temp.linux-aarch64-3.6/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_bc47c/fast"
/usr/bin/make -f CMakeFiles/cmTC_bc47c.dir/build.make CMakeFiles/cmTC_bc47c.dir/build
make[1]: Entering directory '/home/nvidia/dlib-19.17/build/temp.linux-aarch64-3.6/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_bc47c.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_bc47c.dir/testCCompiler.c.o -c /home/nvidia/dlib-19.17/build/temp.linux-aarch64-3.6/CMakeFiles/CMakeTmp/testCCompiler.c
/home/nvidia/dlib-19.17/build/temp.linux-aarch64-3.6/CMakeFiles/CMakeTmp/testCCompiler.c: In function ‘main’:
/home/nvidia/dlib-19.17/build/temp.linux-aarch64-3.6/CMakeFiles/CMakeTmp/testCCompiler.c:11:1: internal compiler error: Segmentation fault
{ (void)argv; return argc-1;}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
CMakeFiles/cmTC_bc47c.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_bc47c.dir/testCCompiler.c.o' failed
make[1]: *** [CMakeFiles/cmTC_bc47c.dir/testCCompiler.c.o] Error 1
make[1]: Leaving directory '/home/nvidia/dlib-19.17/build/temp.linux-aarch64-3.6/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_bc47c/fast' failed
make: *** [cmTC_bc47c/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt
– Configuring incomplete, errors occurred!
See also “/home/nvidia/dlib-19.17/build/temp.linux-aarch64-3.6/CMakeFiles/CMakeOutput.log”.
See also “/home/nvidia/dlib-19.17/build/temp.linux-aarch64-3.6/CMakeFiles/CMakeError.log”.
Traceback (most recent call last):
File “setup.py”, line 261, in
‘Topic :: Software Development’,
File “/usr/lib/python3/dist-packages/setuptools/init.py”, line 129, in setup
return distutils.core.setup(**attrs)
File “/usr/lib/python3.6/distutils/core.py”, line 148, in setup
dist.run_commands()
File “/usr/lib/python3.6/distutils/dist.py”, line 955, in run_commands
self.run_command(cmd)
File “/usr/lib/python3.6/distutils/dist.py”, line 974, in run_command
cmd_obj.run()
File “/usr/lib/python3/dist-packages/setuptools/command/install.py”, line 67, in run
self.do_egg_install()
File “/usr/lib/python3/dist-packages/setuptools/command/install.py”, line 109, in do_egg_install
self.run_command(‘bdist_egg’)
File “/usr/lib/python3.6/distutils/cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “/usr/lib/python3.6/distutils/dist.py”, line 974, in run_command
cmd_obj.run()
File “/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py”, line 172, in run
cmd = self.call_command(‘install_lib’, warn_dir=0)
File “/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py”, line 158, in call_command
self.run_command(cmdname)
File “/usr/lib/python3.6/distutils/cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “/usr/lib/python3.6/distutils/dist.py”, line 974, in run_command
cmd_obj.run()
File “/usr/lib/python3/dist-packages/setuptools/command/install_lib.py”, line 24, in run
self.build()
File “/usr/lib/python3.6/distutils/command/install_lib.py”, line 109, in build
self.run_command(‘build_ext’)
File “/usr/lib/python3.6/distutils/cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “/usr/lib/python3.6/distutils/dist.py”, line 974, in run_command
cmd_obj.run()
File “setup.py”, line 135, in run
self.build_extension(ext)
File “setup.py”, line 172, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File “/usr/lib/python3.6/subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘cmake’, ‘/home/nvidia/dlib-19.17/tools/python’, ‘-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/nvidia/dlib-19.17/build/lib.linux-aarch64-3.6’, ‘-DPYTHON_EXECUTABLE=/usr/bin/python3’, ‘-DCMAKE_BUILD_TYPE=Release’]’ returned non-zero exit status 1.