~bptato/chawan#44: 
Chawan OpenBSD build

Hi,

Thanks very much for your work on Chawan, it's awesome!

I have been running it on OpenBSD with no problems, until I tried building a current checkout today. I get a coredump while compiling:

/home/user/tmp/chawan/src/io/dynstream.nim(441, 8) Warning: method has lock level , but another method has 0 [LockLevel] ../home/user/tmp/chawan/src/io/dynstream.nim(494, 8) Warning: method has lock level 0, but another method has [LockLevel] ............Illegal instruction (core dumped) gmake: *** [Makefile:165: target/release/libexec/chawan/gopher2html] Error 132 gmake: *** Waiting for unfinished jobs.... Illegal instruction (core dumped) gmake: *** [Makefile:146: target/release/libexec/chawan/cgi-bin/gemini] Error 132 Illegal instruction (core dumped) gmake: *** [Makefile:165: target/release/libexec/chawan/gmi2html] Error 132 ....................Illegal instruction (core dumped) gmake: *** [Makefile:91: target/release/bin/cha] Error 132

The last time I successfully built it from source was around December 17, so it must be some change in that timeframe which is causing it.

I will try to diagnose this further to see if can narrow it down to a specific commit, but if you have any ideas on how to approach this, it would be greatly appreciated!

Best regards, Alex

Status
RESOLVED CLOSED
Submitter
a1ex@dismail.de
Assigned to
No-one
Submitted
a month ago
Updated
a month ago
Labels
No labels applied.

a1ex@dismail.de a month ago · edit

Here are a few more details:

Nim Compiler Version 1.6.18 [OpenBSD: amd64]

backtrace:

Core was generated by `nim'. Program terminated with signal SIGILL, Illegal instruction. #0 0x000005fb80b0444b in ?? () (gdb) bt #0 0x000005fb80b0444b in ?? () #1 0x0000000000000a00 in ?? () #2 0x000005fe62c7a7a0 in ?? () #3 0x000005fe62be4650 in ?? () #4 0x282defbad9b15c97 in ?? () #5 0x0000777b7ea95080 in ?? () #6 0x000005fb80b7df32 in ?? () #7 0x0000000000000000 in ?? ()

bptato a month ago · edit

Hi Alex,

Thanks very much for your work on Chawan, it's awesome!

thanks :)

I have been running it on OpenBSD with no problems, until I tried building a current checkout today. I get a coredump while compiling: [...] ............Illegal instruction (core dumped) gmake: *** [Makefile:165:

Probably because Nim in OpenBSD ports is still on 1.6.18, but Chawan now requires Nim 2.0.0 or newer. Try building Nim from source:

git clone https://github.com/nim-lang/Nim && cd Nim
./build_all.sh
export NIM="$PWD/bin/nim"

I guess there should be at least a Nim version check in main.nim, as the compiler dumping core isn't very instructive :P

(I'd been sticking with 1.6.14 support until recently, but after Debian dropped 1.6.14 from testing I decided there's no point.

Nim in OBSD ports doesn't support my OBSD machine's CPU, so I'm building from source there... I had no idea ports is still on 1.6.18, I would have waited if I knew :/)

a1ex@dismail.de a month ago · edit

Building the new version of Nim errored out part-way into it for some reason, but apparently got far enought that the 'nim' binary still works, and sucessfully builds Chawan :)

Thanks!

~bptato REPORTED CLOSED a month ago

A pyrrhic victory :) glad to hear it worked.

(I've added a version check now.)

Register here or Log in to comment, or comment via email.