Closed mynamisarang closed 1 year ago
@Waqar144 I am still getting same errors with llvm7
steps till 'cmake ' work.
[root@lnxvisind02 build]# git reset --hard 1cb3d68
HEAD is now at 1cb3d68 Fix llvm-7 build
[root@lnxvisind02 codebrowser]# cd ^C
[root@lnxvisind02 codebrowser]# cd ..
[root@lnxvisind02 git]# cd codebrowser/
[root@lnxvisind02 codebrowser]# rm -rf CMakeCache.txt CMakeFiles/ Makefile cmake_install.cmake
[root@lnxvisind02 codebrowser]# rm -rf build/
[root@lnxvisind02 codebrowser]# mkdir build && cd build
[root@lnxvisind02 build]# cmake -DCMAKE_BUILD_TYPE=Release ..
-- The CXX compiler identification is GNU 4.8.5
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found LLVM 7.0.1 in /opt/rh/llvm-toolset-7.0/root/usr
-- Using LLVMConfig.cmake in: /opt/rh/llvm-toolset-7.0/root/usr/lib64/cmake/llvm
-- Found Clang in /opt/rh/llvm-toolset-7.0/root/usr
-- Configuring done
-- Generating done
-- Build files have been written to: /root/git/codebrowser/build
error while running 'make'
[root@lnxvisind02 build]# make
Scanning dependencies of target codebrowser_generator
[ 8%] Building CXX object generator/CMakeFiles/codebrowser_generator.dir/main.cpp.o
/root/git/codebrowser/generator/main.cpp:48:1: error: expected primary-expression before ‘namespace’
namespace cl = llvm::cl;
^
/root/git/codebrowser/generator/main.cpp:48:1: error: expected ‘}’ before ‘namespace’
/root/git/codebrowser/generator/main.cpp:48:1: error: expected ‘,’ or ‘;’ before ‘namespace’
/root/git/codebrowser/generator/main.cpp:50:1: error: ‘cl’ does not name a type
cl::opt<std::string> BuildPath(
^
/root/git/codebrowser/generator/main.cpp:56:1: error: ‘cl’ does not name a type
cl::list<std::string> SourcePaths(
^
/root/git/codebrowser/generator/main.cpp:61:1: error: ‘cl’ does not name a type
cl::opt<std::string> OutputPath(
^
/root/git/codebrowser/generator/main.cpp:67:1: error: ‘cl’ does not name a type
cl::list<std::string> ProjectPaths(
^
/root/git/codebrowser/generator/main.cpp:74:1: error: ‘cl’ does not name a type
cl::list<std::string> ExternalProjectPaths(
^
/root/git/codebrowser/generator/main.cpp:80:1: error: ‘cl’ does not name a type
cl::opt<std::string> DataPath(
^
/root/git/codebrowser/generator/main.cpp:86:1: error: ‘cl’ does not name a type
cl::opt<bool> ProcessAllSources(
^
/root/git/codebrowser/generator/main.cpp:90:1: error: ‘cl’ does not name a type
cl::extrahelp extra(
^
/root/git/codebrowser/generator/main.cpp: In function ‘int main(int, const char**)’:
/root/git/codebrowser/generator/main.cpp:337:35: error: ‘OutputPath’ was not declared in this scope
ProjectManager projectManager(OutputPath, DataPath);
^
/root/git/codebrowser/generator/main.cpp:337:47: error: ‘DataPath’ was not declared in this scope
ProjectManager projectManager(OutputPath, DataPath);
^
/root/git/codebrowser/generator/main.cpp:338:26: error: ‘ProjectPaths’ was not declared in this scope
for(std::string &s : ProjectPaths) {
^
/root/git/codebrowser/generator/main.cpp:351:26: error: ‘ExternalProjectPaths’ was not declared in this scope
for(std::string &s : ExternalProjectPaths) {
^
/root/git/codebrowser/generator/main.cpp:372:48: error: ‘BuildPath’ was not declared in this scope
if (!Compilations && llvm::sys::fs::exists(BuildPath)) {
^
/root/git/codebrowser/generator/main.cpp:400:43: error: ‘SourcePaths’ was not declared in this scope
llvm::ArrayRef<std::string> Sources = SourcePaths;
^
/root/git/codebrowser/generator/main.cpp:401:28: error: ‘ProcessAllSources’ was not declared in this scope
if (Sources.empty() && ProcessAllSources) {
^
/root/git/codebrowser/generator/main.cpp:430:13: error: ‘ProjectPaths’ was not declared in this scope
if (ProjectPaths.empty()) {
^
/root/git/codebrowser/generator/main.cpp:444:9: error: ‘ProjectPaths’ was not declared in this scope
if (ProjectPaths.empty() && !IsProcessingAllDirectory) {
^
make[2]: *** [generator/CMakeFiles/codebrowser_generator.dir/main.cpp.o] Error 1
make[1]: *** [generator/CMakeFiles/codebrowser_generator.dir/all] Error 2
make: *** [all] Error 2
Like I have asked a couple of times before:
check if you have a file named
embedded_includes.h
in the directory build/generator/. If it exists, please share the file.
Below is my 'embedded_includes.sh'. Looks incomplete.
[root@lnxvisind02 generator]# pwd
/root/git/codebrowser/build/generator
[root@lnxvisind02 generator]# cat embedded_includes.h
/****************************************************************************
* Copyright (C) 2012-2015 Woboq GmbH
* Olivier Goffart <contact at woboq.com>
* https://woboq.com/codebrowser.html
*
* This file is part of the Woboq Code Browser.
*
* Commercial License Usage:
* Licensees holding valid commercial licenses provided by Woboq may use
* this file in accordance with the terms contained in a written agreement
* between the licensee and Woboq.
* For further information see https://woboq.com/codebrowser.html
*
* Alternatively, this work may be used under a Creative Commons
* Attribution-NonCommercial-ShareAlike 3.0 (CC-BY-NC-SA 3.0) License.
* http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_US
* This license does not allow you to use the code browser to assist the
* development of your commercial software. If you intent to do so, consider
* purchasing a commercial licence.
****************************************************************************/
#pragma once
#include <utility>
#include <vector>
#include <string>
struct EmbeddedFile {
const char *filename;
const char *content;
size_t size;
template <int N>
constexpr EmbeddedFile(const char *filename, const char (&data)[N])
: filename(filename) , content(data), size(N-1) {}
constexpr EmbeddedFile () : filename(nullptr) , content(nullptr), size(0) {}
};
static constexpr EmbeddedFile EmbeddedFiles[] = {
That means its not able to find the clang built in headers.
Can you add some message("...")
statements in the generators/CMakeLists.txt (line 70 - 93) file and see what the values are there?
e.g before line 80
message("Builtin Headers found: ${BUILTINS_HEADERS})
After adding these message
statements, rerun cmake
in the build directory and it will print out these messages. Once it does, can you share the output?
added below lines in '/root/git/codebrowser/generator/CMakeLists.txt'
75 file(GLOB BUILTINS_HEADERS "${CLANG_BUILTIN_HEADERS_DIR}/*.h")
76 if(NOT BUILTINS_HEADERS)
77 message(FATAL_ERROR "Could not find any clang builtins headers in ${CLANG_BUILTIN_HEADERS_DIR}")
78 endif()
79 message("test message") <-------
80 foreach(BUILTIN_HEADER ${BUILTINS_HEADERS})
81 #filter files that are way to big
build complete.
[root@lnxvisind02 build]# cmake -DCMAKE_BUILD_TYPE=Release ..
-- Found LLVM 7.0.1 in /opt/rh/llvm-toolset-7.0/root/usr
-- Using LLVMConfig.cmake in: /opt/rh/llvm-toolset-7.0/root/usr/lib64/cmake/llvm
-- Found Clang in /opt/rh/llvm-toolset-7.0/root/usr
test message
-- Configuring done
-- Generating done
-- Build files have been written to: /root/git/codebrowser/build
[root@lnxvisind02 build]# cmake -DCMAKE_BUILD_TYPE=Release ..
-- Found LLVM 7.0.1 in /opt/rh/llvm-toolset-7.0/root/usr
-- Using LLVMConfig.cmake in: /opt/rh/llvm-toolset-7.0/root/usr/lib64/cmake/llvm
-- Found Clang in /opt/rh/llvm-toolset-7.0/root/usr
test message
-- Configuring done
-- Generating done
-- Build files have been written to: /root/git/codebrowser/build
make command fails
[root@lnxvisind02 build]# make
[ 8%] Building CXX object generator/CMakeFiles/codebrowser_generator.dir/main.cpp.o
/root/git/codebrowser/generator/main.cpp:48:1: error: expected primary-expression before ‘namespace’
namespace cl = llvm::cl;
^
/root/git/codebrowser/generator/main.cpp:48:1: error: expected ‘}’ before ‘namespace’
/root/git/codebrowser/generator/main.cpp:48:1: error: expected ‘,’ or ‘;’ before ‘namespace’
/root/git/codebrowser/generator/main.cpp:50:1: error: ‘cl’ does not name a type
cl::opt<std::string> BuildPath(
^
/root/git/codebrowser/generator/main.cpp:56:1: error: ‘cl’ does not name a type
cl::list<std::string> SourcePaths(
^
/root/git/codebrowser/generator/main.cpp:61:1: error: ‘cl’ does not name a type
cl::opt<std::string> OutputPath(
^
/root/git/codebrowser/generator/main.cpp:67:1: error: ‘cl’ does not name a type
cl::list<std::string> ProjectPaths(
^
/root/git/codebrowser/generator/main.cpp:74:1: error: ‘cl’ does not name a type
cl::list<std::string> ExternalProjectPaths(
^
/root/git/codebrowser/generator/main.cpp:80:1: error: ‘cl’ does not name a type
cl::opt<std::string> DataPath(
^
/root/git/codebrowser/generator/main.cpp:86:1: error: ‘cl’ does not name a type
cl::opt<bool> ProcessAllSources(
^
/root/git/codebrowser/generator/main.cpp:90:1: error: ‘cl’ does not name a type
cl::extrahelp extra(
^
/root/git/codebrowser/generator/main.cpp: In function ‘int main(int, const char**)’:
/root/git/codebrowser/generator/main.cpp:337:35: error: ‘OutputPath’ was not declared in this scope
ProjectManager projectManager(OutputPath, DataPath);
^
/root/git/codebrowser/generator/main.cpp:337:47: error: ‘DataPath’ was not declared in this scope
ProjectManager projectManager(OutputPath, DataPath);
^
/root/git/codebrowser/generator/main.cpp:338:26: error: ‘ProjectPaths’ was not declared in this scope
for(std::string &s : ProjectPaths) {
^
/root/git/codebrowser/generator/main.cpp:351:26: error: ‘ExternalProjectPaths’ was not declared in this scope
for(std::string &s : ExternalProjectPaths) {
^
/root/git/codebrowser/generator/main.cpp:372:48: error: ‘BuildPath’ was not declared in this scope
if (!Compilations && llvm::sys::fs::exists(BuildPath)) {
^
/root/git/codebrowser/generator/main.cpp:400:43: error: ‘SourcePaths’ was not declared in this scope
llvm::ArrayRef<std::string> Sources = SourcePaths;
^
/root/git/codebrowser/generator/main.cpp:401:28: error: ‘ProcessAllSources’ was not declared in this scope
if (Sources.empty() && ProcessAllSources) {
^
/root/git/codebrowser/generator/main.cpp:430:13: error: ‘ProjectPaths’ was not declared in this scope
if (ProjectPaths.empty()) {
^
/root/git/codebrowser/generator/main.cpp:444:9: error: ‘ProjectPaths’ was not declared in this scope
if (ProjectPaths.empty() && !IsProcessingAllDirectory) {
^
make[2]: *** [generator/CMakeFiles/codebrowser_generator.dir/main.cpp.o] Error 1
make[1]: *** [generator/CMakeFiles/codebrowser_generator.dir/all] Error 2
make: *** [all] Error 2
That is not helpful at all. Can you try to print out the value of the variables in that scope? Please re-read my comment above. I would also suggest doing some debugging on your own using message(..)
and see whats happening as that will likely resolve your issue much faster.
Make command will keep failing as long as the embedded includes file is not generated correctly.
I have printed variables at various locations inside '/root/git/codebrowser/generator/CMakeLists.txt'. Inserted message line at particular line no. specified. Values look correct and no variable is left blank. make still does not work and produces the same file as above.
[root@lnxvisind02 build]# cmake -DCMAKE_BUILD_TYPE=Release .. | grep -i "line 96" | wc -l
93
[root@lnxvisind02 build]# cmake -DCMAKE_BUILD_TYPE=Release ..
-- Found LLVM 7.0.1 in /opt/rh/llvm-toolset-7.0/root/usr
-- Using LLVMConfig.cmake in: /opt/rh/llvm-toolset-7.0/root/usr/lib64/cmake/llvm
-- Found Clang in /opt/rh/llvm-toolset-7.0/root/usr
-- line 40: printing vriable CMAKE_INSTALL_BINDIR bin
-- line 74: printing variables: LLVM_VERSION=7.0.1
-- line 77: printing variables: LLVM_LIBRARY_DIR=/opt/rh/llvm-toolset-7.0/root/usr/lib64 and CLANG_BUILTIN_HEADERS_DIR=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include and LLVM_VERSION=7.0.1
-- line 80: printing variables: BUILTIN_HEADER=
-- line 84: test message
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/__clang_cuda_builtin_vars.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1
[CMakeLists.txt](https://github.com/KDAB/codebrowser/files/10456343/CMakeLists.txt)
/include/__clang_cuda_cmath.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/__clang_cuda_complex_builtins.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/__clang_cuda_device_functions.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/__clang_cuda_intrinsics.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/__clang_cuda_libdevice_declares.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/__clang_cuda_math_forward_declares.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/__clang_cuda_runtime_wrapper.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/__stddef_max_align_t.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/__wmmintrin_aes.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/__wmmintrin_pclmul.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/adxintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/ammintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/arm64intr.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/arm_acle.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/arm_fp16.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/armintr.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/avx2intrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/avxintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/bmi2intrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/bmiintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/cetintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/cldemoteintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/clflushoptintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/clwbintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/clzerointrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/cpuid.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/emmintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/f16cintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/float.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/fma4intrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/fmaintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/fxsrintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/gfniintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/htmintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/htmxlintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/ia32intrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/immintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/intrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/inttypes.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/invpcidintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/iso646.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/limits.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/lwpintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/lzcntintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/mm3dnow.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/mm_malloc.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/mmintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/movdirintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/msa.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/mwaitxintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/nmmintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/omp.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/ompt.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/opencl-c.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/pconfigintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/pkuintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/pmmintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/popcntintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/prfchwintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/ptwriteintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/rdseedintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/rtmintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/s390intrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/sgxintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/shaintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/smmintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/stdalign.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/stdarg.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/stdatomic.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/stdbool.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/stddef.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/stdint.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/stdnoreturn.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/tbmintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/tgmath.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/tmmintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/unwind.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/vadefs.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/vaesintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/varargs.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/vpclmulqdqintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/waitpkgintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/wbnoinvdintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/wmmintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/x86intrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/xmmintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/xopintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/xsavecintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/xsaveintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/xsaveoptintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/xsavesintrin.h
-- line 96: printing variables: BUILTIN_HEADER=/opt/rh/llvm-toolset-7.0/root/usr/lib64/clang/7.0.1/include/xtestintrin.h
-- Configuring done
-- Generating done
-- Build files have been written to: /root/git/codebrowser/build
That looks good. Can you add a couple more debug lines under line 96:
message(STATUS "Appended To EMBEDDED_DATA: ${FN} --- ${BINARY_DATA}")
message(STATUS "EMBEDDED_DATA now: ${EMBEDDED_DATA}")
Just to see where exactly it goes wrong
Added the requested lines inside '/root/git/codebrowser/generator/CMakeLists.txt' and ran below. cmake -DCMAKE_BUILD_TYPE=Release .. | tee cmake.log
I will attach cmake.log
That all looks fine. Maybe the append fails due to some other reason. Weird...
But it is possible to create an embedded_includes.h file out of this manually. Just copy after the last EMBEDDED_DATA now:
till the end of file before --- Configuring Done
and paste it into embedded_includes.h and it should work.
I copied it for you and created the linked file. If you replace the existing file with this, build should work.
Not able to compile Woboq Code Browser. This is continuation to old issue. Still getting same errors with llvm7 even after applying patch