<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - cannot compile libclc on armv7l arch"
   href="http://llvm.org/bugs/show_bug.cgi?id=15331">15331</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>cannot compile libclc on armv7l arch
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>alexander@mezon.ru
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Good day.
I compile libclc package for rpm5 on my i.mx6 arm machine.
And i got an error:


Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.61454
+ umask 022
+ cd /home/user/libclc/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/user/libclc/BUILD
+ rm -rf libclc
+ /usr/bin/xz -dc /home/user/libclc/libclc-20130112.tar.xz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libclc
+ echo 'Patch #0 (0001-Better-FHS-compliance.patch):'
Patch #0 (0001-Better-FHS-compliance.patch):
+ /bin/cat /home/user/libclc/0001-Better-FHS-compliance.patch
+ /usr/bin/patch --fuzz=0 -s -U -p1 -b --suffix .0000~
+ echo 'Patch #1 (0002-Support-for-overriding-generic-implementations.patch):'
Patch #1 (0002-Support-for-overriding-generic-implementations.patch):
+ /bin/cat
/home/user/libclc/0002-Support-for-overriding-generic-implementations.patch
+ /usr/bin/patch --fuzz=0 -s -U -p1 -b --suffix .0001~
+ echo 'Patch #2 (0003-Add-r600-support.patch):'
Patch #2 (0003-Add-r600-support.patch):
+ /bin/cat /home/user/libclc/0003-Add-r600-support.patch
+ /usr/bin/patch --fuzz=0 -s -U -p1 -b --suffix .0002~
+ python configure.py --prefix=/usr --pkgconfigdir=/usr/share/pkgconfig
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.744
+ umask 022
+ cd /home/fdkit/libclc/BUILD
+ cd libclc
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ /usr/bin/make -j4
LLVM-CC nvptx--nvidiacl/lib/synchronization/barrier.cl.bc
LLVM-CC nvptx--nvidiacl/lib/workitem/get_group_id.cl.bc
LLVM-CC nvptx--nvidiacl/lib/workitem/get_local_id.cl.bc
LLVM-CC nvptx--nvidiacl/lib/workitem/get_local_size.cl.bc
LLVM-CC nvptx--nvidiacl/lib/workitem/get_num_groups.cl.bc
LLVM-AS nvptx--nvidiacl/lib/integer/add_sat.ll.bc
LLVM-AS nvptx--nvidiacl/lib/integer/sub_sat.ll.bc
LLVM-CC nvptx--nvidiacl/lib/convert.cl.bc
LLVM-CC nvptx--nvidiacl/lib/geometric/cross.cl.bc
LLVM-CC nvptx--nvidiacl/lib/geometric/dot.cl.bc
LLVM-CC nvptx--nvidiacl/lib/geometric/length.cl.bc
LLVM-CC nvptx--nvidiacl/lib/geometric/normalize.cl.bc
LLVM-CC nvptx--nvidiacl/lib/integer/abs.cl.bc
LLVM-CC nvptx--nvidiacl/lib/integer/add_sat.cl.bc
LLVM-AS nvptx--nvidiacl/lib/integer/add_sat_impl.ll.bc
LLVM-CC nvptx--nvidiacl/lib/integer/sub_sat.cl.bc
LLVM-AS nvptx--nvidiacl/lib/integer/sub_sat_impl.ll.bc
LLVM-CC nvptx--nvidiacl/lib/math/hypot.cl.bc
LLVM-CC nvptx--nvidiacl/lib/math/mad.cl.bc
LLVM-CC nvptx--nvidiacl/lib/relational/any.cl.bc
LLVM-CC nvptx--nvidiacl/lib/workitem/get_global_id.cl.bc
LLVM-CC nvptx--nvidiacl/lib/workitem/get_global_size.cl.bc
LLVM-CXX utils/prepare-builtins.o
LLVM-CC nvptx64--nvidiacl/lib/synchronization/barrier.cl.bc
LLVM-CC nvptx64--nvidiacl/lib/workitem/get_group_id.cl.bc
LLVM-CC nvptx64--nvidiacl/lib/workitem/get_local_id.cl.bc
LLVM-CC nvptx64--nvidiacl/lib/workitem/get_local_size.cl.bc
LLVM-CC nvptx64--nvidiacl/lib/workitem/get_num_groups.cl.bc
LLVM-AS nvptx64--nvidiacl/lib/integer/add_sat.ll.bc
LLVM-AS nvptx64--nvidiacl/lib/integer/sub_sat.ll.bc
LLVM-CC nvptx64--nvidiacl/lib/convert.cl.bc
LLVM-CC nvptx64--nvidiacl/lib/geometric/cross.cl.bc
LLVM-CC nvptx64--nvidiacl/lib/geometric/dot.cl.bc
LLVM-CC nvptx64--nvidiacl/lib/geometric/length.cl.bc
LLVM-CC nvptx64--nvidiacl/lib/geometric/normalize.cl.bc
LLVM-CC nvptx64--nvidiacl/lib/integer/abs.cl.bc
LLVM-CC nvptx64--nvidiacl/lib/integer/add_sat.cl.bc
In file included from utils/prepare-builtins.cpp:2:
In file included from /usr/include/llvm/Bitcode/ReaderWriter.h:17:
In file included from
/usr/lib/gcc/armv7l-mandriva-linux-gnueabi/4.7.3/../../../../include/c++/4.7.3/string:53:
In file included from
/usr/lib/gcc/armv7l-mandriva-linux-gnueabi/4.7.3/../../../../include/c++/4.7.3/bits/basic_string.h:40:
/usr/lib/gcc/armv7l-mandriva-linux-gnueabi/4.7.3/../../../../include/c++/4.7.3/ext/atomicity.h:48:12:
error: cannot compile this atomic library call yet
  { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LLVM-AS nvptx64--nvidiacl/lib/integer/add_sat_impl.ll.bc
LLVM-CC nvptx64--nvidiacl/lib/integer/sub_sat.cl.bc
LLVM-AS nvptx64--nvidiacl/lib/integer/sub_sat_impl.ll.bc
LLVM-CC nvptx64--nvidiacl/lib/math/hypot.cl.bc
1 error generated.
make: *** [utils/prepare-builtins.o] Error 1
make: *** Waiting for unfinished jobs....
error: Bad exit status from /var/tmp/rpm-tmp.744 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.744 (%build)



rpm -qa | grep llvm

libllvm3.2-3.2-3-mdv2013.0.armv7l
llvm-3.2-3-mdv2013.0.armv7l
libllvm-devel-3.2-3-mdv2013.0.armv7l

rpm -qa | grep clang
libclang3.2-3.2-3-mdv2013.0.armv7l
clang-3.2-3-mdv2013.0.armv7l</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>