﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	phab_field
2804	clang error on FreeBSD	Guido Falsi		"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 and link against libc++. I made a few patches to try to make it compile, but I'm not able to solve the error in the attached 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/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."	defect	new	Should Have	Backlog	Core engine		FreeBSD clang		
