<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - compiler-rt cannot be compiled with llvm on arch linux: realpath redefinition"
   href="https://bugs.llvm.org/show_bug.cgi?id=47163">47163</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>compiler-rt cannot be compiled with llvm on arch linux: realpath redefinition
          </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>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>release blocker
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>tsan
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>soloturn@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>am trying to create a swift-lang package for arch linux, with a continuous
build here: <a href="https://github.com/soloturn/swift-aur/actions">https://github.com/soloturn/swift-aur/actions</a> 

funny is that on arch linux which first has newest packages, and second, dev
packages do not exist, there is just one package including the developer
version in many cases.

compiler-rt can be built with g++, but using clang++ fails

$ export CC=clang
$ export CC=clang
$ makepkg -s

and it really gives the same error when compiling swift.

/usr/bin/clang++  -I../lib/tsan/dd/../.. -D_FORTIFY_SOURCE=2 -march=x86-64
-mtune=generic -O2 -pipe -fno-plt -Wall -std=c++14 -Wno-unused-parameter -O3
-DNDEBUG  -m64 -fno-lto -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer
-funwind-tables -fno-stack-protector -fno-sanitize=safe-stack
-fvisibility=hidden -fno-lto -O3 -gline-tables-only -Wno-gnu
-Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fno-rtti -MD
-MT lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_interceptors.cpp.o -MF
lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_interceptors.cpp.o.d -o
lib/tsan/dd/CMakeFiles/clang_rt.dd-x86_64.dir/dd_interceptors.cpp.o -c
../lib/tsan/dd/dd_interceptors.cpp
../lib/tsan/dd/dd_interceptors.cpp:225:1: warning: attribute declaration must
precede definition [-Wignored-attributes]

__NTH (realpath (const char *__restrict __name, char *__restrict __resolved))
       ^
../lib/tsan/dd/dd_interceptors.cpp:225:20: error: redefinition of 'realpath'


see here the original bug report towards swift:
<a href="https://bugs.swift.org/browse/SR-13082">https://bugs.swift.org/browse/SR-13082</a></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>