<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 - [flang] check-flang fails after merge in mono-repo."
   href="https://bugs.llvm.org/show_bug.cgi?id=45487">45487</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[flang] check-flang fails after merge in mono-repo.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>flang
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </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>Fortran IR
          </td>
        </tr>

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

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

        <tr>
          <th>CC</th>
          <td>David.Truby@arm.com, llvm-bugs@lists.llvm.org, sscalpone@nvidia.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I have built flang in-tree just after the merge in mono-repo.

I can run build and install targets successfully,however for 'ninja
check-flang' the following test fails.
Fir/fir-ops.fir


Currently this
patch(<a href="https://github.com/llvm/llvm-project/commit/89c7d9633b3f2255ed711522f29751566a6f5d70">https://github.com/llvm/llvm-project/commit/89c7d9633b3f2255ed711522f29751566a6f5d70</a>)
adds the test as XFAIL, as a temporary fix.
This issue is created to track the bug.


::Commands to build::
env CC=x86_64-pc-linux-gnu-gcc  CXX=x86_64-pc-linux-gnu-g++  
cmake -GNinja  ../llvm-project/llvm/ \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_TARGETS_TO_BUILD=X86 \
-DLLVM_ENABLE_PROJECTS="flang;mlir" \
-DCMAKE_CXX_STANDARD=17  \
-DCMAKE_INSTALL_PREFIX=../install


$ninja check-flang

[0/1] Running the Flang regression tests
FAIL: Flang :: Fir/fir-ops.fir (5 of 349)
******************** TEST 'Flang :: Fir/fir-ops.fir' FAILED
********************
Script:
--
: 'RUN: at line 3';   tco -emit-fir
/home/user/in-tree/llvm-project/flang/test/Fir/fir-ops.fir | tco -emit-fir |
/home/user/in-tree/build/bin/FileCheck
/home/user/tools/in-tree/llvm-project/flang/test/Fir/fir-ops.fir
--
Exit Code: 2

Command Output (stderr):
--
loc("<stdin>":188:1): error: redefinition of SSA value '%0'
Error can't load file -
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/user/in-tree/build/bin/FileCheck
/home/user/in-tree/llvm-project/flang/test/Fir/fir-ops.fir

--

********************
********************
Failing Tests (1):
  Flang :: Fir/fir-ops.fir


Testing Time: 1.76s
  Expected Passes    : 348
  Unexpected Failures:   1</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>