Opened 10 years ago

Last modified 9 years ago

#2804 closed defect

clang error on freeBSD — at Initial Version

Reported by: Guido Falsi Owned by:
Priority: Should Have Milestone: Alpha 17
Component: Core engine Keywords: FreeBSD clang patch
Cc: Vincent Cheng Patch:

Description

Hi,

I'm the maintaining the 0ad port in the FreeBSD ports collection.

I've been unable to make it compile after alpha 14. So I could not update the port further than that.

As you may know FreeBSD switched to clang as it's default compiler recently. Also the boost libraries are now being compiled using clang on all supported FreeBSD releases and being linked to libc++, not libstdc++ from gcc.

This means that to get a working 0ad I need to compile it with clang annd against libc++ too. I made a few patches which make it compile, but I'm not able to solve the error in the ataches file. Anyone can help? Any patches welcome to make it compile on FreeBSD, I can use those as local patches while a permanent solution is found.

Full log of the failed build is available here (it's big...):

http://www.madpilot.net/~mad/0ad/0ad-0.0.16.log.xz

Also, after release 10.0 FreeBSD includes an iconv implementation in it's libc, I had to patch the buid system to cater for this.

I also found an hardcoded gcc command in premake4.lua, I worked around that using substitutions.

The present state of the not working port is available here:

http://www.madpilot.net/~mad/0ad.txz

It also contains all the additional patches I made, which I'd like to have included, after adaption obviously (some parts are strictly FreeBSD ports specific ones)

I hope someone will be willing to have a look at the patches and integrate them. I'm available for any explanations needed.

Thanks in advance for any help and/or feedback.

Change History (1)

by Guido Falsi, 10 years ago

Attachment: 0ad-clang.error added

Trimmed clang error

Note: See TracTickets for help on using tickets.