<html>
    <head>
      <base href="https://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 --- - error in backend when compiling v8 on s390x"
   href="https://llvm.org/bugs/show_bug.cgi?id=28735">28735</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>error in backend when compiling v8 on s390x
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.8
          </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>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>dan@danny.cz
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16817" name="attach_16817" title="preprocessed source file">attachment 16817</a> <a href="attachment.cgi?id=16817&action=edit" title="preprocessed source file">[details]</a></span>
preprocessed source file

when building v8-5.2.258 on Fedora/s390x with clang/llvm 3.8, the build fails
with

...
  /usr/bin/clang++ '-DV8_TARGET_ARCH_S390' '-DV8_TARGET_ARCH_S390X'
'-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS'
'-DV8_I18N_SUPPORT' '-DENABLE_HANDLE_ZAPPING' -I../.  -Wall -Werror
-Wno-unused-parameter -Wno-long-long -pthread -Wmissing-field-initializers
-fPIC -Wno-sign-compare -m64 -m64 -fdata-sections -ffunction-sections -O3
-fdata-sections -ffunction-sections -O3 -Wnon-virtual-dtor -fno-exceptions
-fno-rtti -std=gnu++11 -MMD -MF
/home/sharkcz/v8/v8-5.2.258/out/s390x.release/.deps//home/sharkcz/v8/v8-5.2.258/out/s390x.release/obj.target/v8_libbase/src/base/once.o.d.raw
 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -m64 -march=z10 -mtune=z10 -c -o
/home/sharkcz/v8/v8-5.2.258/out/s390x.release/obj.target/v8_libbase/src/base/once.o
../src/base/once.cc
fatal error: error in backend: Cannot select: 0x2aa3a6bf0d0: ch = AtomicFence
0x2aa3a6bed40:1, Constant:i64<7>, Constant:i64<1>
  0x2aa3a6bee70: i64 = Constant<7>
  0x2aa3a6befa0: i64 = Constant<1>
In function: _ZN2v84base12CallOnceImplEPlPFvPvES2_
clang-3.8: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 3.8.0 (tags/RELEASE_380/final)
Target: s390x-ibm-linux
Thread model: posix
InstalledDir: /usr/bin
clang-3.8: note: diagnostic msg: PLEASE submit a bug report to  and include the
crash backtrace, preprocessed source, and associated run script.
clang-3.8: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.8: note: diagnostic msg: /tmp/once-ee9889.cpp
clang-3.8: note: diagnostic msg: /tmp/once-ee9889.sh
clang-3.8: note: diagnostic msg: 

********************
src/v8_libbase.target.s390x.release.mk:178: recipe for target
'/home/sharkcz/v8/v8-5.2.258/out/s390x.release/obj.target/v8_libbase/src/base/once.o'
failed
make[1]: ***
[/home/sharkcz/v8/v8-5.2.258/out/s390x.release/obj.target/v8_libbase/src/base/once.o]
Error 70</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>