Skip to content

Instantly share code, notes, and snippets.

@genotrance
Last active March 20, 2018 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save genotrance/cc575b760428289586e141f2ef64c3ba to your computer and use it in GitHub Desktop.
Save genotrance/cc575b760428289586e141f2ef64c3ba to your computer and use it in GitHub Desktop.
Nimscript ready modules
Failed nimrtl
lib\nimrtl.nim(28, 10) Error: This file has to be compiled as a library!
Failed coro
lib\pure\coro.nim(23, 12) Error: Coroutines require -d:nimCoroutines
Failed endians
lib\pure\endians.nim(103, 57) Error: undeclared identifier: 'copyMem'
Failed htmlparser
lib\pure\streams.nim(367, 7) Error: undeclared identifier: 'copyMem'
Failed json
lib\pure\streams.nim(367, 7) Error: undeclared identifier: 'copyMem'
Failed lexbase
lib\pure\streams.nim(367, 7) Error: undeclared identifier: 'copyMem'
Failed marshal
lib\pure\streams.nim(367, 7) Error: undeclared identifier: 'copyMem'
Failed md5
lib\pure\md5.nim(172, 3) Error: undeclared identifier: 'zeroMem'
Failed nimprof
lib\pure\nimprof.nim(15, 10) Error: Profiling support is turned off! Enable profiling by passing `--profiler:on --stackTrace:on` to the compiler (see the Nim Compiler User Guide for more options).
Failed nimtracker
lib\pure\nimtracker.nim(13, 10) Error: Memory tracking support is turned off!
Failed parsecfg
lib\pure\streams.nim(367, 7) Error: undeclared identifier: 'copyMem'
Failed parsecsv
lib\pure\streams.nim(367, 7) Error: undeclared identifier: 'copyMem'
Failed parsesql
lib\pure\streams.nim(367, 7) Error: undeclared identifier: 'copyMem'
Failed parsexml
lib\pure\streams.nim(367, 7) Error: undeclared identifier: 'copyMem'
Failed punycode
lib\pure\punycode.nim(168, 11) Error: type mismatch: got <string, string, int>
but expected one of:
proc insert[T](x: var seq[T]; item: T; i = 0.Natural)
first type mismatch at position: 1
required type: var seq[T]
but expression 'result' is of type: string
expression: insert(result, $Rune(n), i)
Failed ropes
lib\pure\streams.nim(367, 7) Error: undeclared identifier: 'copyMem'
Failed securehash
lib\std\sha1.nim(145, 14) template/generic instantiation from here
lib\std\sha1.nim(50, 3) Error: undeclared identifier: 'zeroMem'
Failed streams
lib\pure\streams.nim(367, 7) Error: undeclared identifier: 'copyMem'
Failed unittest
lib\pure\streams.nim(367, 7) Error: undeclared identifier: 'copyMem'
Failed xmlparser
lib\pure\streams.nim(367, 7) Error: undeclared identifier: 'copyMem'
Failed unidecode
lib\pure\unidecode\unidecode.nim(48, 17) Error: undeclared identifier: 'lines'
Failed threadpool
lib\pure\concurrency\threadpool.nim(13, 10) Error: Threadpool requires --threads:on option.
Failed LockFreeHash
lib\pure\collections\LockFreeHash.nim(9, 30) Error: undeclared identifier: 'alloc0'
Failed sharedstrings
lib\pure\collections\sharedstrings.nim(26, 6) Error: undeclared identifier: 'atomicDec'
Failed sharedtables
lib\pure\collections\sharedtables.nim(35, 51) Error: undeclared identifier: 'allocShared0'
Failed tableimpl
lib\pure\collections\tableimpl.nim(14, 21) Error: undeclared identifier: 'Hash'
Failed posix_linux_amd64
lib\posix\posix_linux_amd64.nim(38, 24) Error: undeclared identifier: 'SigHandler'
Failed posix_linux_amd64_consts
lib\posix\posix_linux_amd64_consts.nim(301, 21) Error: undeclared identifier: 'InAddrScalar'
Failed asyncjs
lib\js\jsffi.nim(37, 10) Error: Module jsFFI is designed to be used with the JavaScript backend.
Failed dom
lib\js\dom.nim(14, 10) Error: This module only works on the JavaScript platform
Failed jsconsole
lib\js\jsconsole.nim(14, 10) Error: This module only works on the JavaScript platform
Failed jsffi
lib\js\jsffi.nim(37, 10) Error: Module jsFFI is designed to be used with the JavaScript backend.
Failed db_mysql
lib\impure\db_mysql.nim(89, 1) Error: cannot generate VM code for export
db_common
Failed db_odbc
lib\impure\db_odbc.nim(93, 1) Error: cannot generate VM code for export
db_common
Failed db_postgres
lib\impure\db_postgres.nim(69, 1) Error: cannot generate VM code for export
db_common
Failed db_sqlite
lib\impure\db_sqlite.nim(89, 1) Error: cannot generate VM code for export
db_common
Failed nre
lib\impure\nre.nim(18, 1) Error: cannot generate VM code for export
options
Failed osinfo_posix
lib\impure\osinfo_posix.nim(10, 8) Error: This module has been moved to the 'osinfo' nimble package.
Failed osinfo_win
lib\impure\osinfo_win.nim(10, 8) Error: This module has been moved to the 'osinfo' nimble package.
Failed rdstdin
lib\impure\rdstdin.nim(22, 5) Error: undeclared identifier: 'stdout'
Failed re
lib\impure\re.nim(100, 3) Error: undeclared identifier: 'copyMem'
Failed unsigned
lib\deprecated\core\unsigned.nim(17, 1) Error: cannot generate VM code for export
`shr`, `shl`, `and`, `or`, `xor`, `==`, `+`, `-`, `*`, `div`, `mod`, `<=`, `<`
Failed refs
lib\core\typelayouts.nim(13, 42) Error: undeclared identifier: 'Allocator'
Failed strs
lib\core\strs.nim(20, 34) Error: type mismatch: got <cstring> but expected 'ptr UncheckedArray[system.char]'
Failed typelayouts
lib\core\typelayouts.nim(13, 42) Error: undeclared identifier: 'Allocator'
Failed prelude
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed openssl
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed registry
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed winlean
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed async
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed asyncdispatch
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed asyncfile
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed asyncftpclient
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed asyncfutures
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed asynchttpserver
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed asyncnet
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed asyncstreams
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed browsers
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed cgi
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed cookies
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed encodings
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed fenv
lib\pure\fenv.nim(19, 3) Error: cannot 'importc' variable at compile time
Failed httpclient
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed httpserver
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed logging
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed memfiles
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed mimetypes
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed nativesockets
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed net
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed oids
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed os
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed osproc
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed parseopt
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed parseopt2
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed scgi
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed segfaults
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed selectors
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed smtp
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed strtabs
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed terminal
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed times
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed xmldomparser
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed xmltree
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed cpuinfo
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed cpuload
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed epoll
lib\posix\posix_other.nim(558, 3) Error: cannot 'importc' variable at compile time
Failed kqueue
lib\posix\posix_other.nim(558, 3) Error: cannot 'importc' variable at compile time
Failed linux
lib\posix\posix_other.nim(558, 3) Error: cannot 'importc' variable at compile time
Failed posix
lib\posix\posix_other.nim(558, 3) Error: cannot 'importc' variable at compile time
Failed posix_other
lib\posix\posix_other.nim(558, 3) Error: cannot 'importc' variable at compile time
Failed posix_other_consts
lib\posix\posix_other_consts.nim(4, 5) Error: cannot 'importc' variable at compile time
Failed termios
lib\posix\posix_other.nim(558, 3) Error: cannot 'importc' variable at compile time
Failed ssl
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed actors
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed asyncio
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed ftpclient
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed rawsockets
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Failed sockets
lib\windows\winlean.nim(527, 3) Error: cannot 'importc' variable at compile time
Tested system
Tested iup
Tested mysql
Tested odbcsql
Tested pcre
Tested postgres
Tested sqlite3
Tested tinyc
Tested linenoise
Tested sets
Tested algorithm
Tested asyncmacro
Tested base64
Tested bitops
Tested colors
Tested complex
Tested cstrutils
Tested db_common
Tested distros
Tested dynlib
Tested events
Tested future
Tested hashes
Tested htmlgen
Tested httpcore
Tested lenientops
Tested matchers
Tested math
Tested mersenne
Tested options
Tested ospaths
Tested oswalkdir
Tested parseutils
Tested pegs
Tested random
Tested rationals
Tested stats
Tested strformat
Tested strmisc
Tested strscans
Tested strutils
Tested subexes
Tested typetraits
Tested unicode
Tested uri
Tested volatile
Tested xmldom
Tested chains
Tested critbits
Tested deques
Tested heapqueue
Tested intsets
Tested lists
Tested queues
Tested rtarrays
Tested sequtils
Tested sets
Tested sharedlist
Tested tables
Tested inotify
Tested parseurl
Tested allocators
Tested locks
Tested macros
Tested rlocks
Tested seqs
Tested typeinfo
import os
import osproc
import strutils
var passed = ""
var failed = ""
var importc = ""
for file in walkDirRec(commandLineParams()[0]):
let spl = file.extractFilename().splitFile()
if spl.ext == ".nim":
try:
writeFile("imp.nims", "import " & spl.name)
except:
sleep(1)
writeFile("imp.nims", "import " & spl.name)
let (outp, errc) = execCmdEx("nim e --verbosity:0 imp.nims")
if errc != 0:
let errstr = "Failed " & spl.name & "\n" & outp & "\n"
if "importc" in outp.string:
importc &= errstr
elif "cannot open" in outp.string:
discard
else:
failed &= errstr
else:
passed &= "Tested " & spl.name & "\n"
removeFile("imp.nims")
writeFile("passed.txt", passed)
writeFile("failed.txt", failed)
writeFile("importc.txt", importc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment