Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
7747 Discussions

Internal error building clang compiler

FelixT1
Beginner
288 Views

The Intel C++ compiler throws an internal error when trying to build clang 15:

llvm-project/third-party/benchmark/src/perf_counters.cc(52): internal error: assertion failed: process_fill_in: specified fill-in not found (error.c, line 3340 in process_fill_in)

Reproducer:

$ git clone --depth=1 --branch llvmorg-15.0.0 https://github.com/llvm/llvm-project.git
$ mkdir build
$ cd build
$ cmake -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" -D CMAKE_C_COMPILER=icc -D CMAKE_CXX_COMPILER=icpc ../llvm-project/llvm
$ make

System Information:

$ icpc -V
Intel(R) C++ Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.6.0 Build 20220226_000000
Copyright (C) 1985-2022 Intel Corporation. All rights reserved.

 Tested on Rocky Linux 8.7 (Linux Kernel 4.18) and CentOS 7.9 (Linux Kernel 3.10).

Labels (2)
0 Kudos
4 Replies
SeshaP_Intel
Moderator
212 Views

Hi,

 

Thank you for posting in Intel Communities.

We have tried with icx(C),icpx(CXX) compiler while building and we did not face any issues. Could you please try with the below commands and let us know the results.

git clone --depth=1 --branch llvmorg-15.0.0 https://github.com/llvm/llvm-project.git
mkdir build
cd build
cmake -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" -D CMAKE_C_COMPILER=icx -D CMAKE_CXX_COMPILER=icpx ../llvm-project/llvm
make

 

Thanks and Regards,

Pendyala Sesha Srinivas

 

FelixT1
Beginner
195 Views

I am not using the oneAPI compiler icpx but the legacy version icpc. I haven't tried icx/icpx yet but will do that.

SeshaP_Intel
Moderator
151 Views

Hi,


Have you tried with icx(C),icpx(CXX) compiler? Please let us know if you face any issues.

If you do not see any issue with icx/icpx, please confirm whether we can close this thread from our end.


Thanks and Regards,

Pendyala Sesha Srinivas


SeshaP_Intel
Moderator
98 Views

Hi,


We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks and Regards,

Pendyala Sesha Srinivas


Reply