Closed 3rav closed 1 week ago
Thanks for reporting this. Unfortunately, we did not try clang on windows before. Could you share your configure setup with us?
@3rav any updates from your side? If not we might close this issue soonish.
The error still occurs in clang64: https://github.com/3rav/MINGW-packages/actions/runs/11712157728/job/32622223182
clang++: warning: argument unused during compilation: '-Wa,-mbig-obj' [-Wunused-command-line-argument]
ld.lld: error: undefined symbol: gko::batch::matrix::Ell<float, int>::Ell(std::__1::shared_ptr<gko::Executor const>, gko::batch_dim<2ull, unsigned long long> const&, int)
>>> referenced by reference/CMakeFiles/ginkgo_reference.dir/solver/batch_bicgstab_kernels.cpp.obj:(gko::EnablePolymorphicObject<gko::batch::matrix::Ell<float, int>, gko::batch::BatchLinOp>::create_default_impl(std::__1::shared_ptr<gko::Executor const>) const)
>>> referenced by reference/CMakeFiles/ginkgo_reference.dir/solver/batch_bicgstab_kernels.cpp.obj:(gko::EnablePolymorphicObject<gko::batch::matrix::Ell<float, int>, gko::batch::BatchLinOp>::clear_impl())
>>> referenced by reference/CMakeFiles/ginkgo_reference.dir/solver/batch_cg_kernels.cpp.obj
ld.lld: error: undefined symbol: gko::batch::matrix::Dense<float>::Dense(std::__1::shared_ptr<gko::Executor const>, gko::batch_dim<2ull, unsigned long long> const&)
>>> referenced by reference/CMakeFiles/ginkgo_reference.dir/solver/batch_bicgstab_kernels.cpp.obj:(gko::EnablePolymorphicObject<gko::batch::matrix::Dense<float>, gko::batch::BatchLinOp>::create_default_impl(std::__1::shared_ptr<gko::Executor const>) const)
>>> referenced by reference/CMakeFiles/ginkgo_reference.dir/solver/batch_bicgstab_kernels.cpp.obj:(gko::EnablePolymorphicObject<gko::batch::matrix::Dense<float>, gko::batch::BatchLinOp>::clear_impl())
>>> referenced by reference/CMakeFiles/ginkgo_reference.dir/solver/batch_cg_kernels.cpp.obj
Hi @3rav, we have a fix in #1724 for this issue. Could you check whether branch batch_dynamic_cast works for you?
With this develope version I have this error:
-- Configuring done (7.9s)
CMake Error at examples/file-config-solver/CMakeLists.txt:11 (target_link_libraries):
Target "file-config-solver" links to:
nlohmann_json::nlohmann_json
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
CMake Generate step failed. Build files cannot be regenerated correctly.
-- Generating done (0.2s)
==> ERROR: A failure occurred in build().
Aborting...
@3rav Thanks for trying it. you can disable the example build by -DGINKGO_BUILD_EXAMPLES=OFF
.
It is also be tracked in #1727
@3rav Thanks for trying it. you can disable the example build by
-DGINKGO_BUILD_EXAMPLES=OFF
. It is also be tracked in #1727
Now is OK!:
Thank you for confirmation!
close this pr as #1724 merged.
I try to build msys2/mingw packages I have this error only for clang with dynamic library (static are ok):