| Summary: | games/xonotic: Fails to build with GCC 4.2.1 (internal compiler error), Use C11 compiler (clang) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Jan Beich <jbeich> | ||||
| Component: | Individual Port(s) | Assignee: | Dmitry Marakasov <amdmi3> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | Keywords: | patch | ||||
| Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(amdmi3) jbeich: merge-quarterly? |
||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Jan Beich
2016-07-21 00:39:15 UTC
compiler:c11 is not suitable here as the code doesn't really require c11. We can instead check compiler version directly. What do you think?
+.if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} == 42
+# internal compiler error with base gcc
+USE_GCC= yes
+.endif
USES=compiler:c11 allows building with /usr/bin/clang on FreeBSD 9.x but USE_GCC currently pulls around 306 MiB of dependencies as part of RUN_DEPENDS. Not to mention COMPILER_TYPE cannot be checked before <bsd.port.pre.mk> unless you include <bsd.compiler.mk> which is forbidden in ports. I find ports' Makefiles with conditionals more error prone than those written in declarative style. But this port is still maintained, so whatever... (In reply to Jan Beich from comment #2) > USES=compiler:c11 Again, it is not suitable as there's no c11 requirement at all. > allows building with /usr/bin/clang on FreeBSD 9.x Don't forget that 9.x is not the only platform which uses base gcc. Afair there's still no clang for mips. > but USE_GCC currently pulls around 306 MiB of dependencies as part of > RUN_DEPENDS. I don't see a big problem here. First, it's much less than xonotic pulls itself, second, obsolete 9.x pulls gcc for a lot of stuff anyway. > Not to mention COMPILER_TYPE cannot be checked before <bsd.port.pre.mk> Of course it is to be checked after <bsd.port.pre.mk>. > I find ports' Makefiles with conditionals more error prone than those > written in declarative style. But this port is still maintained, so > whatever... There's no declarative machinery for this case, unfortunately. A commit references this bug: Author: amdmi3 Date: Wed Jul 27 16:55:39 UTC 2016 New revision: 419187 URL: https://svnweb.freebsd.org/changeset/ports/419187 Log: - Use clang where possible - Add missing xorg dependency PR: 211258 Submitted by: jbeich@FreeBSD.org Changes: head/games/xonotic/Makefile |