<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 --- - Only build tsan for supported archs"
   href="https://llvm.org/bugs/show_bug.cgi?id=25885">25885</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Only build tsan for supported archs
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </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>compiler-rt
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>jeremyhu@apple.com
          </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>As reported at <a href="https://trac.macports.org/ticket/50080">https://trac.macports.org/ticket/50080</a>, with trunk r254705.

A user hit a build failure when compiling tsan because the build system is not
filtering out i386:

650    :info:build [ 35%] Building CXX object
projects/compiler-rt/lib/tsan/CMakeFiles/clang_rt.tsan_osx_dynamic.dir/rtl/tsan_flags.cc.o
651    :info:build cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_sea.us.rsync.macports.org_release_tarballs_ports_lang_llvm-3.8/clang-3.8/work/build/projects/compiler-rt/lib/tsan
&& /opt/local/bin/clang++-mp-3.7   -D_DEBUG -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Dclang_rt_tsan_osx_dynamic_EXPORTS
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_sea.us.rsync.macports.org_release_tarballs_ports_lang_llvm-3.8/clang-3.8/work/build/projects/compiler-rt/lib/tsan
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_sea.us.rsync.macports.org_release_tarballs_ports_lang_llvm-3.8/clang-3.8/work/trunk/projects/compiler-rt/lib/tsan
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_sea.us.rsync.macports.org_release_tarballs_ports_lang_llvm-3.8/clang-3.8/work/build/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_sea.us.rsync.macports.org_release_tarballs_ports_lang_llvm-3.8/clang-3.8/work/trunk/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_sea.us.rsync.macports.org_release_tarballs_ports_lang_llvm-3.8/clang-3.8/work/trunk/projects/compiler-rt/lib/tsan/..
 -pipe -Os -std=c++11 -arch x86_64 -arch i386 -stdlib=libc++  -fPIC
-fvisibility-inlines-hidden -Wall -std=c++11 -arch x86_64 -arch x86_64h   
-stdlib=libc++ -mmacosx-version-min=10.10 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
-fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables
-fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden
-fvisibility-inlines-hidden -fno-function-sections -fno-lto -O3
-gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions
-Wno-non-virtual-dtor -fPIE -fno-rtti -msse3 -Wframe-larger-than=512
-Wglobal-constructors -o
CMakeFiles/clang_rt.tsan_osx_dynamic.dir/rtl/tsan_flags.cc.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_sea.us.rsync.macports.org_release_tarballs_ports_lang_llvm-3.8/clang-3.8/work/trunk/projects/compiler-rt/lib/tsan/rtl/tsan_flags.cc
652    :info:build In file included from
/opt/local/var/macports/build/_opt_local_var_macports_sources_sea.us.rsync.macports.org_release_tarballs_ports_lang_llvm-3.8/clang-3.8/work/trunk/projects/compiler-rt/lib/tsan/rtl/tsan_flags.cc:18:
653    :info:build In file included from
/opt/local/var/macports/build/_opt_local_var_macports_sources_sea.us.rsync.macports.org_release_tarballs_ports_lang_llvm-3.8/clang-3.8/work/trunk/projects/compiler-rt/lib/tsan/rtl/tsan_rtl.h:44:
654    :info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_sea.us.rsync.macports.org_release_tarballs_ports_lang_llvm-3.8/clang-3.8/work/trunk/projects/compiler-rt/lib/tsan/rtl/tsan_platform.h:19:3:
error: "Only 64-bit is supported"
655    :info:build # error "Only 64-bit is supported"
656    :info:build   ^</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>