zlib-devel library required on linux · Issue #1179 · Amulet-Team/Amulet-Map-Editor · GitHub
Skip to content

zlib-devel library required on linux #1179

Open

Description

@Densaugeo

Bug Report

Previously, I have installed Amulet by running:

sudo dnf install python3-devel
python -m pip install amulet-core

However, this now results in errors.

Current Behaviour:

amulet-core errors out during installation.

Expected behavior:

amulet-core should install without error.

Steps To Reproduce:

On a linux PC, run:

sudo dnf install python3-devel
python -m pip install amulet-core

Environment:

Fedora 41, Python 3.13, amulet-core 1.9.30.

Attachments

$ python -m pip install amulet-core
Defaulting to user installation because normal site-packages is not writeable
Collecting amulet-core
  Using cached amulet_core-1.9.30-py3-none-any.whl.metadata (4.3 kB)
Requirement already satisfied: numpy~=1.17 in /usr/lib64/python3.13/site-packages (from amulet-core) (1.26.4)
Collecting amulet-nbt~=2.0 (from amulet-core)
  Using cached amulet_nbt-2.1.5-cp313-cp313-linux_x86_64.whl
Collecting pymctranslate~=1.2 (from amulet-core)
  Using cached pymctranslate-1.2.35-py3-none-any.whl.metadata (2.2 kB)
Collecting portalocker~=2.4 (from amulet-core)
  Using cached portalocker-2.10.1-py3-none-any.whl.metadata (8.5 kB)
Collecting amulet-leveldb~=1.0b0 (from amulet-core)
  Using cached amulet_leveldb-1.0.2.tar.gz (745 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting platformdirs~=3.1 (from amulet-core)
  Using cached platformdirs-3.11.0-py3-none-any.whl.metadata (11 kB)
Collecting lz4~=4.3 (from amulet-core)
  Using cached lz4-4.4.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.8 kB)
Collecting mutf8~=1.0 (from amulet-nbt~=2.0->amulet-core)
  Using cached mutf8-1.0.6-cp313-cp313-linux_x86_64.whl
Using cached amulet_core-1.9.30-py3-none-any.whl (274 kB)
Using cached lz4-4.4.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB)
Using cached platformdirs-3.11.0-py3-none-any.whl (17 kB)
Using cached portalocker-2.10.1-py3-none-any.whl (18 kB)
Using cached pymctranslate-1.2.35-py3-none-any.whl (1.3 MB)
Building wheels for collected packages: amulet-leveldb
  Building wheel for amulet-leveldb (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for amulet-leveldb (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [81 lines of output]
      Failed to load config from /tmp/pip-install-cmx2k6mn/amulet-leveldb_acf40826e877492bab47fb40aa5f1cd3/pyproject.toml: 'tool'
      Try to load it from setup.cfg
      running bdist_wheel
      running build
      running build_py
      Failed to load config from /tmp/pip-install-cmx2k6mn/amulet-leveldb_acf40826e877492bab47fb40aa5f1cd3/pyproject.toml: 'tool'
      Try to load it from setup.cfg
      Failed to load config from /tmp/pip-install-cmx2k6mn/amulet-leveldb_acf40826e877492bab47fb40aa5f1cd3/pyproject.toml: 'tool'
      Try to load it from setup.cfg
      creating build/lib.linux-x86_64-cpython-313/leveldb
      copying src/leveldb/_version.py -> build/lib.linux-x86_64-cpython-313/leveldb
      copying src/leveldb/__init__.py -> build/lib.linux-x86_64-cpython-313/leveldb
      copying src/leveldb/_leveldb.pyi -> build/lib.linux-x86_64-cpython-313/leveldb
      copying src/leveldb/py.typed -> build/lib.linux-x86_64-cpython-313/leveldb
      UPDATING build/lib.linux-x86_64-cpython-313/leveldb/_version.py
      set build/lib.linux-x86_64-cpython-313/leveldb/_version.py to '1.0.2'
      running build_ext
      Failed to load config from /tmp/pip-install-cmx2k6mn/amulet-leveldb_acf40826e877492bab47fb40aa5f1cd3/pyproject.toml: 'tool'
      Try to load it from setup.cfg
      Failed to load config from /tmp/pip-install-cmx2k6mn/amulet-leveldb_acf40826e877492bab47fb40aa5f1cd3/pyproject.toml: 'tool'
      Try to load it from setup.cfg
      building 'leveldb._leveldb' extension
      creating build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db
      creating build/temp.linux-x86_64-cpython-313/leveldb-mcpe/port
      creating build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table
      creating build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util
      creating build/temp.linux-x86_64-cpython-313/src/leveldb
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/db/builder.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/builder.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/db/c.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/c.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/db/db_impl.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/db_impl.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/db/db_iter.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/db_iter.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/db/dbformat.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/dbformat.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/db/filename.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/filename.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/db/log_reader.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/log_reader.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/db/log_writer.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/log_writer.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/db/memtable.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/memtable.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/db/repair.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/repair.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/db/table_cache.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/table_cache.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/db/version_edit.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/version_edit.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/db/version_set.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/version_set.o -std=c++17
      ./leveldb-mcpe/db/version_set.cc: In member function ‘bool leveldb::VersionSet::ReuseManifest(const std::string&, const std::string&)’:
      ./leveldb-mcpe/db/version_set.cc:1075:21: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
       1075 |       manifest_size >= TargetFileSize(options_)) {
            |       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/db/write_batch.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/write_batch.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/db/zlib_compressor.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/zlib_compressor.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/db/zstd_compressor.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/zstd_compressor.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/port/port_posix.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/port/port_posix.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/port/port_posix_sse.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/port/port_posix_sse.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/table/block.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/block.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/table/block_builder.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/block_builder.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/table/filter_block.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/filter_block.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/table/format.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/format.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/table/iterator.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/iterator.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/table/merger.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/merger.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/table/table.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/table.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/table/table_builder.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/table_builder.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/table/two_level_iterator.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/two_level_iterator.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/util/arena.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/arena.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/util/bloom.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/bloom.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/util/cache.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/cache.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/util/coding.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/coding.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/util/comparator.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/comparator.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/util/crc32c.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/crc32c.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/util/env.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/env.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/util/env_posix.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/env_posix.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/util/filter_policy.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/filter_policy.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/util/hash.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/hash.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/util/histogram.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/histogram.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/util/logging.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/logging.o -std=c++17
      ./leveldb-mcpe/util/logging.cc: In function ‘bool leveldb::ConsumeDecimalNumber(Slice*, uint64_t*)’:
      ./leveldb-mcpe/util/logging.cc:58:40: warning: comparison of integer expressions of different signedness: ‘const int’ and ‘long unsigned int’ [-Wsign-compare]
         58 |           (v == kMaxUint64/10 && delta > kMaxUint64%10)) {
            |                                  ~~~~~~^~~~~~~~~~~~~~~
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/util/options.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/options.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./leveldb-mcpe/util/status.cc -o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/status.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -DLEVELDB_PLATFORM_POSIX -DDLLX= -Izlib -Ileveldb-mcpe -Ileveldb-mcpe/include -I/usr/include/python3.13 -c ./src/leveldb/_leveldb.cpp -o build/temp.linux-x86_64-cpython-313/src/leveldb/_leveldb.o -std=c++17
      g++ -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -shared build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/builder.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/c.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/db_impl.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/db_iter.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/dbformat.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/filename.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/log_reader.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/log_writer.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/memtable.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/repair.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/table_cache.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/version_edit.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/version_set.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/write_batch.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/zlib_compressor.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/db/zstd_compressor.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/port/port_posix.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/port/port_posix_sse.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/block.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/block_builder.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/filter_block.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/format.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/iterator.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/merger.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/table.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/table_builder.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/table/two_level_iterator.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/arena.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/bloom.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/cache.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/coding.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/comparator.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/crc32c.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/env.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/env_posix.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/filter_policy.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/hash.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/histogram.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/logging.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/options.o build/temp.linux-x86_64-cpython-313/leveldb-mcpe/util/status.o build/temp.linux-x86_64-cpython-313/src/leveldb/_leveldb.o -L/usr/lib64 -lz -o build/lib.linux-x86_64-cpython-313/leveldb/_leveldb.cpython-313-x86_64-linux-gnu.so
      /usr/bin/ld: cannot find -lz: No such file or directory
      collect2: error: ld returned 1 exit status
      error: command '/usr/bin/g++' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for amulet-leveldb
Failed to build amulet-leveldb
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (amulet-leveldb)

Activity

  1. added
    type: bugSomething isn't working
    state: triagethe severity of this ticket needs evaluating
    on Jul 5, 2025
  2. Densaugeo commented on Jul 5, 2025

    @Densaugeo
    Author

    Additional note: Googling suggests this might have something to do with a missing zlib, but the zlib package is already installed on my system.

  3. Densaugeo commented on Jul 6, 2025

    @Densaugeo
    Author

    Update: I was able to install it after installing the zlib-devel package. Could this be added to the Linux install instruction?

  4. gentlegiantJGC commented on Jul 8, 2025

    @gentlegiantJGC
    Member

    Linux is a bit of a pain to write instructions for. Some distributions include zlib by default and others don't.
    In the rewrite zlib is statically compiled which should solve this issue.

  5. changed the title [-]Amulet no longer installs on linux[/-] [+]zlib-devel library required on linux[/+] on Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: triagethe severity of this ticket needs evaluatingtype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions