Source: pysha3
Version: 1.0.2-5
Severity: serious
Tags: upstream ftbfs
Justification: Policy 4.9, FTBFS

Howdy,

When attempting to build the package from source using the Python 3.11
development libraries, this package fails to build. The relevant build
process output is:

=====
running build_ext
building '_pysha3' extension
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/Modules
creating build/temp.linux-x86_64-cpython-311/Modules/_sha3
x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g 
-fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC 
-DPY_WITH_KECCAK=1 -I/usr/include/python3.11 -c Modules/_sha3/sha3module.c -o 
build/temp.linux-x86_64-cpython-311/Modules/_sha3/sha3module.o
Modules/_sha3/sha3module.c: In function ‘PyInit__pysha3’:
Modules/_sha3/sha3module.c:734:23: error: lvalue required as left operand of 
assignment
  734 |         Py_TYPE(type) = &PyType_Type; \
      |                       ^
Modules/_sha3/sha3module.c:744:5: note: in expansion of macro ‘init_sha3type’
  744 |     init_sha3type("sha3_224", &SHA3_224type);
      |     ^~~~~~~~~~~~~
Modules/_sha3/sha3module.c:734:23: error: lvalue required as left operand of 
assignment
  734 |         Py_TYPE(type) = &PyType_Type; \
      |                       ^
Modules/_sha3/sha3module.c:745:5: note: in expansion of macro ‘init_sha3type’
  745 |     init_sha3type("sha3_256", &SHA3_256type);
      |     ^~~~~~~~~~~~~
Modules/_sha3/sha3module.c:734:23: error: lvalue required as left operand of 
assignment
  734 |         Py_TYPE(type) = &PyType_Type; \
      |                       ^
Modules/_sha3/sha3module.c:746:5: note: in expansion of macro ‘init_sha3type’
  746 |     init_sha3type("sha3_384", &SHA3_384type);
      |     ^~~~~~~~~~~~~
Modules/_sha3/sha3module.c:734:23: error: lvalue required as left operand of 
assignment
  734 |         Py_TYPE(type) = &PyType_Type; \
      |                       ^
Modules/_sha3/sha3module.c:747:5: note: in expansion of macro ‘init_sha3type’
  747 |     init_sha3type("sha3_512", &SHA3_512type);
      |     ^~~~~~~~~~~~~
Modules/_sha3/sha3module.c:734:23: error: lvalue required as left operand of 
assignment
  734 |         Py_TYPE(type) = &PyType_Type; \
      |                       ^
Modules/_sha3/sha3module.c:749:5: note: in expansion of macro ‘init_sha3type’
  749 |     init_sha3type("keccak_224", &Keccak_224type);
      |     ^~~~~~~~~~~~~
Modules/_sha3/sha3module.c:734:23: error: lvalue required as left operand of 
assignment
  734 |         Py_TYPE(type) = &PyType_Type; \
      |                       ^
Modules/_sha3/sha3module.c:750:5: note: in expansion of macro ‘init_sha3type’
  750 |     init_sha3type("keccak_256", &Keccak_256type);
      |     ^~~~~~~~~~~~~
Modules/_sha3/sha3module.c:734:23: error: lvalue required as left operand of 
assignment
  734 |         Py_TYPE(type) = &PyType_Type; \
      |                       ^
Modules/_sha3/sha3module.c:751:5: note: in expansion of macro ‘init_sha3type’
  751 |     init_sha3type("keccak_384", &Keccak_384type);
      |     ^~~~~~~~~~~~~
Modules/_sha3/sha3module.c:734:23: error: lvalue required as left operand of 
assignment
  734 |         Py_TYPE(type) = &PyType_Type; \
      |                       ^
Modules/_sha3/sha3module.c:752:5: note: in expansion of macro ‘init_sha3type’
  752 |     init_sha3type("keccak_512", &Keccak_512type);
      |     ^~~~~~~~~~~~~
Modules/_sha3/sha3module.c:734:23: error: lvalue required as left operand of 
assignment
  734 |         Py_TYPE(type) = &PyType_Type; \
      |                       ^
Modules/_sha3/sha3module.c:754:5: note: in expansion of macro ‘init_sha3type’
  754 |     init_sha3type("shake_128", &SHAKE128type);
      |     ^~~~~~~~~~~~~
Modules/_sha3/sha3module.c:734:23: error: lvalue required as left operand of 
assignment
  734 |         Py_TYPE(type) = &PyType_Type; \
      |                       ^
Modules/_sha3/sha3module.c:755:5: note: in expansion of macro ‘init_sha3type’
  755 |     init_sha3type("shake_256", &SHAKE256type);
      |     ^~~~~~~~~~~~~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
E: pybuild pybuild:388: build: plugin distutils failed with: exit code=1: 
/usr/bin/python3 setup.py build
=====


-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.0.0-6-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_AU.UTF-8), LANGUAGE=en_AU.UTF-8
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- 
 \         “Marriage is a wonderful institution, but who would want to |
  `\                        live in an institution.” —Henry L. Mencken |
_o__)                                                                  |
Ben Finney <bign...@debian.org>

Attachment: signature.asc
Description: PGP signature

Reply via email to