IAIK/sweb

Clang builds, but doesn't boot

Closed this issue · 1 comments

See the clang_compat_devel branch... Might be interesting for both clang and hardcore Apple fans to work on SWEB with their preferred compiler. Patches/ideas are more than welcome, my personal goal is to be able to build, boot and run SWEB without using GCC at all. This likely requires fixing parts of the code that depend on GCC bugs/features as well as adapting cmake build instructions to be more compiler agnostic.

This is probably not the current development focus, so feel free to mess around on that seperate branch (and rebase to current master), but please make sure you stay off of master for now (at least until SWEB boots reliably when complied with clang or something other than GCC).

Aaaand apparently something is broken again after merging a recent master.

It would be nice to at least get the cmake stuff into master (it won't impact GCC users at all and help with merge conflicts down the line) for now, I don't think the other fixes are harmful either. I can try to rebase, if necessary, the merge conflicts are easily resolvable by hand though (just remove the -gstabs2 flags and merge in the IF-statements).

Most warnings by clang so far seem to be about already/soon to be deprecated features in ustl, structs being used as classes elsewhere (ArchThreadInfo...) and similar shenanigans by the way as well as complaints about unused compiler flags.