status-im / nim-eth

Common utilities for Ethereum
https://nimbus.status.im
Apache License 2.0
83 stars 31 forks source link

update ci.yml to test Nim 2.2; also test gcc-14 #730

Closed narimiran closed 2 months ago

tersec commented 2 months ago
[NimScript] exec: nim c  --styleCheck:usages --styleCheck:error --verbosity:0 --hints:off --skipUserCfg --nimcache:build/nimcache -f --warning[ObservableStores]:off -d:nimOldCaseObjects -d:chronicles_log_level=TRACE --threads:on -d:release   --outdir:build/ tools/dcli
/home/runner/work/nim-eth/nim-eth/eth/net/nat.nim(295, 7) Warning: use exitprocs.addExitProc; addQuitProc is deprecated [Deprecated]
/home/runner/work/nim-eth/nim-eth/tools/dcli.nim(265, 29) template/generic instantiation of `load` from here
/home/runner/.nimble/pkgs2/confutils-0.1.0-1f21a103798b7f550db123459801ecf05b2d8ed7/confutils.nim(1201, 13) Error: type mismatch
Expression: loadImpl(DiscoveryConf, commandLineParams(), "", "", true, true,
         secondarySourcesRef`gensym199, nil, getAppFilename())
  [1] DiscoveryConf: typedesc[DiscoveryConf]
  [2] commandLineParams(): seq[string]
  [3] "": string
  [4] "": string
  [5] true: bool
  [6] true: bool
  [7] secondarySourcesRef`gensym199: ref SecondarySources
  [8] nil: untyped
  [9] getAppFilename(): string

Expected one of (first mismatch at [position]):
[8] proc loadImpl[C, SecondarySources](Configuration: typedesc[C];
                                   cmdLine = commandLineParams(); version = "";
                                   copyrightBanner = ""; printUsage = true;
                                   quitOnFailure = true;
                                   secondarySourcesRef: ref SecondarySources;
    secondarySources: proc (config: Configuration:type;
                            sources: ref SecondarySources) {.gcsafe,
    raises: [ConfigurationError].} = nil; envVarsPrefix = getAppFilename()): Configuration:type

stack trace: (most recent call last)
/tmp/nimblecache-1194919871666104896/nimscriptapi_660971842427547941.nim(212, 16)
/home/runner/work/nim-eth/nim-eth/eth.nimble(95, 3) build_dcliTask
/home/runner/work/nim-eth/nim-eth/eth.nimble(39, 3) build
/home/runner/work/nim-eth/nim-eth/nim/lib/system/nimscript.nim(264, 7) exec
/home/runner/work/nim-eth/nim-eth/nim/lib/system/nimscript.nim(264, 7) Error: unhandled exception: FAILED: nim c  --styleCheck:usages --styleCheck:error --verbosity:0 --hints:off --skipUserCfg --nimcache:build/nimcache -f --warning[ObservableStores]:off -d:nimOldCaseObjects -d:chronicles_log_level=TRACE --threads:on -d:release   --outdir:build/ tools/dcli [OSError]
       Tip: 169 messages have been suppressed, use --verbose to show them.
nimscriptwrapper.nim(161) execScript

this one can be seen in nim-confutils more directly