Summary: | x11/pixman: doesn't build with clang 5 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Sylvain Garrigues <sylvain> | ||||||||||
Component: | Individual Port(s) | Assignee: | freebsd-x11 (Nobody) <x11> | ||||||||||
Status: | Closed DUPLICATE | ||||||||||||
Severity: | Affects Only Me | CC: | dim, freebsd-arm, sylvain, w.schwarzenfeld | ||||||||||
Priority: | --- | Keywords: | needs-qa | ||||||||||
Version: | Latest | ||||||||||||
Hardware: | arm | ||||||||||||
OS: | Any | ||||||||||||
Attachments: |
|
It used to build with clang 4 Created attachment 184765 [details]
Proposed workaround
Proposed workaround attached
Comment on attachment 184765 [details] Proposed workaround Clang 4.0 built fine because it failed configure check. -checking whether to use ARM SIMD assembler... no -checking whether to use ARM NEON assembler... no +checking whether to use ARM SIMD assembler... yes +checking whether to use ARM NEON assembler... yes [...] -checking for GCC vector extensions... no +checking for GCC vector extensions... yes > BUILD_DEPENDS+= as:devel/binutils Replace as with ${LOCALBASE}/bin/as. armv6 (unlike aarch64) does have /usr/bin/as which can be found via PATH thus BUILD_DEPENDS may ignore the dependency. Comment on attachment 184765 [details] Proposed workaround > CFLAGS+= -no-integrated-as -B/usr/local/bin Can you unhardcode /usr/local as ${LOCALBASE} ? Created attachment 184766 [details]
Proposed workaround #2
With suggested improvements
Created attachment 184767 [details]
Proposed workaround #3
Moved location of the .if ${ARCH} block after bsd.port.pre.mk is included, sorry.
What I don't like with my workaround is that because of the -B flag, all external tools called by clang (e.g. the linker) will come from the devel/binutils port, instead of the ones in base. My intention is only to use the latest GNU AS. Makefile shows: .if ${ARCH} == "armv6" || ${ARCH} == "armv7" BUILD_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils CONFIGURE_ENV+= CCASFLAGS="${CFLAGS} -no-integrated-as" .endif so I guess it is solved. Could it closed? http://beefy8.nyi.freebsd.org/data/head-armv6-default/p455013_s326301/logs/pixman-0.34.0.log (clang 5) http://beefy8.nyi.freebsd.org/data/head-armv6-default/p459021_s327977/logs/pixman-0.34.0.log (clang 6) *** This bug has been marked as a duplicate of bug 221814 *** |
Created attachment 184763 [details] Poudriere log Seems like it fails at assembly source code (pixman-arm-simd-asm.S) compilation, cf. build log attached.