Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 874900

Summary: dev-python/typed-ast-1.4.3 - ast3/.../ast.c: error: implicit declaration of function _PyUnicode_DecodeUnicodeEscape
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
dev-python:typed-ast-1.4.3:20221003-215255.log
emerge-history.txt
environment
etc.portage.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-10-04 16:24:56 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -fPIC -Iast27/Include -I/usr/include/python3.10 -c ast27/Python/ast.c -o /var/tmp/portage/dev-python/typed-ast-1.4.3/work/typed_ast-1.4.3-python3_10/temp.linux-x86_64-3.1
x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -fPIC -Iast3/Include -I/usr/include/python3.10 -c ast3/Python/asdl.c -o /var/tmp/portage/dev-python/typed-ast-1.4.3/work/typed_ast-1.4.3-python3_10/temp.linux-x86_64-3.10
x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -fPIC -Iast3/Include -I/usr/include/python3.10 -c ast3/Python/ast.c -o /var/tmp/portage/dev-python/typed-ast-1.4.3/work/typed_ast-1.4.3-python3_10/temp.linux-x86_64-3.10/
ast3/Python/ast.c: In function decode_unicode_with_escapes:
ast3/Python/ast.c:4514:9: error: implicit declaration of function _PyUnicode_DecodeUnicodeEscape; did you mean PyUnicode_DecodeUnicodeEscape? [-Werror=implicit-function-declaration]
 4514 |     v = _PyUnicode_DecodeUnicodeEscape(s, len, NULL, &first_invalid_escape);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20221002-192609

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	OpenJDK 17.0.5_p5 [openjdk-17]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-17 
  [2]   openjdk-bin-8 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit 746f876f41cb722fa9f314139855921bdd289ded
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Oct 3 21:47:20 2022 +0000

    2022-10-03 21:47:19 UTC

emerge -qpvO dev-python/typed-ast
[ebuild  N    ] dev-python/typed-ast-1.5.4  USE="-test" PYTHON_TARGETS="python3_10 -python3_8 -python3_9 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2022-10-04 16:24:57 UTC
Created attachment 818587 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-04 16:24:58 UTC
Created attachment 818590 [details]
dev-python:typed-ast-1.4.3:20221003-215255.log
Comment 3 Toralf Förster gentoo-dev 2022-10-04 16:25:00 UTC
Created attachment 818593 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-04 16:25:01 UTC
Created attachment 818596 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-04 16:25:02 UTC
Created attachment 818599 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-04 16:25:04 UTC
Created attachment 818602 [details]
temp.tar.bz2
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-04 16:52:03 UTC
*** Bug 874912 has been marked as a duplicate of this bug. ***
Comment 8 Larry the Git Cow gentoo-dev 2022-10-04 16:57:21 UTC
The bug has been closed via the following commit(s):

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

commit a2e4008d4da759f5eeb2e1ff217cb4ed4148cde6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-04 16:55:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-04 16:56:00 +0000

    dev-python/typed-ast: fix Python 3.10 compat for 1.4.3
    
    I'm absolutely convinced I committed this before like a year ago?
    
    Closes: https://bugs.gentoo.org/874900
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/typed-ast-1.4.3-python310.patch          | 30 ++++++++++++++++++++++
 ...-ast-1.4.3.ebuild => typed-ast-1.4.3-r1.ebuild} |  6 ++++-
 2 files changed, 35 insertions(+), 1 deletion(-)