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

libmamba 2.0.5 fails to build on Fedora rawhide #3791

Closed
3 tasks done
opoplawski opened this issue Feb 1, 2025 · 0 comments · Fixed by #3814
Closed
3 tasks done

libmamba 2.0.5 fails to build on Fedora rawhide #3791

opoplawski opened this issue Feb 1, 2025 · 0 comments · Fixed by #3814

Comments

@opoplawski
Copy link
Contributor

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

Anaconda default channels

  • I do NOT use the Anaconda default channels (pkgs/* etc.)

How did you install Mamba?

Other (please describe)

Search tried in issue tracker

error may be used uninitialized

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

I have this problem with Conda as well, without using Mamba

Describe your issue

cd /builddir/build/BUILD/libmamba-2.0.5-build/mamba-libmamba-2.0.5/redhat-linux-build/libmambapy && /usr/lib64/ccache/g++ -DFMT_SHARED -DMAMBA_USE_INSTALL_PREFIX_AS_BASE -DSPDLOG_FMT_EXTERNAL -Dbindings_EXPORTS -I/builddir/build/BUILD/libmamba-2.0.5-build/mamba-libmamba-2.0.5/libmambapy/src/libmambapy/bindings -I/builddir/build/BUILD/libmamba-2.0.5-build/mamba-libmamba-2.0.5/libmamba/include -isystem /usr/include/python3.13 -isystem /usr/share -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -fPIC -fvisibility=hidden -Wall -Wextra -Wshadow -Wnon-virtual-dtor -Wold-style-cast -Wcast-align -Wunused -Woverloaded-virtual -Wpedantic -Wconversion -Wsign-conversion -Wnull-dereference -Wdouble-promotion -Wformat=2 -Wunreachable-code -Wuninitialized -Werror -Wmisleading-indentation -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wuseless-cast -Wno-error=deprecated-declarations -MD -MT libmambapy/CMakeFiles/bindings.dir/src/libmambapy/bindings/legacy.cpp.o -MF CMakeFiles/bindings.dir/src/libmambapy/bindings/legacy.cpp.o.d -o CMakeFiles/bindings.dir/src/libmambapy/bindings/legacy.cpp.o -c /builddir/build/BUILD/libmamba-2.0.5-build/mamba-libmamba-2.0.5/libmambapy/src/libmambapy/bindings/legacy.cpp
/builddir/build/BUILD/libmamba-2.0.5-build/mamba-libmamba-2.0.5/libmambapy/src/libmambapy/bindings/legacy.cpp: In lambda function:
/builddir/build/BUILD/libmamba-2.0.5-build/mamba-libmamba-2.0.5/libmambapy/src/libmambapy/bindings/legacy.cpp:557:47: warning: ‘mamba::expected_t<std::__cxx11::basic_string<char> > mamba::SubdirData::cache_path() const’ is deprecated: since version 2.0 use ``valid_solv_cache`` or ``valid_json_cache`` instead [-Wdeprecated-declarations]
  557 |                 return extract(self.cache_path());
      |                                ~~~~~~~~~~~~~~~^~
In file included from /builddir/build/BUILD/libmamba-2.0.5-build/mamba-libmamba-2.0.5/libmambapy/src/libmambapy/bindings/legacy.cpp:30:
/builddir/build/BUILD/libmamba-2.0.5-build/mamba-libmamba-2.0.5/libmamba/include/mamba/core/subdirdata.hpp:135:33: note: declared here
  135 |         expected_t<std::string> cache_path() const;
      |                                 ^~~~~~~~~~
In file included from /usr/include/pybind11/attr.h:14,
                 from /usr/include/pybind11/detail/class.h:12,
                 from /usr/include/pybind11/pybind11.h:12,
                 from /usr/include/pybind11/functional.h:14,
                 from /builddir/build/BUILD/libmamba-2.0.5-build/mamba-libmamba-2.0.5/libmambapy/src/libmambapy/bindings/legacy.cpp:11:
In function ‘pybind11::detail::collect_arguments<(pybind11::return_value_policy)1, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, pybind11::detail::accessor<pybind11::detail::accessor_policies::str_attr>, pybind11::arg_v, void>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, pybind11::detail::accessor<pybind11::detail::accessor_policies::str_attr>&&, pybind11::arg_v&&)pybind11::detail::unpacking_collector<(pybind11::return_value_policy)1>’,
    inlined from ‘pybind11::detail::object_api<pybind11::detail::accessor<pybind11::detail::accessor_policies::str_attr> >::operator()<(pybind11::return_value_policy)1, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, pybind11::detail::accessor<pybind11::detail::accessor_policies::str_attr>, pybind11::arg_v>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, pybind11::detail::accessor<pybind11::detail::accessor_policies::str_attr>&&, pybind11::arg_v&&) constpybind11::object’ at /usr/include/pybind11/cast.h:1823:45,
    inlined from ‘deprecated(std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> >)’ at /builddir/build/BUILD/libmamba-2.0.5-build/mamba-libmamba-2.0.5/libmambapy/src/libmambapy/bindings/legacy.cpp:52:26:
/usr/include/pybind11/cast.h:1812:67: error: ‘SR.32267’ may be used uninitialized [-Werror=maybe-uninitialized]
 1812 |     return unpacking_collector<policy>(std::forward<Args>(args)...);
      |                                                                   ^
/usr/include/pybind11/cast.h: In function ‘deprecated(std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> >)’:
/usr/include/pybind11/cast.h:1823:45: note: ‘SR.32267’ was declared here
 1823 |     return detail::collect_arguments<policy>(std::forward<Args>(args)...).call(derived().ptr());
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
gmake[2]: Leaving directory '/builddir/build/BUILD/libmamba-2.0.5-build/mamba-libmamba-2.0.5/redhat-linux-build'
gmake[2]: *** [libmambapy/CMakeFiles/bindings.dir/build.make:96: libmambapy/CMakeFiles/bindings.dir/src/libmambapy/bindings/legacy.cpp.o] Error 1

mamba info / micromamba info

This is with:

pybind11-devel-2.13.6-2.fc42.x86_64
gcc-15.0.1-0.4.fc42.x86_64

Same error with the latest mamba git commit 9b6be1ce603f9df1d94fb864639ae00ad8083950

Logs

environment.yml

~/.condarc

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

Successfully merging a pull request may close this issue.

1 participant