Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 880651 - dev-python/ruamel-yaml-clib-0.2.7 - _ruamel_yaml.c: error: incompatible function pointer types passing int (void , char , int, int
Summary: dev-python/ruamel-yaml-clib-0.2.7 - _ruamel_yaml.c: error: incompatible funct...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: clang-16-porting
  Show dependency tree
 
Reported: 2022-11-09 19:27 UTC by Toralf Förster
Modified: 2022-11-10 22:55 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.47 KB, text/plain)
2022-11-09 19:27 UTC, Toralf Förster
Details
dev-python:ruamel-yaml-clib-0.2.7:20221109-160522.log (dev-python:ruamel-yaml-clib-0.2.7:20221109-160522.log,34.06 KB, text/plain)
2022-11-09 19:27 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,28.26 KB, text/plain)
2022-11-09 19:28 UTC, Toralf Förster
Details
environment (environment,137.22 KB, text/plain)
2022-11-09 19:28 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,705 bytes, application/x-bzip)
2022-11-09 19:28 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,14.53 KB, application/x-bzip)
2022-11-09 19:28 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,33.96 KB, application/x-bzip)
2022-11-09 19:28 UTC, Toralf Förster
Details
ruamel-yaml-clib-0.2.7-clang-16.patch (ruamel-yaml-clib-0.2.7-clang-16.patch,1.80 KB, patch)
2022-11-10 02:35 UTC, Peter Levine
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-11-09 19:27:56 UTC
          ^
_ruamel_yaml.c:2060:17: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  __pyx_v_value = yaml_get_version_string();
                ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
_ruamel_yaml.c:3590:52: error: incompatible function pointer types passing 'int (void *, char *, int, int *)' to parameter of type 'yaml_read_handler_t *' (aka 'int (*)(void *, unsigned char *, unsigned long, unsigned long *)') [-Werror,-Wincompatible-function-pointer-types]
    yaml_parser_set_input((&__pyx_v_self->parser), __pyx_f_12_ruamel_yaml_input_handler, ((void *)__pyx_v_self));
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j4-20221109-090003

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.4
Python 3.10.8
Available Rust versions:
  [1]   rust-bin-1.64.0 *
php cli (if any):

  HEAD of ::gentoo
commit 13b7b1255ae6125608899908b118a34f8a8347f1
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Nov 9 14:16:53 2022 +0000

    2022-11-09 14:16:52 UTC

emerge -qpvO dev-python/ruamel-yaml-clib
[ebuild  N    ] dev-python/ruamel-yaml-clib-0.2.7  PYTHON_TARGETS="python3_10 -pypy3 -python3_8 -python3_9 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2022-11-09 19:27:58 UTC
Created attachment 830169 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-09 19:27:59 UTC
Created attachment 830171 [details]
dev-python:ruamel-yaml-clib-0.2.7:20221109-160522.log
Comment 3 Toralf Förster gentoo-dev 2022-11-09 19:28:00 UTC
Created attachment 830173 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-11-09 19:28:02 UTC
Created attachment 830175 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-11-09 19:28:03 UTC
Created attachment 830177 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-09 19:28:04 UTC
Created attachment 830179 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-09 19:28:05 UTC
Created attachment 830181 [details]
temp.tar.bz2
Comment 8 Peter Levine 2022-11-10 02:35:13 UTC
Created attachment 830253 [details, diff]
ruamel-yaml-clib-0.2.7-clang-16.patch

Upstream PR: https://sourceforge.net/p/ruamel-yaml-clib/code/merge-requests/3/
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-10 02:40:44 UTC
(In reply to Peter Levine from comment #8)
> Created attachment 830253 [details, diff] [details, diff]
> ruamel-yaml-clib-0.2.7-clang-16.patch
> 
> Upstream PR:
> https://sourceforge.net/p/ruamel-yaml-clib/code/merge-requests/3/

Thanks for both fixing & sending upstream.
Comment 10 Larry the Git Cow gentoo-dev 2022-11-10 22:55:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26295868e9b7dfaf330dcc979d9510a24dfe06aa

commit 26295868e9b7dfaf330dcc979d9510a24dfe06aa
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2022-11-10 22:54:58 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2022-11-10 22:54:58 +0000

    dev-python/ruamel-yaml-clib: fix clang-16 build error
    
    Thanks-to: Peter Levine <plevine457@gmail.com>
    Closes: https://bugs.gentoo.org/880651
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 .../files/ruamel-yaml-clib-0.2.7-clang-16.patch    | 34 ++++++++++++++++++++++
 .../ruamel-yaml-clib/ruamel-yaml-clib-0.2.7.ebuild |  4 +++
 2 files changed, 38 insertions(+)