Skip to content

Windows test_contract compile link errors #39

@kustomzone

Description

@kustomzone

Afaict, v0.1.30 compiled on Win10 okay.

fdev.exe
freenet.exe
freenet_ping.exe
test_contract_integration.dll  (556 kb)
test_contract_integration.pdb  (19 MB)
test_contract_update_nochange.dll  (467 kb)
test_contract_update_nochange.pdb  (19 MB)

v0.1.31 on Win10 has test_contract compile errors, but the same errors also occur compiling freenet/fdev (as below) possibly due to ubertest "requiring riverctl to be installed and up-to-date".
Caused while linking the same 3 externals;

  • symbol __frnt__logger__info
  • symbol __frnt__rand__rand_bytes
  • symbol __frnt__time__utc_now

"warning: [email protected]: Copied room_contract.wasm from contracts/room_contract.wasm"

 Compiling riverctl v0.1.15
 Running `C:\Users\Administrator\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name riverctl --edition=2021 

 ---
 
 Compiling freenet-ping-contract v0.1.11 (C:\Temp\freenet-core\apps\freenet-ping\contracts\ping)
 Compiling test-contract-integration v0.1.11 (C:\Temp\freenet-core\tests\test-contract-integration)
 Compiling test-contract-update-nochange v0.1.0 (C:\Temp\freenet-core\tests\test-contract-update-nochange)
 
error: linking with `link.exe` failed: exit code: 1120
  |
  = note:    Creating library C:\Temp-freenet\target\x86_64-pc-windows-msvc\debug\deps\freenet_ping_contract.dll.lib and object C:\Temp-freenet\target\x86_64-pc-windows-msvc\debug\deps\freenet_ping_contract.dll.exp␍
          libfreenet_stdlib-.rlib : error LNK2019: unresolved external symbol __frnt__time__utc_now referenced in function _ZN14freenet_stdlib4time3now17h0dcf5a195bfd3cdbE␍
          libfreenet_stdlib-.rlib : error LNK2019: unresolved external symbol __frnt__rand__rand_bytes referenced in function _ZN3std6thread5local17LocalKey$LT$T$GT$4with17h75b2a02ae431c075E␍
          libfreenet_stdlib-.rlib : error LNK2019: unresolved external symbol __frnt__logger__info referenced in function _ZN14freenet_stdlib3log4info17hdd922ce930ad4f17E␍
          C:\Temp-freenet\target\x86_64-pc-windows-msvc\debug\deps\freenet_ping_contract.dll : fatal error LNK1120: 3 unresolved externals␍

error: could not compile `freenet-ping-contract` (lib) due to 1 previous error
error: linking with `link.exe` failed: exit code: 1120
  |
  = note:    Creating library C:\Temp-freenet\target\x86_64-pc-windows-msvc\debug\deps\test_contract_integration.dll.lib and object C:\Temp-freenet\target\x86_64-pc-windows-msvc\debug\deps\test_contract_integration.dll.exp␍
          libfreenet_stdlib-.rlib : error LNK2019: unresolved external symbol __frnt__time__utc_now referenced in function _ZN14freenet_stdlib4time3now17h0dcf5a195bfd3cdbE␍
          libfreenet_stdlib-.rlib : error LNK2019: unresolved external symbol __frnt__rand__rand_bytes referenced in function _ZN3std6thread5local17LocalKey$LT$T$GT$4with17h75b2a02ae431c075E␍
          libfreenet_stdlib-.rlib : error LNK2019: unresolved external symbol __frnt__logger__info referenced in function _ZN14freenet_stdlib3log4info17hdd922ce930ad4f17E␍
          C:\Temp-freenet\target\x86_64-pc-windows-msvc\debug\deps\test_contract_integration.dll : fatal error LNK1120: 3 unresolved externals␍

error: could not compile `test-contract-integration` (lib) due to 1 previous error
error: linking with `link.exe` failed: exit code: 1120
  |
  = note:    Creating library C:\Temp-freenet\target\x86_64-pc-windows-msvc\debug\deps\test_contract_update_nochange.dll.lib and object C:\Temp-freenet\target\x86_64-pc-windows-msvc\debug\deps\test_contract_update_nochange.dll.exp␍
          libfreenet_stdlib-.rlib : error LNK2019: unresolved external symbol __frnt__time__utc_now referenced in function _ZN14freenet_stdlib4time3now17h0dcf5a195bfd3cdbE␍
          libfreenet_stdlib-.rlib : error LNK2019: unresolved external symbol __frnt__rand__rand_bytes referenced in function _ZN3std6thread5local17LocalKey$LT$T$GT$4with17h75b2a02ae431c075E␍
          libfreenet_stdlib-.rlib : error LNK2019: unresolved external symbol __frnt__logger__info referenced in function _ZN14freenet_stdlib3log4info17hdd922ce930ad4f17E␍
          C:\Temp-freenet\target\x86_64-pc-windows-msvc\debug\deps\test_contract_update_nochange.dll : fatal error LNK1120: 3 unresolved externals␍

error: could not compile `test-contract-update-nochange` (lib) due to 1 previous error

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