Closed Gapstare closed 1 month ago
Sorry for the delay on this one @Gapstare, nice to see your interest in the project. :tada:
Chaos is currently in very much of a "low-maintenance mode", or in practice "no-maintenance". According to the Vagrantfile, I've used Debian 9 the last time I was hacking on this.
I think you have basically two options:
-Wno-error=address-of-packed-member
to the appropriate place. (Let me know if you can't find it, and I'll help dig it up in our build scripts)gcc
understand that debug_screen_type
should also always have alignment 2. :thinking: Either way, you'll probably have to roll up the sleeves and try to understand this on your own, but I'm happy to give some feedback on the read (not necessarily very frequently though, but feel free to @perlun-me if you have specific questions). I'll probably have this in my email now also so if you write a comment here I'll be reminded about the existence of this issue. :slightly_smiling_face:
Thank you @perlun :slightly_smiling_face: I read about chaos in the comment section on osnews.com and it seemed interesting since it was developed mostly by Swedish speaking users. My understanding of C is basic and kernel development is above my head. Your tip about -Wno-error=address-of-packed-member
got me a bit on the way but then compilation crashes when modplay
. The author seems to have made a fix for C 11 but updating the code doesn't help. I would like to disable building modplay for now but I can't figure out how to make rake
skip this step. Any pointers?
Thank you @perlun 🙂 I read about chaos in the comment section on osnews.com and it seemed interesting since it was developed mostly by Swedish speaking users.
Yeah, we are indeed a bunch of mostly Swedish hackers who were involved in the project back then in fact. :slightly_smiling_face: :heart:
Your tip about
-Wno-error=address-of-packed-member
got me a bit on the way but then compilation crashes whenmodplay
.
Hmm, that's too bad. :unamused: What kind of error message do you get, could you paste it here?
The author seems to have made a fix for C 11 but updating the code doesn't help. I would like to disable building modplay for now but I can't figure out how to make
rake
skip this step. Any pointers?
Sure. :+1: This location in the build scripts determines what projects under the programs
directory that get compiled: https://github.com/chaos4ever/chaos/blob/b882f4a5365be210014f01e78d0e251f8185e226/programs/Rakefile#L5-L8
If you just remove modplay
from that list, you should hopefully get a bit further. Will be interesting to hear how it goes now! :slightly_smiling_face:
Thanks for the hints :slightly_smiling_face: When compiling modplay I get:
In function ‘memcopy’,
inlined from ‘hxcmod_load’ at hxcmod.c:1484:5:
hxcmod.c:401:7: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
401 | d[i]=s[i];
| ~~~~^~~~~
In file included from hxcmod.c:55:
hxcmod.c: In function ‘hxcmod_load’:
hxcmod.h:97:10: note: at offset 0 to object ‘length’ with size 1 declared here
97 | muchar length;
| ^~~~~~
In function ‘memcopy’,
inlined from ‘hxcmod_load’ at hxcmod.c:1484:5:
hxcmod.c:401:7: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
401 | d[i]=s[i];
| ~~~~^~~~~
@perlun I feel that we can close this issue now since I with your help have a working build environment (sans modplay). I have pushed my changes to my fork but I use qemu and libvirt instead of Virtualbox, it was just to much trouble getting it to work with my Debian testing installation. If you want to I can open a pull request but perhaps it belongs in a separate branch or something? It would solve https://github.com/chaos4ever/chaos/issues/174 .
@Gapstare Sorry for the silence from my end. 😬 Thanks for providing the modplay warnings, appreciated! It does seem like the way we've written the code there simply doesn't play well with the newer gcc
version. It's probably not too hard to fix, but... I'd need to give it a closer look to say definitely.
I have pushed my changes to my fork but I use qemu and libvirt instead of Virtualbox, it was just to much trouble getting it to work with my Debian testing installation. If you want to I can open a pull request but perhaps it belongs in a separate branch or something? It would solve #174 .
If you have the energy, by all means feel free to submit a PR with your changes! 👍 I can't promise that it'll be merged before having seen it but I'll definitely make sure we consider it for inclusion.
(For reference, see #176 for the outcome of this)
I try to build this with the more recent Debian 11. When compiling storm I get: