Skip to content

Emulator build error #315

@btclinux

Description

@btclinux
$ nix-shell
error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'trezor-firmware-env'
         whose name attribute is located at /nix/store/k6wgqyawq9sfb3n5c3969lzk6x230a5j-source/pkgs/stdenv/generic/make-derivation.nix:302:7

       … while evaluating attribute 'buildInputs' of derivation 'trezor-firmware-env'
         at /nix/store/k6wgqyawq9sfb3n5c3969lzk6x230a5j-source/pkgs/stdenv/generic/make-derivation.nix:345:7:
          344|       depsHostHost                = lib.elemAt (lib.elemAt dependencies 1) 0;
          345|       buildInputs                 = lib.elemAt (lib.elemAt dependencies 1) 1;
             |       ^
          346|       depsTargetTarget            = lib.elemAt (lib.elemAt dependencies 2) 0;

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: path '/home/user/firmware-pro/pyright' does not exist

OK, replace in shell.nix:

pyright = nixpkgs.callPackage ./pyright {};

with

pyright = nixpkgs.pyright;

Next:

$ poetry run make build_unix
embed/extmod/modtrezorconfig/modtrezorconfig.c:74:2: error: #error "Emulator not support SE_THD89"
   74 | #error "Emulator not support SE_THD89"
      |  ^~~~~
In file included from embed/extmod/modtrezorcrypto/modtrezorcrypto.c:59:
embed/extmod/modtrezorcrypto/modtrezorcrypto-schnorr-bch.h:23:10: fatal error: se_thd89.h: No such file or directory
   23 | #include "se_thd89.h"
      |          ^~~~~~~~~~~~
compilation terminated.
In file included from embed/extmod/modtrezorio/modtrezorio.c:44:
embed/extmod/modtrezorio/modtrezorio-poll.h:26:10: fatal error: fpsensor_platform.h: No such file or directory
   26 | #include "fpsensor_platform.h"
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from embed/extmod/modtrezorui/display.c:137:
embed/extmod/modtrezorui/mipi_lcd.h:6:10: fatal error: sdram.h: No such file or directory
    6 | #include "sdram.h"
      |          ^~~~~~~~~
compilation terminated.
embed/extmod/modtrezorutils/modtrezorutils.c:25:10: fatal error: bc_bytewords.h: No such file or directory
   25 | #include "bc_bytewords.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions