Menu

#22 fails to compile with clang 16

open
nobody
None
blocker
bug
2024-10-06
2023-05-26
No

Encountered when using pip on Termux on android, same as this bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271531

Discussion

  • mathieu Clabaut

    mathieu Clabaut - 2023-07-29

    Reproduced here.

     
    • Tomasz Kłoczko

      It fails the same way as well with gcc 14 which snapshot is now available in fedora rawhide.

       
      • Imre Jonk

        Imre Jonk - 2024-10-06

        gcc is also at version 14 in Arch Linux. The ruamel.yaml.clib packagers worked around the issue with a compiler flag that disables the error:

          # Workaround for GCC 14, see https://sourceforge.net/p/ruamel-yaml-clib/tickets/22/
          CFLAGS="$CFLAGS -Wno-error=incompatible-pointer-types" \
          python -m build --wheel --skip-dependency-check --no-isolation
        

        https://gitlab.archlinux.org/archlinux/packaging/packages/python-ruamel.yaml.clib/-/blob/1dd0bc69e2c3b0411e4b87f31e72b9fe3182200f/PKGBUILD#L21-L23

        The underlying issue of incompatible pointer types is of course not solved with this flag.

         
  • Florian Weimer

    Florian Weimer - 2024-02-01

    In Fedora, we have a downstream patch to fix some pointer incompatibles, but it only changed the minimum required to fix a bug on s390x. I fixed some more problems, and the compilation errors are gone.

     

    Last edit: Florian Weimer 2024-02-01
  • Henrich Hartzer

    Henrich Hartzer - 2024-04-04

    This bug means that pip install ruamel.yaml (or pip install yaml.clib) will fail on FreeBSD. ruamel.yaml has to be installed via ports, which has the patch.

     

Log in to post a comment.