Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#12103 - CI for OpenBSD #12105

Merged
merged 33 commits into from
Apr 21, 2020
Merged

Conversation

euantorano
Copy link
Contributor

@euantorano euantorano commented Sep 1, 2019

This is a work in progress fix for #12103 - it adds CI support for OpenBSD and I'll be adding FreeBSD support too if everyone's happy with the OpenBSD one.

I've got a build running right now - build #86238. In past runs there have been a few failures which look like they may be genuine errors - I'll probably end up creating a few issues for these once confirmed.

@euantorano
Copy link
Contributor Author

euantorano commented Sep 1, 2019

Looks like there are quite a few failures. A bunch of them are related to libgc, which I should hopefully be able to fix. Some of the more interesting ones are:

$ /home/build/Nim/bin/nim c --hints:on -d:testing --nimblePath:tests/deps --incremental:on --nimCache:nimcache/tests/ic/thallo.nim_0d61f8370cad1d412f80b84d143e1257 tests/ic/thallo_temp.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
Hint: system [Processing]
io.nim(647)              readFile
Error: unhandled exception: cannot open: /home/build/Nim/iterators.nim [IOError]

(the above is repeated a whole lot... not sure why?)

Output:
tgetaddrinfo.nim(22)     tgetaddrinfo
nativesockets.nim(262)   getAddrInfo
oserr.nim(94)            raiseOSError
Error: unhandled exception: Additional info: "service not supported for ai_socktype" [OSError]
FAIL: tests/async/tioselectors.nim C
Test "tests/async/tioselectors.nim" in category "async"
Failure: reExitcodesDiffer
Expected:
exitcode: 0
Gotten:
mexitcode: 1

Output:
tioselectors.nim(471)    tioselectors
tioselectors.nim(324)    vnode_test
tioselectors.nim(264)    chmodPath
fatal.nim(48)            sysFatal
Error: unhandled exception: value out of range: 511 [RangeError]
FAIL: tests/cpp/tasync_cpp.nim C++
Test "tests/cpp/tasync_cpp.nim" in category "cpp"
Failure: reNimcCrash
$ /home/build/Nim/bin/nim cpp --nilseqs:on --nimblePath:tests/deps tests/cpp/tasync_cpp.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: tasync_cpp [Processing]
Hint: jester [Processing]
Hint: net [Processing]
Hint: nativesockets [Processing]
Hint: os [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: math [Processing]
Hint: bitops [Processing]
Hint: macros [Processing]
Hint: algorithm [Processing]
Hint: unicode [Processing]
Hint: pathnorm [Processing]
Hint: osseps [Processing]
Hint: posix [Processing]
Hint: times [Processing]
Hint: options [Processing]
Hint: typetraits [Processing]
Hint: sets [Processing]
Hint: hashes [Processing]
Hint: monotimes [Processing]
Hint: strtabs [Processing]
Hint: re [Processing]
Hint: pcre [Processing]
Hint: rtarrays [Processing]
Hint: tables [Processing]
Hint: uri [Processing]
Hint: mimetypes [Processing]
Hint: asyncnet [Processing]
Hint: asyncdispatch [Processing]
Hint: heapqueue [Processing]
Hint: lists [Processing]
Hint: asyncstreams [Processing]
Hint: asyncfutures [Processing]
Hint: deques [Processing]
Hint: cstrutils [Processing]
Hint: selectors [Processing]
Hint: kqueue [Processing]
Hint: md5 [Processing]
Hint: logging [Processing]
Hint: httpcore [Processing]
Hint: asyncfile [Processing]
Hint: macrocache [Processing]
Hint: json [Processing]
Hint: lexbase [Processing]
Hint: streams [Processing]
Hint: parsejson [Processing]
Hint: strformat [Processing]
Hint: errorpages [Processing]
Hint: htmlgen [Processing]
Hint: utils [Processing]
Hint: cgi [Processing]
Hint: cookies [Processing]
Hint: request [Processing]
Hint: asynchttpserver [Processing]
Hint: patterns [Processing]
tasync_cpp.nim(9, 8) Warning: imported and not used: 'jester' [UnusedImport]
tasync_cpp.nim(10, 23) Warning: imported and not used: 'asyncnet' [UnusedImport]
Hint: clang++ -c  -w  -I/home/build/Nim/lib -I/home/build/Nim/tests/cpp -o /home/build/.cache/nim/tasync_cpp_d/stdlib_assertions.nim.cpp.o /home/build/.cache/nim/tasync_cpp_d/stdlib_assertions.nim.cpp [Exec]
Hint: clang++ -c  -w  -I/home/build/Nim/lib -I/home/build/Nim/tests/cpp -o /home/build/.cache/nim/tasync_cpp_d/stdlib_io.nim.cpp.o /home/build/.cache/nim/tasync_cpp_d/stdlib_io.nim.cpp [Exec]
Hint: clang++ -c  -w  -I/home/build/Nim/lib -I/home/build/Nim/tests/cpp -o /home/build/.cache/nim/tasync_cpp_d/stdlib_system.nim.cpp.o /home/build/.cache/nim/tasync_cpp_d/stdlib_system.nim.cpp [Exec]
Hint: clang++ -c  -w  -I/home/build/Nim/lib -I/home/build/Nim/tests/cpp -o /home/build/.cache/nim/tasync_cpp_d/stdlib_math.nim.cpp.o /home/build/.cache/nim/tasync_cpp_d/stdlib_math.nim.cpp [Exec]
Hint: clang++ -c  -w  -I/home/build/Nim/lib -I/home/build/Nim/tests/cpp -o /home/build/.cache/nim/tasync_cpp_d/stdlib_strutils.nim.cpp.o /home/build/.cache/nim/tasync_cpp_d/stdlib_strutils.nim.cpp [Exec]
Hint: clang++ -c  -w  -I/home/build/Nim/lib -I/home/build/Nim/tests/cpp -o /home/build/.cache/nim/tasync_cpp_d/stdlib_pathnorm.nim.cpp.o /home/build/.cache/nim/tasync_cpp_d/stdlib_pathnorm.nim.cpp [Exec]
Hint: clang++ -c  -w  -I/home/build/Nim/lib -I/home/build/Nim/tests/cpp -o /home/build/.cache/nim/tasync_cpp_d/stdlib_posix.nim.cpp.o /home/build/.cache/nim/tasync_cpp_d/stdlib_posix.nim.cpp [Exec]
Hint: clang++ -c  -w  -I/home/build/Nim/lib -I/home/build/Nim/tests/cpp -o /home/build/.cache/nim/tasync_cpp_d/stdlib_times.nim.cpp.o /home/build/.cache/nim/tasync_cpp_d/stdlib_times.nim.cpp [Exec]
/home/build/.cache/nim/tasync_cpp_d/stdlib_times.nim.cpp:1509:19: error: no matching function for call to 'localtime'
        struct tm* T2_ = localtime((&a));
                         ^~~~~~~~~
/usr/include/time.h:131:12: note: candidate function not viable: no known conversion from 'long *' to 'const time_t *' (aka 'const long long *') for 1st argument
struct tm *localtime(const time_t *);
           ^
1 error generated.
Error: execution of an external program failed: 'clang++ -c  -w  -I/home/build/Nim/lib -I/home/build/Nim/tests/cpp -o /home/build/.cache/nim/tasync_cpp_d/stdlib_times.nim.cpp.o /home/build/.cache/nim/tasync_cpp_d/stdlib_times.nim.cpp'

The above is valid - time_t is a long on Linux and long long on OpenBSD... Might have to have to patch the times module.

There are a couple of out of memory ones too, we probably just want to disable those tests for OpenBSD.

.gitignore Outdated Show resolved Hide resolved
@euantorano euantorano marked this pull request as ready for review September 3, 2019 15:17
@euantorano
Copy link
Contributor Author

Here's a run of the FreeBSD CI, which unfortunately fails due to #12113. I've marked this PR as ready for review rather than WIP.

@euantorano
Copy link
Contributor Author

Current OpenBSD test failures are pasted here, as of current PRs: https://paste.sr.ht/%7Eeuantorano/f69c3bd1374e96ce0b0b2ec848b43f4b1ed0e248

@Araq
Copy link
Member

Araq commented Sep 10, 2019

Ready to be merged?

@euantorano
Copy link
Contributor Author

@Araq the FreeBSD CI doesn’t work at all (see #12113) and there are still several OpenBSD failures. So really, it’s up to you. I can move the FreeBSD one to a separate PR and we can get started with OpenBSD if that would be easy?

Well also need either you or @dom96 (or somebody else with repository access) to set up the sr.ht integration.

@Araq
Copy link
Member

Araq commented Sep 10, 2019

I can move the FreeBSD one to a separate PR and we can get started with OpenBSD if that would be easy?

Sure, just tell me what to do. Tests can be disabled for specific platforms via disabled: "openbsd" (requires a testament patch but should be trivial).

@euantorano
Copy link
Contributor Author

euantorano commented Sep 10, 2019 via email

@euantorano
Copy link
Contributor Author

@Araq Ok, should be good to merge now. Once this is merged, I'll open more issues for other OpenBSD specific issues and try to sort them out. For reference, this is the most recent CI run using this manifest and the current output from a run against the repository's devel branch: https://builds.sr.ht/~euantorano/job/88615

I'll open a new PR for FreeBSD once this is merged as the moment koch runCI doesn't work at all there, which makes having FreeBSD CI kind of pointless until I work out why and sort out a patch.

@Araq Araq closed this Sep 11, 2019
@Araq Araq reopened this Sep 11, 2019
@euantorano euantorano changed the title #12103 - CI for OpenBSD and FreeBSD #12103 - CI for OpenBSD Sep 11, 2019
@euantorano euantorano force-pushed the fix/12103-builds.sr.ht-ci branch from e3645a9 to 32e745b Compare October 10, 2019 21:06
@euantorano
Copy link
Contributor Author

Seems my earlier PR for getAppFilename() doesn't play nicely with NimScript...

nim e tests/test_nimscript.nims
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/test_nimscript.nims' [Conf]
../lib/pure/os.nim(2744, 31) Error: this proc is not available on the NimScript target; usage of 'getCurrentDir' is a user-defined error
FAILURE

Not sure how to proceed.

@narimiran
Copy link
Member

@alaviss you are our CI expert :) Can you take a look and give your opinion/review?

.builds/openbsd.yml Outdated Show resolved Hide resolved
.builds/openbsd.yml Outdated Show resolved Hide resolved
.builds/openbsd.yml Outdated Show resolved Hide resolved
@euantorano euantorano force-pushed the fix/12103-builds.sr.ht-ci branch from 0ebab6d to 45f98c0 Compare October 28, 2019 20:21
@euantorano
Copy link
Contributor Author

euantorano commented Oct 28, 2019

Current Failures
Category: ccgbugs
Name: tests/ccgbugs/t6279.nim C
Action: run
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim c -r -d:fulldebug -d:smokeCycles --gc:refc tests/ccgbugs/t6279.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: t6279 [Processing]
CC: stdlib_assertions.nim
CC: stdlib_dollars.nim
CC: stdlib_io.nim
CC: stdlib_system.nim
CC: t6279.nim
Hint:  [Link]
io.nim(673)              readFile
Error: unhandled exception: cannot open: /home/build/Nim/iterators.nim [IOError]

-------------------------

Category: ccgbugs
Name: tests/ccgbugs/twrongrefcounting.nim C
Action: run
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim c -r --gc:refc -d:useGcAssert -d:useSysAssert -d:fulldebug -d:smokeCycles tests/ccgbugs/twrongrefcounting.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: twrongrefcounting [Processing]
CC: stdlib_assertions.nim
CC: stdlib_dollars.nim
CC: stdlib_io.nim
CC: stdlib_system.nim
CC: twrongrefcounting.nim
Hint:  [Link]
io.nim(673)              readFile
Error: unhandled exception: cannot open: /home/build/Nim/iterators.nim [IOError]

-------------------------

Category: compiler
Name: tests/compiler/tcppCompileToNamespace.nim C++
Action: run
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim cpp --cppCompileToNamespace:foo --nimCache:nimcache/tests/compiler/tcppCompileToNamespace.nim_f6f87c9fdcf8b3c3f07f93f1ee8712c9 -r tests/compiler/tcppCompileToNamespace.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/tests/compiler/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: tcppCompileToNamespace [Processing]
Hint: os [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: math [Processing]
Hint: bitops [Processing]
Hint: macros [Processing]
Hint: algorithm [Processing]
Hint: unicode [Processing]
Hint: pathnorm [Processing]
Hint: osseps [Processing]
Hint: posix [Processing]
Hint: times [Processing]
Hint: options [Processing]
Hint: typetraits [Processing]
CC: stdlib_io.nim
CC: stdlib_system.nim
CC: stdlib_pathnorm.nim
CC: stdlib_posix.nim
CC: stdlib_times.nim
CC: stdlib_os.nim
CC: tcppCompileToNamespace.nim
Hint:  [Link]
io.nim(673)              readFile
Error: unhandled exception: cannot open: /home/build/Nim/iterators.nim [IOError]

-------------------------

Category: cpp
Name: tests/cpp/tasync_cpp.nim C++
Action: run
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim cpp --nilseqs:on --nimblePath:tests/deps tests/cpp/tasync_cpp.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: tasync_cpp [Processing]
Hint: jester [Processing]
Hint: net [Processing]
Hint: nativesockets [Processing]
Hint: os [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: math [Processing]
Hint: bitops [Processing]
Hint: macros [Processing]
Hint: algorithm [Processing]
Hint: unicode [Processing]
Hint: pathnorm [Processing]
Hint: osseps [Processing]
Hint: posix [Processing]
Hint: times [Processing]
Hint: options [Processing]
Hint: typetraits [Processing]
Hint: sets [Processing]
Hint: hashes [Processing]
Hint: monotimes [Processing]
Hint: strtabs [Processing]
Hint: re [Processing]
Hint: pcre [Processing]
Hint: rtarrays [Processing]
Hint: tables [Processing]
Hint: uri [Processing]
Hint: mimetypes [Processing]
Hint: asyncnet [Processing]
Hint: asyncdispatch [Processing]
Hint: heapqueue [Processing]
Hint: lists [Processing]
Hint: asyncstreams [Processing]
Hint: asyncfutures [Processing]
Hint: deques [Processing]
Hint: cstrutils [Processing]
Hint: selectors [Processing]
Hint: kqueue [Processing]
Hint: md5 [Processing]
Hint: logging [Processing]
Hint: httpcore [Processing]
Hint: asyncfile [Processing]
Hint: macrocache [Processing]
Hint: json [Processing]
Hint: lexbase [Processing]
Hint: streams [Processing]
Hint: parsejson [Processing]
Hint: strformat [Processing]
Hint: errorpages [Processing]
Hint: htmlgen [Processing]
Hint: utils [Processing]
Hint: cgi [Processing]
Hint: cookies [Processing]
Hint: request [Processing]
Hint: asynchttpserver [Processing]
Hint: patterns [Processing]
tasync_cpp.nim(9, 8) Warning: imported and not used: 'jester' [UnusedImport]
tasync_cpp.nim(10, 23) Warning: imported and not used: 'asyncnet' [UnusedImport]
CC: stdlib_assertions.nim
CC: stdlib_io.nim
CC: stdlib_system.nim
CC: stdlib_math.nim
CC: stdlib_strutils.nim
CC: stdlib_pathnorm.nim
CC: stdlib_posix.nim
CC: stdlib_times.nim
CC: stdlib_os.nim
Error: execution of an external compiler program 'clang++ -c  -w  -I/home/build/Nim/lib -I/home/build/Nim/tests/cpp -o /home/build/.cache/nim/tasync_cpp_d/stdlib_times.nim.cpp.o /home/build/.cache/nim/tasync_cpp_d/stdlib_times.nim.cpp' failed with exit code: 1

/home/build/.cache/nim/tasync_cpp_d/stdlib_times.nim.cpp:1423:19: error: no matching function for call to 'localtime'
        struct tm* T2_ = localtime((&a));
                         ^~~~~~~~~
/usr/include/time.h:131:12: note: candidate function not viable: no known conversion from 'long *' to 'const time_t *' (aka 'const long long *') for 1st argument
struct tm *localtime(const time_t *);
           ^
1 error generated.

-------------------------

Category: dll
Name: tests/dll/server.nim C --gc:boehm --threads:on
Action: compile
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim c --debuginfo --hints:on --define:useNimRtl --app:lib --gc:boehm --threads:on --nimCache:nimcache/tests/dll/server.nim_b72fd7d9778886456f94711ee41aadba --stdout '--hint[Path]:off' '--hint[Processing]:off' tests/dll/server.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/tests/dll/server.nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
server.nim(23, 12) Warning: Potential object case transition, instantiate new object instead [CaseTransition]
CC: stdlib_assertions.nim
CC: stdlib_system.nim
CC: server.nim
Error: execution of an external compiler program 'clang -c  -w -pthread -g -fPIC  -I/home/build/Nim/lib -I/home/build/Nim/tests/dll -o /home/build/Nim/nimcache/tests/dll/server.nim_b72fd7d9778886456f94711ee41aadba/stdlib_system.nim.c.o /home/build/Nim/nimcache/tests/dll/server.nim_b72fd7d9778886456f94711ee41aadba/stdlib_system.nim.c' failed with exit code: 1

/home/build/Nim/nimcache/tests/dll/server.nim_b72fd7d9778886456f94711ee41aadba/stdlib_system.nim.c:152:1: error: unknown type name 'pthread_key_t'
pthread_key_t globalsSlot__ciXDZu9c27pHpCRMoz4RIgw;
^
1 error generated.

-------------------------

Category: dll
Name: lib/nimhcr.nim C --gc:boehm --outdir:tests/dll
Action: compile
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim c --hints:on -d:testing --nimblePath:tests/deps --gc:boehm --outdir:tests/dll --nimCache:nimcache/lib/nimhcr.nim_ad9107f746c3661c0d4c2e8d375e8b8d --stdout '--hint[Path]:off' '--hint[Processing]:off' lib/nimhcr.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/lib/nimhcr.nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
/home/build/Nim/lib/pure/pathnorm.nim(46, 10) Hint: 'dirs' is declared but not used [XDeclaredButNotUsed]
/home/build/Nim/lib/pure/times.nim(2467, 26) Warning: countLeapYears is deprecated [Deprecated]
/home/build/Nim/lib/pure/times.nim(2474, 15) Warning: countLeapYears is deprecated [Deprecated]
/home/build/Nim/lib/pure/times.nim(2482, 24) Warning: countLeapYears is deprecated [Deprecated]
/home/build/Nim/lib/pure/os.nim(2120, 6) Warning: declared lock level is 0, but real lock level is <unknown> [LockLevel]
/home/build/Nim/lib/pure/os.nim(2237, 6) Warning: declared lock level is 0, but real lock level is <unknown> [LockLevel]
/home/build/Nim/lib/pure/os.nim(2370, 6) Warning: declared lock level is 0, but real lock level is <unknown> [LockLevel]
/home/build/Nim/lib/pure/os.nim(2729, 8) Hint: 'getApplAux' is declared but not used [XDeclaredButNotUsed]
/home/build/Nim/lib/pure/includes/osenv.nim(6, 6) Warning: imported and not used: 'parseutils' [UnusedImport]
/home/build/Nim/lib/pure/reservedmem.nim(21, 6) Warning: import os.nim instead; ospaths is deprecated [Deprecated]
/home/build/Nim/lib/pure/reservedmem.nim(88, 5) Hint: 'memNoAccess' is declared but not used [XDeclaredButNotUsed]
/home/build/Nim/lib/nimhcr.nim(559, 35) Warning: Deprecated since v0.20, use 'initHashSet'; initSet is deprecated [Deprecated]
/home/build/Nim/lib/nimhcr.nim(559, 35) Warning: Deprecated since v0.20, use 'initHashSet'; initSet is deprecated [Deprecated]
/home/build/Nim/lib/nimhcr.nim(559, 35) Warning: Deprecated since v0.20, use 'initHashSet'; initSet is deprecated [Deprecated]
/home/build/Nim/lib/nimhcr.nim(225, 8) Hint: 'sanitize' is declared but not used [XDeclaredButNotUsed]
/home/build/Nim/lib/nimhcr.nim(221, 8) Hint: 'sanitize' is declared but not used [XDeclaredButNotUsed]
CC: stdlib_assertions.nim
CC: stdlib_system.nim
Error: execution of an external compiler program 'clang -c  -w -pthread -fPIC  -I/home/build/Nim/lib -I/home/build/Nim/lib -o /home/build/Nim/nimcache/lib/nimhcr.nim_ad9107f746c3661c0d4c2e8d375e8b8d/stdlib_system.nim.c.o /home/build/Nim/nimcache/lib/nimhcr.nim_ad9107f746c3661c0d4c2e8d375e8b8d/stdlib_system.nim.c' failed with exit code: 1

/home/build/Nim/nimcache/lib/nimhcr.nim_ad9107f746c3661c0d4c2e8d375e8b8d/stdlib_system.nim.c:241:1: error: unknown type name 'pthread_key_t'
pthread_key_t globalsSlot__ciXDZu9c27pHpCRMoz4RIgw;
^
1 error generated.

-------------------------

Category: dll
Name: tests/dll/client.nim C --gc:boehm --threads:on
Action: run
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim c --debuginfo --hints:on --define:useNimRtl --gc:boehm --threads:on --nimCache:nimcache/tests/dll/client.nim_b72fd7d9778886456f94711ee41aadba tests/dll/client.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/tests/dll/client.nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: client [Processing]
client.nim(24, 6) Hint: 'newOp' is declared but not used [XDeclaredButNotUsed]
client.nim(23, 6) Hint: 'newLit' is declared but not used [XDeclaredButNotUsed]
CC: stdlib_io.nim
CC: stdlib_system.nim
CC: client.nim
Error: execution of an external compiler program 'clang -c  -w -pthread -g  -I/home/build/Nim/lib -I/home/build/Nim/tests/dll -o /home/build/Nim/nimcache/tests/dll/client.nim_b72fd7d9778886456f94711ee41aadba/stdlib_system.nim.c.o /home/build/Nim/nimcache/tests/dll/client.nim_b72fd7d9778886456f94711ee41aadba/stdlib_system.nim.c' failed with exit code: 1

/home/build/Nim/nimcache/tests/dll/client.nim_b72fd7d9778886456f94711ee41aadba/stdlib_system.nim.c:174:1: error: unknown type name 'pthread_key_t'
pthread_key_t globalsSlot__ciXDZu9c27pHpCRMoz4RIgw;
^
1 error generated.

-------------------------

Category: dll
Name: tests/dll/server.nim C -d:release --gc:boehm --threads:on
Action: compile
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim c --debuginfo --hints:on --define:useNimRtl --app:lib -d:release --gc:boehm --threads:on --nimCache:nimcache/tests/dll/server.nim_d34d415620d651a0a081a5e9edd82bf9 --stdout '--hint[Path]:off' '--hint[Processing]:off' tests/dll/server.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/tests/dll/server.nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
server.nim(23, 12) Warning: Potential object case transition, instantiate new object instead [CaseTransition]
CC: stdlib_assertions.nim
CC: stdlib_system.nim
CC: server.nim
Error: execution of an external compiler program 'clang -c  -w -pthread -g -O3 -fPIC  -I/home/build/Nim/lib -I/home/build/Nim/tests/dll -o /home/build/Nim/nimcache/tests/dll/server.nim_d34d415620d651a0a081a5e9edd82bf9/stdlib_system.nim.c.o /home/build/Nim/nimcache/tests/dll/server.nim_d34d415620d651a0a081a5e9edd82bf9/stdlib_system.nim.c' failed with exit code: 1

/home/build/Nim/nimcache/tests/dll/server.nim_d34d415620d651a0a081a5e9edd82bf9/stdlib_system.nim.c:142:1: error: unknown type name 'pthread_key_t'
pthread_key_t globalsSlot__ciXDZu9c27pHpCRMoz4RIgw;
^
1 error generated.

-------------------------

Category: dll
Name: lib/nimhcr.nim C -d:release --gc:boehm --outdir:tests/dll
Action: compile
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim c --hints:on -d:testing --nimblePath:tests/deps -d:release --gc:boehm --outdir:tests/dll --nimCache:nimcache/lib/nimhcr.nim_971c84e013776fde059c893b2e666f79 --stdout '--hint[Path]:off' '--hint[Processing]:off' lib/nimhcr.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/lib/nimhcr.nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
/home/build/Nim/lib/pure/pathnorm.nim(46, 10) Hint: 'dirs' is declared but not used [XDeclaredButNotUsed]
/home/build/Nim/lib/pure/times.nim(2467, 26) Warning: countLeapYears is deprecated [Deprecated]
/home/build/Nim/lib/pure/times.nim(2474, 15) Warning: countLeapYears is deprecated [Deprecated]
/home/build/Nim/lib/pure/times.nim(2482, 24) Warning: countLeapYears is deprecated [Deprecated]
/home/build/Nim/lib/pure/os.nim(2120, 6) Warning: declared lock level is 0, but real lock level is <unknown> [LockLevel]
/home/build/Nim/lib/pure/os.nim(2237, 6) Warning: declared lock level is 0, but real lock level is <unknown> [LockLevel]
/home/build/Nim/lib/pure/os.nim(2370, 6) Warning: declared lock level is 0, but real lock level is <unknown> [LockLevel]
/home/build/Nim/lib/pure/os.nim(2729, 8) Hint: 'getApplAux' is declared but not used [XDeclaredButNotUsed]
/home/build/Nim/lib/pure/includes/osenv.nim(6, 6) Warning: imported and not used: 'parseutils' [UnusedImport]
/home/build/Nim/lib/pure/reservedmem.nim(21, 6) Warning: import os.nim instead; ospaths is deprecated [Deprecated]
/home/build/Nim/lib/pure/reservedmem.nim(88, 5) Hint: 'memNoAccess' is declared but not used [XDeclaredButNotUsed]
/home/build/Nim/lib/nimhcr.nim(559, 35) Warning: Deprecated since v0.20, use 'initHashSet'; initSet is deprecated [Deprecated]
/home/build/Nim/lib/nimhcr.nim(559, 35) Warning: Deprecated since v0.20, use 'initHashSet'; initSet is deprecated [Deprecated]
/home/build/Nim/lib/nimhcr.nim(559, 35) Warning: Deprecated since v0.20, use 'initHashSet'; initSet is deprecated [Deprecated]
/home/build/Nim/lib/nimhcr.nim(225, 8) Hint: 'sanitize' is declared but not used [XDeclaredButNotUsed]
/home/build/Nim/lib/nimhcr.nim(221, 8) Hint: 'sanitize' is declared but not used [XDeclaredButNotUsed]
CC: stdlib_assertions.nim
CC: stdlib_system.nim
Error: execution of an external compiler program 'clang -c  -w -pthread -O3 -fPIC  -I/home/build/Nim/lib -I/home/build/Nim/lib -o /home/build/Nim/nimcache/lib/nimhcr.nim_971c84e013776fde059c893b2e666f79/stdlib_system.nim.c.o /home/build/Nim/nimcache/lib/nimhcr.nim_971c84e013776fde059c893b2e666f79/stdlib_system.nim.c' failed with exit code: 1

/home/build/Nim/nimcache/lib/nimhcr.nim_971c84e013776fde059c893b2e666f79/stdlib_system.nim.c:231:1: error: unknown type name 'pthread_key_t'
pthread_key_t globalsSlot__ciXDZu9c27pHpCRMoz4RIgw;
^
1 error generated.

-------------------------

Category: dll
Name: tests/dll/client.nim C -d:release --gc:boehm --threads:on
Action: run
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim c --debuginfo --hints:on --define:useNimRtl -d:release --gc:boehm --threads:on --nimCache:nimcache/tests/dll/client.nim_d34d415620d651a0a081a5e9edd82bf9 tests/dll/client.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/tests/dll/client.nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: client [Processing]
client.nim(24, 6) Hint: 'newOp' is declared but not used [XDeclaredButNotUsed]
client.nim(23, 6) Hint: 'newLit' is declared but not used [XDeclaredButNotUsed]
CC: stdlib_io.nim
CC: stdlib_system.nim
CC: client.nim
Error: execution of an external compiler program 'clang -c  -w -pthread -g -O3  -I/home/build/Nim/lib -I/home/build/Nim/tests/dll -o /home/build/Nim/nimcache/tests/dll/client.nim_d34d415620d651a0a081a5e9edd82bf9/stdlib_system.nim.c.o /home/build/Nim/nimcache/tests/dll/client.nim_d34d415620d651a0a081a5e9edd82bf9/stdlib_system.nim.c' failed with exit code: 1

/home/build/Nim/nimcache/tests/dll/client.nim_d34d415620d651a0a081a5e9edd82bf9/stdlib_system.nim.c:164:1: error: unknown type name 'pthread_key_t'
pthread_key_t globalsSlot__ciXDZu9c27pHpCRMoz4RIgw;
^
1 error generated.

-------------------------

Category: exception
Name: tests/exception/t9657.nim C
Action: run
Result: reExitcodesDiffer
-------- Expected -------
exitcode: 1
--------- Given  --------
exitcode: 0

Output:

-------------------------

Category: lib
Name: lib/pure/coro.nim C
Action: compile
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim c --hints:on -d:testing --nimblePath:tests/deps --nimCache:nimcache/lib/pure/coro.nim_0d61f8370cad1d412f80b84d143e1257 --stdout '--hint[Path]:off' '--hint[Processing]:off' lib/pure/coro.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/lib/pure/coro.nimcfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
/home/build/Nim/lib/pure/pathnorm.nim(46, 10) Hint: 'dirs' is declared but not used [XDeclaredButNotUsed]
/home/build/Nim/lib/pure/times.nim(2467, 26) Warning: countLeapYears is deprecated [Deprecated]
/home/build/Nim/lib/pure/times.nim(2474, 15) Warning: countLeapYears is deprecated [Deprecated]
/home/build/Nim/lib/pure/times.nim(2482, 24) Warning: countLeapYears is deprecated [Deprecated]
/home/build/Nim/lib/pure/os.nim(2120, 6) Warning: declared lock level is 0, but real lock level is <unknown> [LockLevel]
/home/build/Nim/lib/pure/os.nim(2237, 6) Warning: declared lock level is 0, but real lock level is <unknown> [LockLevel]
/home/build/Nim/lib/pure/os.nim(2370, 6) Warning: declared lock level is 0, but real lock level is <unknown> [LockLevel]
/home/build/Nim/lib/pure/os.nim(2729, 8) Hint: 'getApplAux' is declared but not used [XDeclaredButNotUsed]
/home/build/Nim/lib/pure/includes/osenv.nim(6, 6) Warning: imported and not used: 'parseutils' [UnusedImport]
/home/build/Nim/lib/pure/coro.nim(80, 8) Hint: 'setcontext' is declared but not used [XDeclaredButNotUsed]
CC: stdlib_system.nim
CC: stdlib_posix.nim
CC: stdlib_times.nim
CC: stdlib_os.nim
CC: stdlib_lists.nim
CC: stdlib_coro.nim
Error: execution of an external compiler program 'clang -c  -w -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -I/home/build/Nim/lib -I/home/build/Nim/lib/pure -o /home/build/Nim/nimcache/lib/pure/coro.nim_0d61f8370cad1d412f80b84d143e1257/stdlib_coro.nim.c.o /home/build/Nim/nimcache/lib/pure/coro.nim_0d61f8370cad1d412f80b84d143e1257/stdlib_coro.nim.c' failed with exit code: 1

/home/build/Nim/nimcache/lib/pure/coro.nim_0d61f8370cad1d412f80b84d143e1257/stdlib_coro.nim.c:10:10: fatal error: 'ucontext.h' file not found
#include <ucontext.h>
         ^~~~~~~~~~~~
1 error generated.

-------------------------

Category: misc
Name: tests/misc/tdefine.nim C
Action: run
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim c -d:booldef -d:booldef2=false -d:intdef=2 -d:strdef=foobar -r tests/misc/tdefine.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: tdefine [Processing]
CC: stdlib_assertions.nim
CC: stdlib_system.nim
CC: tdefine.nim
Hint:  [Link]
io.nim(673)              readFile
Error: unhandled exception: cannot open: /home/build/Nim/iterators.nim [IOError]

-------------------------

Category: misc
Name: tests/misc/tparseopt.nim C
Action: run
Result: reExitcodesDiffer
-------- Expected -------
exitcode: 0
--------- Given  --------
exitcode: 1

Output:
parseopt
first round
kind: cmdLongOption	key:val  --  left:
second round
kind: cmdLongOption	key:val  --  left:
kind: cmdLongOption	key:val  --  debug:3
kind: cmdShortOption	key:val  --  l:4
kind: cmdShortOption	key:val  --  r:2
cmdLongOption foo
cmdLongOption path
parseoptNoVal
kind: cmdLongOption	key:val  --  left:
kind: cmdLongOption	key:val  --  debug:3
kind: cmdShortOption	key:val  --  l:
kind: cmdShortOption	key:val  --  r:2
kind: cmdLongOption	key:val  --  debug:2
kind: cmdLongOption	key:val  --  debug:1
kind: cmdShortOption	key:val  --  r:1
kind: cmdShortOption	key:val  --  r:0
kind: cmdShortOption	key:val  --  l:
kind: cmdShortOption	key:val  --  r:4
kind: cmdLongOption	key:val  --  debug:
exitCode: 1 cmd:/home/build/Nim/bin/nim c -r --verbosity:0 -o:/home/build/Nim/build/D20190112T145450 -d:testament_tparseopt /home/build/Nim/tests/misc/tparseopt.nim a1b 'a2 b' '' 'a4"b' 'a5'"'"'b' 'a6\b' 'a7'"'"'b'
tparseopt.nim(112)       tparseopt
assertions.nim(27)       failedAssertImpl
assertions.nim(20)       raiseAssert
fatal.nim(39)            sysFatal
Error: unhandled exception: tparseopt.nim(112, 16) `false`  [AssertionError]
-------------------------

Category: parallel
Name: tests/parallel/tarray_of_channels.nim C
Action: run
Result: reOutputsDiffer
-------- Expected -------
(x: 0.0)
(x: 0.0)
(x: 0.0)
test
test
test
--------- Given  --------
(x: 0.0)
(x: 0.0)
(x: 0.0)
pthread_mutex_destroy on mutex with waiters!
pthread_mutex_destroy on mutex with waiters!
pthread_mutex_destroy on mutex with waiters!
test
test
test
-------------------------

Category: parallel
Name: tests/parallel/tsendtwice.nim C
Action: run
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim c -r --threads:on tests/parallel/tsendtwice.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/tests/parallel/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: tsendtwice [Processing]
Hint: tables [Processing]
Hint: hashes [Processing]
Hint: math [Processing]
Hint: bitops [Processing]
Hint: macros [Processing]
Hint: algorithm [Processing]
tsendtwice.nim(66, 6) Hint: 'stop' is declared but not used [XDeclaredButNotUsed]
CC: stdlib_assertions.nim
CC: stdlib_dollars.nim
CC: stdlib_locks.nim
CC: stdlib_sharedlist.nim
CC: stdlib_io.nim
CC: stdlib_system.nim
CC: stdlib_hashes.nim
CC: stdlib_math.nim
CC: stdlib_tables.nim
CC: tsendtwice.nim
Hint:  [Link]
io.nim(673)              readFile
Error: unhandled exception: cannot open: /home/build/Nim/iterators.nim [IOError]

-------------------------

Category: stdlib
Name: tests/stdlib/tosprocterminate.nim C
Action: run
Result: reOutputsDiffer
-------- Expected -------
SUCCESS
--------- Given  --------
starting /bin/sh
stopping process
FAILED
-------------------------

Category: system
Name: tests/system/talloc2.nim C
Action: run
Result: reExitcodesDiffer
-------- Expected -------
exitcode: 0
--------- Given  --------
exitcode: 1

Output:
out of memory
-------------------------

Category: system
Name: tests/system/trealloc.nim C
Action: run
Result: reExitcodesDiffer
-------- Expected -------
exitcode: 0
--------- Given  --------
exitcode: 1

Output:
out of memory
-------------------------
  • The pthread_key_t issues are resolved by Fix #12135 and #12109 #12137
  • The struct tm *localtime issue is resolved by Fix #12135 and #12109 #12137
  • The repeated errors about Error: unhandled exception: cannot open: /home/build/Nim/iterators.nim [IOError] I have no idea about - I'm guessing this is caused by imports not getting the path correct for some reason? Any ideas?
  • The out of memory errors probably just want those tests disabled as they are for other CI services?
  • The tparseopt issue is interesting - it's probably worth SSHing into the build machine after failure and running the command that is invoked manually to see what it does

The other errors need further investigation.

@euantorano euantorano force-pushed the fix/12103-builds.sr.ht-ci branch from 52ebe42 to e25889e Compare November 11, 2019 20:14
@euantorano
Copy link
Contributor Author

euantorano commented Nov 11, 2019

Current Failures
Category: ccgbugs
Name: tests/ccgbugs/t6279.nim C
Action: run
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim c -r -d:fulldebug -d:smokeCycles --gc:refc tests/ccgbugs/t6279.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: t6279 [Processing]
CC: stdlib_assertions.nim
CC: stdlib_dollars.nim
CC: stdlib_io.nim
CC: stdlib_system.nim
CC: t6279.nim
Hint:  [Link]
io.nim(673)              readFile
Error: unhandled exception: cannot open: /home/build/Nim/iterators.nim [IOError]

-------------------------

Category: ccgbugs
Name: tests/ccgbugs/twrongrefcounting.nim C
Action: run
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim c -r --gc:refc -d:useGcAssert -d:useSysAssert -d:fulldebug -d:smokeCycles tests/ccgbugs/twrongrefcounting.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: twrongrefcounting [Processing]
CC: stdlib_assertions.nim
CC: stdlib_dollars.nim
CC: stdlib_io.nim
CC: stdlib_system.nim
CC: twrongrefcounting.nim
Hint:  [Link]
io.nim(673)              readFile
Error: unhandled exception: cannot open: /home/build/Nim/iterators.nim [IOError]

-------------------------

Category: compiler
Name: tests/compiler/tcppCompileToNamespace.nim C++
Action: run
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim cpp --cppCompileToNamespace:foo --nimCache:nimcache/tests/compiler/tcppCompileToNamespace.nim_f6f87c9fdcf8b3c3f07f93f1ee8712c9 -r tests/compiler/tcppCompileToNamespace.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/tests/compiler/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: tcppCompileToNamespace [Processing]
Hint: os [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: math [Processing]
Hint: bitops [Processing]
Hint: macros [Processing]
Hint: algorithm [Processing]
Hint: unicode [Processing]
Hint: pathnorm [Processing]
Hint: osseps [Processing]
Hint: posix [Processing]
Hint: times [Processing]
Hint: options [Processing]
Hint: typetraits [Processing]
CC: stdlib_io.nim
CC: stdlib_system.nim
CC: stdlib_pathnorm.nim
CC: stdlib_posix.nim
CC: stdlib_times.nim
CC: stdlib_os.nim
CC: tcppCompileToNamespace.nim
Hint:  [Link]
io.nim(673)              readFile
Error: unhandled exception: cannot open: /home/build/Nim/iterators.nim [IOError]

-------------------------

Category: exception
Name: tests/exception/t9657.nim C
Action: run
Result: reExitcodesDiffer
-------- Expected -------
exitcode: 1
--------- Given  --------
exitcode: 0

Output:

-------------------------

Category: misc
Name: tests/misc/tdefine.nim C
Action: run
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim c -d:booldef -d:booldef2=false -d:intdef=2 -d:strdef=foobar -r tests/misc/tdefine.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: tdefine [Processing]
CC: stdlib_assertions.nim
CC: stdlib_system.nim
CC: tdefine.nim
Hint:  [Link]
io.nim(673)              readFile
Error: unhandled exception: cannot open: /home/build/Nim/iterators.nim [IOError]

-------------------------

Category: misc
Name: tests/misc/tparseopt.nim C
Action: run
Result: reExitcodesDiffer
-------- Expected -------
exitcode: 0
--------- Given  --------
exitcode: 1

Output:
parseopt
first round
kind: cmdLongOption	key:val  --  left:
second round
kind: cmdLongOption	key:val  --  left:
kind: cmdLongOption	key:val  --  debug:3
kind: cmdShortOption	key:val  --  l:4
kind: cmdShortOption	key:val  --  r:2
cmdLongOption foo
cmdLongOption path
parseoptNoVal
kind: cmdLongOption	key:val  --  left:
kind: cmdLongOption	key:val  --  debug:3
kind: cmdShortOption	key:val  --  l:
kind: cmdShortOption	key:val  --  r:2
kind: cmdLongOption	key:val  --  debug:2
kind: cmdLongOption	key:val  --  debug:1
kind: cmdShortOption	key:val  --  r:1
kind: cmdShortOption	key:val  --  r:0
kind: cmdShortOption	key:val  --  l:
kind: cmdShortOption	key:val  --  r:4
kind: cmdLongOption	key:val  --  debug:
exitCode: 1 cmd:/home/build/Nim/bin/nim c -r --verbosity:0 -o:/home/build/Nim/build/D20190112T145450 -d:testament_tparseopt /home/build/Nim/tests/misc/tparseopt.nim a1b 'a2 b' '' 'a4"b' 'a5'"'"'b' 'a6\b' 'a7'"'"'b'
tparseopt.nim(112)       tparseopt
assertions.nim(27)       failedAssertImpl
assertions.nim(20)       raiseAssert
fatal.nim(39)            sysFatal
Error: unhandled exception: tparseopt.nim(112, 16) `false`  [AssertionError]
-------------------------

Category: parallel
Name: tests/parallel/tarray_of_channels.nim C
Action: run
Result: reOutputsDiffer
-------- Expected -------
(x: 0.0)
(x: 0.0)
(x: 0.0)
test
test
test
--------- Given  --------
(x: 0.0)
(x: 0.0)
(x: 0.0)
pthread_mutex_destroy on mutex with waiters!
pthread_mutex_destroy on mutex with waiters!
pthread_mutex_destroy on mutex with waiters!
test
test
test
-------------------------

Category: parallel
Name: tests/parallel/tsendtwice.nim C
Action: run
Result: reNimcCrash
-------- Expected -------

--------- Given  --------
$ /home/build/Nim/bin/nim c -r --threads:on tests/parallel/tsendtwice.nim
Hint: used config file '/home/build/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/tests/parallel/nim.cfg' [Conf]
Hint: used config file '/home/build/Nim/config/config.nims' [Conf]
Hint: used config file '/home/build/Nim/tests/config.nims' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: tsendtwice [Processing]
Hint: tables [Processing]
Hint: hashes [Processing]
Hint: math [Processing]
Hint: bitops [Processing]
Hint: macros [Processing]
Hint: algorithm [Processing]
tsendtwice.nim(66, 6) Hint: 'stop' is declared but not used [XDeclaredButNotUsed]
CC: stdlib_assertions.nim
CC: stdlib_dollars.nim
CC: stdlib_locks.nim
CC: stdlib_sharedlist.nim
CC: stdlib_io.nim
CC: stdlib_system.nim
CC: stdlib_hashes.nim
CC: stdlib_math.nim
CC: stdlib_tables.nim
CC: tsendtwice.nim
Hint:  [Link]
io.nim(673)              readFile
Error: unhandled exception: cannot open: /home/build/Nim/iterators.nim [IOError]

-------------------------

Category: stdlib
Name: tests/stdlib/tosprocterminate.nim C
Action: run
Result: reOutputsDiffer
-------- Expected -------
SUCCESS
--------- Given  --------
starting /bin/sh
stopping process
FAILED
-------------------------

The one I could really do with some help with is the repeated Error: unhandled exception: cannot open: /home/build/Nim/iterators.nim [IOError] - any ideas @Araq?

@euantorano euantorano force-pushed the fix/12103-builds.sr.ht-ci branch from 6afe660 to 68e8790 Compare March 22, 2020 22:34
@euantorano
Copy link
Contributor Author

PR rebased, CI failed before it had even finished the setup stage:

/home/build/Nim/lib/pure/typetraits.nim(92, 11) Error: cannot open file: std/macros

Is there any way to debug these types of issues more easily - such as to dump the paths that the file was looked for within? Its obviously getting the path wrong, and this type of error seems to happen a lot on OpenBSD for some reason.

@euantorano euantorano force-pushed the fix/12103-builds.sr.ht-ci branch from 68e8790 to 8a3b09a Compare March 23, 2020 20:42
@euantorano euantorano force-pushed the fix/12103-builds.sr.ht-ci branch 3 times, most recently from 697b2fe to fd07766 Compare March 31, 2020 17:54
@euantorano
Copy link
Contributor Author

Tests passing at last!

There are quite a few tests disabled, but I figure they can be fixed and enabled at a later date - at least this would catch any future regressions.

I’ll open an issue listing the disabled tests with reasons so they can be worked through in the future.

@euantorano euantorano force-pushed the fix/12103-builds.sr.ht-ci branch from d443334 to 1fa9e57 Compare April 20, 2020 13:17
@euantorano
Copy link
Contributor Author

Rebased, awaiting test completion. Created an issue for disabled tests: #14035

@euantorano
Copy link
Contributor Author

Build is passing for OpenBSD, the failures are for other CI platforms.

@Araq Araq merged commit 7828199 into nim-lang:devel Apr 21, 2020
@euantorano euantorano deleted the fix/12103-builds.sr.ht-ci branch April 21, 2020 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants