Created attachment 168449 [details] poudriere build log. libatomic_ops fails to compile to arm. OS version: FreeBSD nostromo 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r296898M: Wed Mar 16 14:17:09 BRT 2016 ota@nostromo:/usr/obj/usr/src/sys/GENERIC amd64 clang verson: FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) libatomic_ops version: root@nostromo:/usr/ports/devel/libatomic_ops # svn info Caminho: . Working Copy Root Path: /usr/ports URL: svn://svn.freebsd.org/ports/head/devel/libatomic_ops Relative URL: ^/head/devel/libatomic_ops Raiz do Repositório: svn://svn.freebsd.org/ports UUID do repositório: 35697150-7ecd-e111-bb59-0022644237b5 Revisão: 411354 Tipo de Nó: diretório Agendado: normal Autor da Última Mudança: amdmi3 Revisão da Última Mudança: 395777 Data da Última Mudança: 2015-09-01 13:20:47 -0300 (ter, 01 set 2015)
Created attachment 168452 [details] Failed build on on arm (via poudriere & qemu) Same bug here. Attached is my build log.
Created attachment 168461 [details] fix build with clang 3.8.0 Clang 3.8.0 defines __ARM_ARCH_6KZ__, it was __ARM_ARCH_6K__ with clang 3.7.1. The attached patch should fix the issue.
@mikael.urankar : fix sound good to me, do you have a build log to attach to your patch ? @otacillio, sylvain: does the fix works for you ?
Created attachment 168468 [details] poudriere build log. Build log after patch.
Compiles fine here. Poudriere build log in the previous post.
Comment on attachment 168468 [details] poudriere build log. Compiles fine here after patch.
A commit references this bug: Author: rodrigo Date: Mon Mar 21 22:32:04 UTC 2016 New revision: 411626 URL: https://svnweb.freebsd.org/changeset/ports/411626 Log: Fix compilation for arm PR: 208176 Submitted by: mikael.urankar@gmail.com Changes: head/devel/libatomic_ops/files/ head/devel/libatomic_ops/files/patch-src_atomic__ops_sysdeps_gcc_arm.h
committed, thanks.
Compile fines too here now.
Hi, The latest update broke armv6, files/patch-src_atomic__ops_sysdeps_gcc_arm.h is still needed (same build failure). thanks in advance
Mikael reports that the latest update broke armv6.
see also #220008
*** Bug 220008 has been marked as a duplicate of this bug. ***
Does the existing patch fix the issue ? (https://bugs.freebsd.org/bugzilla/attachment.cgi?id=168461)
Yes the patch is still needed. I created a PR: https://github.com/ivmai/libatomic_ops/pull/26
Patch reintroduced, thanks