Skip to content

Emulator does not start #599

@br0x

Description

@br0x

I have Ubuntu 24.
When trying to build according the docs, emulator does not start.

  1. Install nix - done (single user version 2.23.3)
  2. git clone --recurse-submodules https://github.com/OneKeyHQ/onekey-firmware.git - done
    cd onekey-firmware - done
  3. nix-shell - done
  4. poetry install - done
  5. cd core && poetry run make build_unix - done
  6. poetry run ./emu.py - fail
TREZOR_PATH=udp:127.0.0.1:54935
TREZOR_PROFILE_DIR=/var/tmp
TREZOR_UDP_PORT=54935
TREZOR_FIDO2_UDP_PORT=54937
TREZOR_SRC=~/onekey-firmware/core/src
Waiting for emulator to come up...
~/onekey-firmware/core/build/unix/trezor-emu-core: /nix/store/1n2l5law9g3b77hcfyp50vrhhssbrj5g-glibc-2.37-8/lib/libpthread.so.0: version `GLIBC_PRIVATE' not found (required by /nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib/librt.so.1)
Traceback (most recent call last):
  File "~/onekey-firmware/core/./emu.py", line 298, in <module>
    cli()
  File "~/onekey-firmware/.venv/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "~/onekey-firmware/.venv/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "~/onekey-firmware/.venv/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "~/onekey-firmware/.venv/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "~/onekey-firmware/core/./emu.py", line 259, in cli
    emulator.start()
  File "~/onekey-firmware/python/src/trezorlib/_internal/emulator.py", line 154, in start
    self.wait_until_ready()
  File "~/onekey-firmware/python/src/trezorlib/_internal/emulator.py", line 104, in wait_until_ready
    raise RuntimeError("Emulator proces died")
RuntimeError: Emulator proces died

GLIBC_PRIVATE suggests there is some conflict in the libraries
Please help to resolve
(emulator from original Trezor repository builds and runs without any problem)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions