[cfe-dev] LLVM and LIT Issue

Qiu Chaofan via cfe-dev cfe-dev at lists.llvm.org
Mon Mar 25 22:59:12 PDT 2019


Hi,

I'm not sure whether your problem have been solved, but can you try
using gcc instead of clang to build llvm & clang in your computer?
Maybe your local clang toolchain isn't complete.

2019-03-13 18:04 GMT+08:00, Srinivas Kakarla1 via cfe-dev
<cfe-dev at lists.llvm.org>:
> Hi ,
>
> I made some progress ,But i encountered the below error(  llvm-size not
> found).
>
> cmake -DCMAKE_C_COMPILER=/usr/bin/clang
> -C../test-suite/cmake/caches/O3.cmake         ../test-suite
> loading initial cache file ../test-suite/cmake/caches/O3.cmake
> CMake Error at CMakeLists.txt:92 (message):
>   llvm-size not found.
>
>   Make sure it is in your path or set TEST_SUITE_COLLECT_CODE_SIZE to OFF
>
>
> -- Configuring incomplete, errors occurred!
> See also "/test-suite-build/CMakeFiles/CMakeOutput.log".
> See also "/test-suite-build/CMakeFiles/CMakeError.log".
>
> Can you please error and logs and let me the issue.
>
>
> Regards,
> Srinivas
>
> -----Srinivas Kakarla1/HYD/TCS wrote: -----
> To: cfe-dev at lists.llvm.org
> From: Srinivas Kakarla1/HYD/TCS
> Date: 03/13/2019 12:19PM
> Subject: LLVM  and LIT Issue
>
> Hi ,
>
> Here is the error info and log.
> Please check and provide the solution.
>
> cd test-suite-build/$ cmake -DCMAKE_C_COMPILER=/usr/bin/clang
> -C../test-suite/cmake/caches/O3.cmake         ../test-suite
> loading initial cache file ../test-suite/cmake/caches/O3.cmake
> CMake Error at CMakeLists.txt:50 (message):
>   In-source builds are not allowed.
>
>   CMake would overwrite the makefiles distributed with LLVM.
>
>   Please create a directory and run cmake from there, passing the path
>
>   to this source directory as the last argument.
>
>   This process created the file `CMakeCache.txt' and the directory
>   `CMakeFiles'.
>
>   Please delete them.
>
>
> -- Configuring incomplete, errors occurred!
> /test-suite/CMakeFiles/CMakeOutput.log".
>
> $ whereis clangclang: /usr/bin/clang /usr/lib/clang /usr/include/clang
> /usr/share/clang /opt/rocm/opencl/bin/x86_64/clang
>
> $ whereis g++g++: /usr/bin/g++ /usr/share/man/man1/g++.1.gz
>
> Regards,
> Srinivas
>
>
> -----"cfe-dev" <cfe-dev-bounces at lists.llvm.org> wrote: -----
> To: cfe-dev at lists.llvm.org
> From: Srinivas Kakarla1 via cfe-dev
> Sent by: "cfe-dev"
> Date: 03/13/2019 11:49AM
> Subject: [cfe-dev] LLVM  and LIT Issue
>
> "External email. Open with Caution"
> Hi ,
>
> I was trying to compile the CLANG LLVM and LIT setup.
>
> I am following the below steps.
>
> 1.https://llvm.org/docs/TestSuiteGuide.html // LIT Setup
> 2.https://clang.llvm.org/get_started.html // LLVM setup
>
>
> My system got hanged during LLVM compilation ( system configuration i5 8gb
> RAM,500 HDD).
> I tried in another system also same problem.
> Ubuntu also crashed after force reboot.I could able to send any logs and
> error .
>
> Can you help me to setup LLVM and LIT.
>
>
> Regards,
> Srinivas
> =====-----=====-----=====
>  Notice: The information contained in this e-mail
>  message and/or attachments to it may contain
>  confidential or privileged information. If you are
>  not the intended recipient, any dissemination, use,
>  review, distribution, printing or copying of the
>  information contained in this e-mail message
>  and/or attachments to it are strictly prohibited. If
>  you have received this communication in error,
>  please notify us by reply e-mail or telephone and
>  immediately and permanently delete the message
>  and any attachments. Thank you
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
> [attachment "CMakeOutput.log" removed by Srinivas Kakarla1/HYD/TCS]



More information about the cfe-dev mailing list