Re: Need help with pybind11 c++ compilation warning/error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/5/25 01:00, Cristian Le via devel wrote:


On 5 February 2025 06:17:01 CET, Orion Poplawski <orion@xxxxxxxx> wrote:
cc1plus: all warnings being treated as errors
gmake[2]: *** [libmambapy/CMakeFiles/bindings.dir/build.make:96: libmambapy/CMakeFiles/bindings.dir/src/libmambapy/bindings/legacy.cpp.o] Error 1

I'm guessing 'SR.32262' is some kind of temporary variable.  libmamba has taken the (perhaps admirable?) step of compiling with -Werror so it fails.

The errors are in mamba's code base afaict.

You should disable warnings as error, enforce C++ standard in CMakeLists.txt, ask upstream about C++17 warnings, or all the above.

But just to be sure it's gcc15 related can you also target F41?

I'm not entirely sure I understand all of your suggestions. I did disable -Werror, but that led to the issue I reported in my other email.

I tried compiling with cmake -DCMAKE_CXX_STANDARD=17 ... but that did not appear to make any difference.

I have reported issues upstream:

https://github.com/mamba-org/mamba/issues/3791  (the uninitialized warning)

https://github.com/mamba-org/mamba/issues/3809 (the python abort)

I'll note here as well that I see the same python abort in F41. The uninitialized warning goes away though, and I get this instead:

/builddir/build/BUILD/libmamba-2.0.6-build/mamba-2.0.6/libmambapy/src/libmambapy/bindings/path_caster.hpp:17:16: warning: type ‘struct type_caster’ violates the C++ One Definition Rule [-Wodr] 17 | struct type_caster<mamba::fs::u8path> : path_caster<mamba::fs::u8path>
      |                ^
/usr/include/pybind11/cast.h:38:7: note: a type with different bases is defined in another translation unit
   38 | class type_caster : public type_caster_base<type> {};
      |       ^


--
Orion Poplawski
he/him/his  - surely the least important thing about me
IT Systems Manager                         720-772-5637
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion@xxxxxxxx
Boulder, CO 80301                 https://www.nwra.com/
--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux