Legrandin / pycryptodome

A self-contained cryptographic library for Python
https://www.pycryptodome.org
Other
2.74k stars 492 forks source link

pycryptodome 3.20.0 fails on Debian mips64el #795

Open bdrung opened 5 months ago

bdrung commented 5 months ago

pycryptodome 3.20.0 fails on Debian mips64el:

cd src/test && export PYTHON=python3 && cmake -DPYTHON= && /usr/bin/make
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.

-- The C compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_CXX_COMPILER_ID="" ; CMAKE_CXX_COMPILER_VERSION="" ; CMAKE_SIZEOF_VOID_P="8" ; CMAKE_SYSTEM_PROCESSOR="mips64" ; SSE=""
-- Configuring done (0.6s)
-- Generating done (0.1s)
-- Build files have been written to: /<<PKGBUILDDIR>>/src/test
make[2]: Entering directory '/<<PKGBUILDDIR>>/src/test'
make[3]: Entering directory '/<<PKGBUILDDIR>>/src/test'
make[4]: Entering directory '/<<PKGBUILDDIR>>/src/test'
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/test'
make[4]: Entering directory '/<<PKGBUILDDIR>>/src/test'
[  1%] Building C object CMakeFiles/mont.dir/<<PKGBUILDDIR>>/src/mont.c.o
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/test'
[  1%] Built target mont
make[4]: Entering directory '/<<PKGBUILDDIR>>/src/test'
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/test'
make[4]: Entering directory '/<<PKGBUILDDIR>>/src/test'
[  3%] Building C object CMakeFiles/test_mont.dir/test_mont.c.o
[  4%] Linking C executable test_mont
/usr/bin/ld: cannot find libasan_preinit.o: No such file or directory
/usr/bin/ld: cannot find -lasan: No such file or directory
/usr/bin/ld: cannot find -lubsan: No such file or directory

Full log: https://buildd.debian.org/status/fetch.php?pkg=pycryptodome&arch=mips64el&ver=3.20.0%2Bdfsg-1&stamp=1704982401&raw=0

thesamesam commented 5 months ago

That sounds like GCC is built without sanitizers for this arch (or they're not supported and hence not built).