Paste: sudo ./build.sh
Author: | cothrax |
Mode: | factor |
Date: | Tue, 2 Nov 2021 07:48:43 |
Plain Text |
longcheng@longcheng-pc:~/Documents/quantum/QuICT$ sudo ./build.sh
[sudo] password for longcheng:
================================================================================
[Project Root Directory]
Detected /home/longcheng/Documents/quantum/QuICT as project root directory
================================================================================
[Temporary Building Directory]
Prepare building directory
Selected /home/longcheng/Documents/quantum/QuICT/build as building directory
================================================================================
[Git Submodule]
git submodule update --init --recursive
================================================================================
[C/C++ Compiler]
Selecting C compiler
Selected /usr/bin/gcc as C compiler
Selecting C++ compiler
Selected /usr/bin/g++ as C++ compiler
================================================================================
[CMake Generator]
Selecting CMake generator
Selected Unix Makefiles as CMake generator
================================================================================
Building with parallel parameter: 4
================================================================================
[Python Egg]
Building python egg
================================================================================
================================================================================
[Project Root]
Project root: /home/longcheng/Documents/quantum/QuICT
================================================================================
[Packages]
Found packages: ['QuICT', 'QuICT.tools', 'QuICT.lib', 'QuICT.backends', 'QuICT.ops', 'QuICT.core', 'QuICT.algorithm', 'QuICT.qcda', 'QuICT.utility', 'QuICT.tools.drawer', 'QuICT.tools.web', 'QuICT.tools.interface', 'QuICT.tools.checker', 'QuICT.lib.qasm', 'QuICT.lib.qasm.node', 'QuICT.ops.utils', 'QuICT.ops.linalg', 'QuICT.ops.gate_kernel', 'QuICT.core.circuit', 'QuICT.core.layout', 'QuICT.core.qubit', 'QuICT.core.gate', 'QuICT.core.exception', 'QuICT.algorithm.synthetical_unitary', 'QuICT.algorithm.grover', 'QuICT.algorithm.weight_decision', 'QuICT.algorithm.shor', 'QuICT.algorithm.amplitude', 'QuICT.qcda.optimization', 'QuICT.qcda.simulation', 'QuICT.qcda.synthesis', 'QuICT.qcda.mapping', 'QuICT.qcda.optimization.cnot_without_ancillae', 'QuICT.qcda.optimization.cnot_template', 'QuICT.qcda.optimization.topological_cnot', 'QuICT.qcda.optimization.template_optimization', 'QuICT.qcda.optimization.cnot_ancillae', 'QuICT.qcda.optimization.commutative_optimization', 'QuICT.qcda.optimization.topological_cnot_rz', 'QuICT.qcda.optimization.cnot_without_ancillae.tests', 'QuICT.qcda.optimization.cnot_template.json', 'QuICT.qcda.optimization.template_optimization.templates', 'QuICT.qcda.optimization.template_optimization.template_matching', 'QuICT.qcda.optimization.template_optimization.templates.nct', 'QuICT.qcda.optimization.template_optimization.templates.cnot_templates', 'QuICT.qcda.optimization.template_optimization.template_matching.dagdependency', 'QuICT.qcda.simulation.statevector_simulator', 'QuICT.qcda.simulation.proxy_simulator', 'QuICT.qcda.simulation.unitary_simulator', 'QuICT.qcda.simulation.disjoint_set', 'QuICT.qcda.simulation.backends', 'QuICT.qcda.synthesis.mct', 'QuICT.qcda.synthesis.gate_decomposition', 'QuICT.qcda.synthesis.unitary_transform', 'QuICT.qcda.synthesis.gate_transform', 'QuICT.qcda.synthesis.uniformly_gate', 'QuICT.qcda.synthesis.arithmetic', 'QuICT.qcda.synthesis.initial_state_preparation', 'QuICT.qcda.synthesis.gate_transform.transform_rule', 'QuICT.qcda.synthesis.gate_transform.special_set', 'QuICT.qcda.synthesis.arithmetic.bea', 'QuICT.qcda.synthesis.arithmetic.hrs', 'QuICT.qcda.synthesis.arithmetic.tmvh', 'QuICT.qcda.synthesis.arithmetic.vbe', 'QuICT.qcda.mapping.mcts', 'QuICT.qcda.mapping.utility', 'QuICT.qcda.mapping.mcts.mcts_core', 'QuICT.utility.graph_structure']
================================================================================
Found packages: ['QuICT', 'QuICT.tools', 'QuICT.lib', 'QuICT.backends', 'QuICT.ops', 'QuICT.core', 'QuICT.algorithm', 'QuICT.qcda', 'QuICT.utility', 'QuICT.tools.drawer', 'QuICT.tools.web', 'QuICT.tools.interface', 'QuICT.tools.checker', 'QuICT.lib.qasm', 'QuICT.lib.qasm.node', 'QuICT.ops.utils', 'QuICT.ops.linalg', 'QuICT.ops.gate_kernel', 'QuICT.core.circuit', 'QuICT.core.layout', 'QuICT.core.qubit', 'QuICT.core.gate', 'QuICT.core.exception', 'QuICT.algorithm.synthetical_unitary', 'QuICT.algorithm.grover', 'QuICT.algorithm.weight_decision', 'QuICT.algorithm.shor', 'QuICT.algorithm.amplitude', 'QuICT.qcda.optimization', 'QuICT.qcda.simulation', 'QuICT.qcda.synthesis', 'QuICT.qcda.mapping', 'QuICT.qcda.optimization.cnot_without_ancillae', 'QuICT.qcda.optimization.cnot_template', 'QuICT.qcda.optimization.topological_cnot', 'QuICT.qcda.optimization.template_optimization', 'QuICT.qcda.optimization.cnot_ancillae', 'QuICT.qcda.optimization.commutative_optimization', 'QuICT.qcda.optimization.topological_cnot_rz', 'QuICT.qcda.optimization.cnot_without_ancillae.tests', 'QuICT.qcda.optimization.cnot_template.json', 'QuICT.qcda.optimization.template_optimization.templates', 'QuICT.qcda.optimization.template_optimization.template_matching', 'QuICT.qcda.optimization.template_optimization.templates.nct', 'QuICT.qcda.optimization.template_optimization.templates.cnot_templates', 'QuICT.qcda.optimization.template_optimization.template_matching.dagdependency', 'QuICT.qcda.simulation.statevector_simulator', 'QuICT.qcda.simulation.proxy_simulator', 'QuICT.qcda.simulation.unitary_simulator', 'QuICT.qcda.simulation.disjoint_set', 'QuICT.qcda.simulation.backends', 'QuICT.qcda.synthesis.mct', 'QuICT.qcda.synthesis.gate_decomposition', 'QuICT.qcda.synthesis.unitary_transform', 'QuICT.qcda.synthesis.gate_transform', 'QuICT.qcda.synthesis.uniformly_gate', 'QuICT.qcda.synthesis.arithmetic', 'QuICT.qcda.synthesis.initial_state_preparation', 'QuICT.qcda.synthesis.gate_transform.transform_rule', 'QuICT.qcda.synthesis.gate_transform.special_set', 'QuICT.qcda.synthesis.arithmetic.bea', 'QuICT.qcda.synthesis.arithmetic.hrs', 'QuICT.qcda.synthesis.arithmetic.tmvh', 'QuICT.qcda.synthesis.arithmetic.vbe', 'QuICT.qcda.mapping.mcts', 'QuICT.qcda.mapping.utility', 'QuICT.qcda.mapping.mcts.mcts_core', 'QuICT.utility.graph_structure']
[Build Python]
running build
running build_py
running egg_info
writing QuICT.egg-info/PKG-INFO
writing dependency_links to QuICT.egg-info/dependency_links.txt
writing requirements to QuICT.egg-info/requires.txt
writing top-level names to QuICT.egg-info/top_level.txt
writing manifest file 'QuICT.egg-info/SOURCES.txt'
running build_ext
[graph_structure]
[graph_str...] cmake /home/longcheng/Documents/quantum/QuICT/QuICT/utility/graph_structure -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/longcheng/Documents/quantum/QuICT/build/lib.linux-x86_64-3.8/QuICT/utility/graph_structure/ -DPYTHON_EXECUTABLE=/usr/bin/python3 -DBUILD_VERSION_INFO=1.0.0 -DCMAKE_BUILD_TYPE=Release
[graph_str...] Configuring...
[graph_str...] -- pybind11 v2.8.0
[graph_str...] -- Configuring done
[graph_str...] -- Generating done
[graph_str...] -- Build files have been written to: /home/longcheng/Documents/quantum/QuICT/build/temp.linux-x86_64-3.8.QuICT.utility.graph_structure
[graph_str...] Building...
[graph_str...] [100%] Built target graph_structure
[graph_str...] Copying back...
[backends]
[backends....] cmake /home/longcheng/Documents/quantum/QuICT/QuICT/backends -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/longcheng/Documents/quantum/QuICT/build/lib.linux-x86_64-3.8/QuICT/backends/ -DPYTHON_EXECUTABLE=/usr/bin/python3 -DBUILD_VERSION_INFO=1.0.0 -DCMAKE_BUILD_TYPE=Release
[backends....] Configuring...
[backends....] -- Configuring done
[backends....] -- Generating done
[backends....] -- Build files have been written to: /home/longcheng/Documents/quantum/QuICT/build/temp.linux-x86_64-3.8.QuICT.backends
[backends....] Building...
[backends....] [100%] Built target backends
[backends....] Copying back...
[initial_state_preparation]
[initial_s...] cmake /home/longcheng/Documents/quantum/QuICT/QuICT/qcda/synthesis/initial_state_preparation -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/longcheng/Documents/quantum/QuICT/build/lib.linux-x86_64-3.8/QuICT/qcda/synthesis/initial_state_preparation/ -DPYTHON_EXECUTABLE=/usr/bin/python3 -DBUILD_VERSION_INFO=1.0.0 -DCMAKE_BUILD_TYPE=Release
[initial_s...] Configuring...
[initial_s...] -- Configuring done
[initial_s...] -- Generating done
[initial_s...] -- Build files have been written to: /home/longcheng/Documents/quantum/QuICT/build/temp.linux-x86_64-3.8.QuICT.qcda.synthesis.initial_state_preparation
[initial_s...] Building...
[initial_s...] [100%] Built target initial_state_preparation
[initial_s...] Copying back...
[backends]
[backends....] cmake /home/longcheng/Documents/quantum/QuICT/QuICT/qcda/simulation/backends -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/longcheng/Documents/quantum/QuICT/build/lib.linux-x86_64-3.8/QuICT/qcda/simulation/backends/ -DPYTHON_EXECUTABLE=/usr/bin/python3 -DBUILD_VERSION_INFO=1.0.0 -DCMAKE_BUILD_TYPE=Release
[backends....] Configuring...
[backends....] -- pybind11 v2.8.0
[backends....] -- Configuring done
[backends....] -- Generating done
[backends....] -- Build files have been written to: /home/longcheng/Documents/quantum/QuICT/QuICT/qcda/simulation/backends
[backends....] Building...
[backends....] Error: could not load cache
Traceback (most recent call last):
File "./setup.py", line 359, in <module>
setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.8/dist-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/usr/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/usr/local/lib/python3.8/dist-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/usr/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/usr/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "./setup.py", line 135, in build_extension
self.cmake_build_extension(ext)
File "./setup.py", line 283, in cmake_build_extension
run_with_output_wrapper(
File "./setup.py", line 85, in run_with_output_wrapper
raise subprocess.CalledProcessError(ret_code, args)
subprocess.CalledProcessError: Command '['cmake', '--build', '.']' returned non-zero exit status 1.
New Annotation