OpenBSD support?

Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!

If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.

We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: OpenBSD support?

Re: OpenBSD support?

by Rachael » Wed May 30, 2018 12:55 pm

The FreeBSD version works just fine, no errors.

I tried to bring it to OpenBSD though, and got an exec error. This is an executable, if anyone else is interested. (You might need an ad blocker, sendspace has some nasty ads) It was compiled in FreeBSD - I would've thought it SHOULD work just fine in OpenBSD. Guess I was wrong.

Re: OpenBSD support?

by Rachael » Wed May 30, 2018 11:20 am

I'll take a look.

Re: OpenBSD support?

by kevans91 » Wed May 30, 2018 11:14 am

Rachael wrote:Unfortunately it was still outputting the same style of debugging information as before, and GDB still said it was "corrupted" (was it really?)

I'm taking a break from this, for now, getting a bit frustrated with it and I need to rest.

If anyone else wants to try it, here's a few notes about OpenBSD's X environment:

If you don't mind a garishly-looking desktop, deploying OpenBSD with a simple X server with Xterm for the purposes of debugging is pretty easy to do. If you need something a little bit more modern-looking though, there are metapackages available for Xfce, MATE, Cinnamon, KDE, and a few other familiar desktop environments.

As a note, though, OpenBSD's default X server starts in "retro" mode, so if you don't have something to change the wallpaper it's going to irritate your eyes very quickly. (Personally, I just use putty with VcXSrv and SSH in and get a desktop environment that way, it's a lot easier for me)
Would it be easy for you to confirm if FreeBSD + Hexen behaves similarly? More than happy to debug it from there, but locating my Hexen media is going to be a little bit of a bear that I'd rather not poke unless I need to. =) Also understandable if you'd rather not try this combination, of course.

Re: OpenBSD support?

by Rachael » Thu May 24, 2018 10:15 am

Unfortunately it was still outputting the same style of debugging information as before, and GDB still said it was "corrupted" (was it really?)

I'm taking a break from this, for now, getting a bit frustrated with it and I need to rest.

If anyone else wants to try it, here's a few notes about OpenBSD's X environment:

If you don't mind a garishly-looking desktop, deploying OpenBSD with a simple X server with Xterm for the purposes of debugging is pretty easy to do. If you need something a little bit more modern-looking though, there are metapackages available for Xfce, MATE, Cinnamon, KDE, and a few other familiar desktop environments.

As a note, though, OpenBSD's default X server starts in "retro" mode, so if you don't have something to change the wallpaper it's going to irritate your eyes very quickly. (Personally, I just use putty with VcXSrv and SSH in and get a desktop environment that way, it's a lot easier for me)

Re: OpenBSD support?

by _mental_ » Thu May 24, 2018 9:39 am

You can specify additional compiler options via -DCMAKE_C_FLAGS=... and -DCMAKE_CXX_FLAGS=... in command line.

Re: OpenBSD support?

by Rachael » Thu May 24, 2018 9:27 am

Recompiling now... really wish I didn't have to edit CMakeLists.txt to do that.

Re: OpenBSD support?

by _mental_ » Thu May 24, 2018 9:14 am

You can try to add -ggdb compiler switch instead.

EDIT: And -gdwarf-2 may help too.

Re: OpenBSD support?

by Rachael » Thu May 24, 2018 8:51 am

I'm investigating installing LLDB on it now, but it's possible I may have to do that manually. Hopefully it's not going to make me clone the entire LLVM repository to get it - because that behemoth is a bloody nightmare to manage, especially on a virtual machine, even as lightweight as OpenBSD is.

Re: OpenBSD support?

by _mental_ » Thu May 24, 2018 8:01 am

Compiler is good but the version of GDB is quite old. Does it have a newer version or LLDB maybe?

Re: OpenBSD support?

by Rachael » Thu May 24, 2018 7:44 am

This is what mine says:

Code: Select all

OpenBSD clang version 5.0.1 (tags/RELEASE_501/final) (based on LLVM 5.0.1)
Target: amd64-unknown-openbsd6.3
Thread model: posix
InstalledDir: /usr/bin

Re: OpenBSD support?

by _mental_ » Thu May 24, 2018 7:43 am

Seems like GDB was unable to parse debug information.

I saw similar issues with custom built GCC on PowerPC Mac.
The only solution I found is to lower version of DWARF via command line for compiler.

This could be a totally different problem though. Probably it's a side effect of memory corruption.

BTW what's the version of GCC or Clang is used?

Re: OpenBSD support?

by Rachael » Thu May 24, 2018 7:07 am

Master is the active development branch, so it will always be newer than a tag.

Anyway - I went ahead to give it a go - unfortunately, my experience in debugging with POSIX tools is absolutely nil. :( But I got the error.



Hoping someone who is proficient with gdb can possibly help me trace the error.

Re: OpenBSD support?

by lea0342 » Thu May 24, 2018 6:56 am

haha i understand, i dont play with it myself even, i used to play with prboom and chocolate hexen for many many time, but now i like a little newer experience and i am using ketchup mod only for replaying some maps, i only tested it because that i know that a lot of people love it, thats why i was testing a little of everything myself.

At home i will test the master branch instead of the g3.3.2 to check if i can see if the errors are still there, but i suppose that master is older than tag g3.3.2 right or is the other way around right now?

Thanks for everything!

Re: OpenBSD support?

by Rachael » Thu May 24, 2018 4:43 am

I tested the master branch for GZDoom, directly. I didn't use mods though, my OpenBSD setup is rather bare and currently only contains shareware Doom in order to test the rendering output.

I'll test Hexen though. I am sorry but I really want to distance myself from Brutal Doom and would avoid it at all costs if I can, I'll only load it if I absolutely have to and there's no other way.

Re: OpenBSD support?

by lea0342 » Thu May 24, 2018 2:41 am

Rachael wrote:Alright. I'm going to do a test compile of master, myself, really quick, and if there are any changes needed I'll push them.

EDIT: My compile was successful and so far I haven't had any problems in my tests.
Thank you! but thats unexpected for me, dont you face the same problems i am facing? with the mods and hexen wad?

EDIT: I forget to say it, but i had compiled earlier the g3.3.2 git tag for GZDoom, and master for QZDoom, which one did you test?

Top