<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 - Run the testsuite of clang, facing an error in backend: RISC-V backend."
   href="https://bugs.llvm.org/show_bug.cgi?id=43328">43328</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Run the testsuite of clang, facing an error in backend: RISC-V backend.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </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>Backend: RISC-V
          </td>
        </tr>

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

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

        <tr>
          <th>CC</th>
          <td>asb@lowrisc.org, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>step's:
--------
1. mkdir venv

2. virtualenv venv

3. sudo -H pip3 install pipenv

4. pip3 install svn+<a href="http://llvm.org/svn/llvm-project/llvm/trunk/utils/lit">http://llvm.org/svn/llvm-project/llvm/trunk/utils/lit</a>

5. sudo pip3 install svn+<a href="http://llvm.org/svn/llvm-project/llvm/trunk/utils/lit">http://llvm.org/svn/llvm-project/llvm/trunk/utils/lit</a>

6. git clone <a href="https://github.com/llvm/llvm-test-suite.git">https://github.com/llvm/llvm-test-suite.git</a> test-suite

7. mkdir test-suite-build

8. cd test-suite-build/

9. cmake
-DCMAKE_C_COMPILER=/home/khan/work-space/Tools/llvm/Baisc-llvm/Exe-linux/bin/clang
-C../test-suite/cmake/caches/O3.cmake ../test-suite 
 1838  make

Here Got an Error,

output: Got an Error as follows,
--------------------------------

fatal error: error in backend: RISC-V backend can't currently handle functions
that need stack realignment and have variable sized objects
clang-10: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 10.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
ce74c3b19f5b60d427977f21e506c26a3f40bd7f)
Target: riscv64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/khan/work-space/Tools/llvm/Baisc-llvm/Exe-linux/bin
clang-10: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash backtrace, preprocessed source,
and associated run script.
clang-10: note: diagnostic msg: 
********************

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

********************
MultiSource/UnitTests/C++11/frame_layout/CMakeFiles/frame_layout.dir/build.make:86:
recipe for target
'MultiSource/UnitTests/C++11/frame_layout/CMakeFiles/frame_layout.dir/frame_layout.cpp.o'
failed
make[2]: ***
[MultiSource/UnitTests/C++11/frame_layout/CMakeFiles/frame_layout.dir/frame_layout.cpp.o]
Error 70
CMakeFiles/Makefile2:14860: recipe for target
'MultiSource/UnitTests/C++11/frame_layout/CMakeFiles/frame_layout.dir/all'
failed
make[1]: ***
[MultiSource/UnitTests/C++11/frame_layout/CMakeFiles/frame_layout.dir/all]
Error 2
Makefile:127: recipe for target 'all' failed


 * I tried to attach mentioned files but they are not present.
 * Can anyone help me to sort this issue.
Thanks,
ghalib khan.</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>