Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail to compile #77

Open
yurivict opened this issue May 31, 2022 · 1 comment
Open

Tests fail to compile #77

yurivict opened this issue May 31, 2022 · 1 comment

Comments

@yurivict
Copy link

-- Build files have been written to: /disk-samsung/freebsd-ports/science/quantum-jet/work/.build
[100% 1/1] : && /usr/bin/c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -fstack-protector-strong test/CMakeFiles/runner.dir/Test_Main.cpp.o test/CMakeFiles/runner.dir/Test_Abort.cpp.o test/CMakeFiles/runner.dir/Test_PathInfo.cpp.o test/CMakeFiles/runner.dir/Test_Permuter.cpp.o test/CMakeFiles/runner.dir/Test_TaskBasedContractor.cpp.o test/CMakeFiles/runner.dir/Test_Tensor.cpp.o test/CMakeFiles/runner.dir/Test_TensorNetwork.cpp.o test/CMakeFiles/runner.dir/Test_TensorNetworkIO.cpp.o test/CMakeFiles/runner.dir/Test_Utilities.cpp.o -o test/runner  -Wl,-rpath,/usr/local/lib  /usr/local/lib/libcblas.so  -pthread && cd /disk-samsung/freebsd-ports/science/quantum-jet/work/.build/test && /usr/local/bin/cmake -D TEST_TARGET=runner -D TEST_EXECUTABLE=/disk-samsung/freebsd-ports/science/quantum-jet/work/.build/test/runner -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/disk-samsung/freebsd-ports/science/quantum-jet/work/.build/test -D TEST_SPEC= -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_LIST=runner_TESTS -D CTEST_FILE=/disk-samsung/freebsd-ports/science/quantum-jet/work/.build/test/runner_tests-b858cb2.cmake -P /disk-samsung/freebsd-ports/science/quantum-jet/work/.build/_deps/catch2-src/contrib/CatchAddTests.cmake
FAILED: test/runner test/runner_tests-b858cb2.cmake /disk-samsung/freebsd-ports/science/quantum-jet/work/.build/test/runner_tests-b858cb2.cmake 
: && /usr/bin/c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -fstack-protector-strong test/CMakeFiles/runner.dir/Test_Main.cpp.o test/CMakeFiles/runner.dir/Test_Abort.cpp.o test/CMakeFiles/runner.dir/Test_PathInfo.cpp.o test/CMakeFiles/runner.dir/Test_Permuter.cpp.o test/CMakeFiles/runner.dir/Test_TaskBasedContractor.cpp.o test/CMakeFiles/runner.dir/Test_Tensor.cpp.o test/CMakeFiles/runner.dir/Test_TensorNetwork.cpp.o test/CMakeFiles/runner.dir/Test_TensorNetworkIO.cpp.o test/CMakeFiles/runner.dir/Test_Utilities.cpp.o -o test/runner  -Wl,-rpath,/usr/local/lib  /usr/local/lib/libcblas.so  -pthread && cd /disk-samsung/freebsd-ports/science/quantum-jet/work/.build/test && /usr/local/bin/cmake -D TEST_TARGET=runner -D TEST_EXECUTABLE=/disk-samsung/freebsd-ports/science/quantum-jet/work/.build/test/runner -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/disk-samsung/freebsd-ports/science/quantum-jet/work/.build/test -D TEST_SPEC= -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_LIST=runner_TESTS -D CTEST_FILE=/disk-samsung/freebsd-ports/science/quantum-jet/work/.build/test/runner_tests-b858cb2.cmake -P /disk-samsung/freebsd-ports/science/quantum-jet/work/.build/_deps/catch2-src/contrib/CatchAddTests.cmake
ld: error: undefined symbol: tf::Task tf::FlowBuilder::reduce<std::__1::__wrap_iter<Jet::Tensor<std::__1::complex<float> >*>, std::__1::__wrap_iter<Jet::Tensor<std::__1::complex<float> >*>, Jet::Tensor<std::__1::complex<float> >, Jet::TaskBasedContractor<Jet::Tensor<std::__1::complex<float> > >::AddReductionTask()::'lambda'(Jet::Tensor<std::__1::complex<float> > const&, Jet::Tensor<std::__1::complex<float> > const&)>(std::__1::__wrap_iter<Jet::Tensor<std::__1::complex<float> >*>, std::__1::__wrap_iter<Jet::Tensor<std::__1::complex<float> >*>, Jet::Tensor<std::__1::complex<float> >&, Jet::TaskBasedContractor<Jet::Tensor<std::__1::complex<float> > >::AddReductionTask()::'lambda'(Jet::Tensor<std::__1::complex<float> > const&, Jet::Tensor<std::__1::complex<float> > const&))
>>> referenced by Test_TaskBasedContractor.cpp
>>>               test/CMakeFiles/runner.dir/Test_TaskBasedContractor.cpp.o:(Jet::TaskBasedContractor<Jet::Tensor<std::__1::complex<float> > >::AddReductionTask())
c++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
*** Error code 1

Version: 0.2.2-2-g99c55ce
External TaskFlow version: 3.3.0
clang-13

@mlxd
Copy link
Member

mlxd commented May 31, 2022

Hi @yurivict to make it easier for us to help on this and the other issues, it would be best to follow the Bug Report guide that comes with each new issue on the repository.

I will copy the template below:

#### Before posting an issue

* Search existing GitHub issues to make sure the issue does not already exist: https://github.com/XanaduAI/jet/issues.

* Delete everything above the dashed line and fill in the template.

* For general technical details, check out our documentation: https://quantum-jet.readthedocs.io.

-------------------------------------------------------------------------------------------------------------

#### Bug description

Description of the issue - include code snippets and screenshots here if relevant. You may use the following template below:

* *Expected behavior:* (What you expect to happen)

* *Actual behavior:* (What actually happens)

* *Reproduces how often:* (Percentage of the time this issue reproduces)

* *System information:* (Relevant compilation or execution environment details, including your operating system, compiler, Jet version, and linked libraries)

#### Source code and backtraces

Please include any additional code snippets and backtraces related to the issue here.

#### Additional information

Any additional information, configuration or data that might be necessary to reproduce the issue.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants