[llvm-bugs] [Bug 43327] New: Run the testsuite

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 16 06:08:20 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43327

            Bug ID: 43327
           Summary: Run the testsuite
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: fkladdu at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

Created attachment 22510
  --> https://bugs.llvm.org/attachment.cgi?id=22510&action=edit
Bug found log.

1> I have build clang tool with those steps.

2> Got face an issue when i Run make check-clang


step1:  git clone --recursive https://github.com/riscv/riscv-gnu-toolchain

step2:  mkdir Exe-linux Build    
        cd ${PWD}/Build &&  ${PWD}/riscv-gnu-toolchain/configure
--prefix=$(INSTALL_DIR) --enable-multilib && make linux -j`nproc`>
make_linux.log

step3:  cd $(PWD)/llvm-project && mkdir build && cd build && \
        cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" \
        -DBUILD_SHARED_LIBS=True -DLLVM_USE_SPLIT_DWARF=True \
        -DCMAKE_INSTALL_PREFIX="$(INSTALL_DIR)" \
        -DLLVM_OPTIMIZED_TABLEGEN=True -DLLVM_BUILD_TESTS=False \
        -DDEFAULT_SYSROOT="$(INSTALL_DIR)/sysroot" \
        -DLLVM_DEFAULT_TARGET_TRIPLE="riscv64-unknown-linux-gnu" \
        -DLLVM_TARGETS_TO_BUILD="" -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="RISCV"
\
        ../llvm && make -j`nproc` && make install && cd ../../

step4 : $ (PWD)/llvm-project/build/make

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 (https://github.com/llvm/llvm-project.git
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
https://bugs.llvm.org/ 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


 * Can anyone help me to sort this issue.
Thanks,
ghalib khan.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190916/b486ccdd/attachment-0001.html>


More information about the llvm-bugs mailing list