Clang fails to build ZDoom due to dumb using a variable named "restrict" which is a reserved keyword, and failing on some inline ASM that GCC uses. This was fixed using the patch below and doesn't effect anything other than compilation with clang.
http://pastebin.com/pvCFxw0U
[r3579] Clang fails to build ZDoom
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Re: [r3579] Clang fails to build ZDoom
So clang has progressed enough to be able to compile ZDoom now? That's pretty impressive.
Re: [r3579] Clang fails to build ZDoom
Yep! Works with stable release 3.0 and the 3.1 current svn branch. Not only does it work but it runs well
Haven't bench-marked it against the GCC build in my linux distribution yet but that's planned.
(By the way, I wrote the post/patch above I just hadn't logged in to the ZDoom forums for a while so I forgot my pass :X)

(By the way, I wrote the post/patch above I just hadn't logged in to the ZDoom forums for a while so I forgot my pass :X)
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
Re: [r3579] Clang fails to build ZDoom
That little "issue" just got corrected, by the way - your post is now properly attributed to you.MP2E wrote:(By the way, I wrote the post/patch above I just hadn't logged in to the ZDoom forums for a while so I forgot my pass :X)
Re: [r3579] Clang fails to build ZDoom
Seems I somehow deleted a random line and it was included as part of my patch, creating an error with dumb. Gez found it and fixed it in r1365 of GZDoom, sorry about that.
(Also thanks for attributing the post to me)
EDIT: Also GZDoom builds perfectly now as well with clang
(Also thanks for attributing the post to me)
EDIT: Also GZDoom builds perfectly now as well with clang