Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
636 Discussions

icpx: error: clang frontend command failed with exit code 139 (use -v to see invocation)

ISTerreSI
Beginner
968 Views

Hello,

I encounter issues while trying to compile a soft (gdal) with IntelOneAPI 2024 installed on a Debian12 system : 

- configuration is OK and is done through

# cmake .. -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ...

- but compilation fails :

=========================================================================

#  cmake --build . -j8

[...]

[ 92%] Built target gcore_mdreader
[ 92%] Built target ogrsf_generic
[ 92%] Building CXX object gcore/CMakeFiles/gcore.dir/overview.cpp.o
PLEASE append the compiler options "-save-temps -v", rebuild the application to to get the full command which is failing and submit a bug report to https://software.intel.com/en-us/support/priority-support which includes the failing command, input files for the command and the crash backtrace (if any).
Stack dump:
0. Program arguments: /opt/intel/oneapi/compiler/2024.0/bin/compiler/clang++ @/tmp/icpx0416552784midyoE/icpxarg2Qr6FF


1. <eof> parser at end of file
2. Optimizer
#0 0x0000558095c1a773 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x5144773)
#1 0x0000558095c18c60 llvm::sys::RunSignalHandlers() (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x5142c60)
#2 0x0000558095c19bef llvm::sys::CleanupOnSignal(unsigned long) (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x5143bef)
#3 0x0000558095baee65 (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) CrashRecoveryContext.cpp:0:0
#4 0x0000558095baf0a9 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#5 0x00007fbef7381050 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x3c050)
#6 0x000055809604a4a3 (anonymous namespace)::RerollRewriterBase::updateChainSRTemps(llvm::loopopt::SafeRedInfo const*) HIRLoopReroll.cpp:0:0
#7 0x000055809604a461 (anonymous namespace)::RerollRewriterBase::updateChainSRs() HIRLoopReroll.cpp:0:0
#8 0x000055809604a257 (anonymous namespace)::FastRerollRewriter::reroll() HIRLoopReroll.cpp:0:0
#9 0x0000558096044b7b (anonymous namespace)::rewriteLoopBody(unsigned int, llvm::SmallVector<llvm::loopopt::reroll::SeedInfo, 4u>&, llvm::loopopt::HIRSafeReductionAnalysis&, std::map<llvm::loopopt::HLInst const*, (anonymous namespace)::SelfSRSeedsTy, std::less<llvm::loopopt::HLInst const*>, std::allocator<std::pair<llvm::loopopt::HLInst const* const, (anonymous namespace)::SelfSRSeedsTy>>> const&, llvm::DenseMap<llvm::SCEV const*, llvm::loopopt::DDRef const*, llvm::DenseMapInfo<llvm::SCEV const*, void>, llvm::detail::DenseMapPair<llvm::SCEV const*, llvm::loopopt::DDRef const*>> const&) HIRLoopReroll.cpp:0:0
#10 0x0000558096043b3b (anonymous namespace)::doLoopReroll(llvm::loopopt::HIRFramework&, llvm::loopopt::HIRDDAnalysis&, llvm::loopopt::HIRLoopStatistics&, llvm::loopopt::HIRSafeReductionAnalysis&) HIRLoopReroll.cpp:0:0
#11 0x0000558096042955 llvm::loopopt::HIRLoopRerollPass::runImpl(llvm::Function&, llvm::AnalysisManager<llvm::Function>&, llvm::loopopt::HIRFramework&) (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x556c955)
#12 0x0000558096fa65a5 llvm::detail::PassModel<llvm::Function, llvm::loopopt::HIRLoopRerollPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) PassBuilder.cpp:0:0
#13 0x0000558095769723 llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x4c93723)
#14 0x0000558094cd16fd llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) NVPTXTargetMachine.cpp:0:0
#15 0x00005580957700b2 llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x4c9a0b2)
#16 0x0000558094cd148d llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) NVPTXTargetMachine.cpp:0:0
#17 0x0000558095768723 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x4c92723)

#18 0x0000558096653c16 (anonymous namespace)::EmitAssemblyHelper::RunOptimizationPipeline(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>&, std::unique_ptr<llvm::ToolOutputFile, std::default_delete<llvm::ToolOutputFile>>&) BackendUtil.cpp:0:0
#19 0x000055809664f20b clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>) (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x5b7920b)
#20 0x00005580969f75a3 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) CodeGenAction.cpp:0:0
#21 0x0000558097b5426b clang::ParseAST(clang::Sema&, bool, bool) (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x707e26b)
#22 0x00005580969f5fe8 clang::CodeGenAction::ExecuteAction() (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x5f1ffe8)
#23 0x00005580969677ba clang::FrontendAction::Execute() (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x5e917ba)
#24 0x00005580968f6112 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x5e20112)
#25 0x00005580969f297f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x5f1c97f)
#26 0x0000558094992431 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x3ebc431)
#27 0x000055809498e753 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#28 0x00005580967e4459 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const::$_0>(long) Job.cpp:0:0
#29 0x0000558095baedfe llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x50d8dfe)
#30 0x00005580967e3539 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x5d0d539)
#31 0x00005580967858f0 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x5caf8f0)
#32 0x0000558096785d62 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x5cafd62)
#33 0x00005580967a932c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x5cd332c)
#34 0x000055809498ca05 clang_main(int, char**, llvm::ToolContext const&) (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x3eb6a05)
#35 0x000055809499bdde main (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x3ec5dde)
#36 0x00007fbef736c24a __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
#37 0x00007fbef736c305 call_init ./csu/../csu/libc-start.c:128:20
#38 0x00007fbef736c305 __libc_start_main ./csu/../csu/libc-start.c:347:5
#39 0x000055809498b5a9 _start (/opt/intel/oneapi/compiler/2024.0/bin/compiler/clang+++0x3eb55a9)
icpx: error: clang frontend command failed with exit code 139 (use -v to see invocation)
Intel(R) oneAPI DPC++/C++ Compiler 2024.0.2 (2024.0.2.20231213)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2024.0/bin/compiler
Configuration file: /opt/intel/oneapi/compiler/2024.0/bin/compiler/../icpx.cfg
icpx: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
icpx: note: diagnostic msg: /tmp/icpx-30178666bc/overview-3eb553.cpp
icpx: note: diagnostic msg: /tmp/icpx-30178666bc/overview-3eb553.sh
icpx: note: diagnostic msg:

********************
gmake[2]: *** [gcore/CMakeFiles/gcore.dir/build.make:608: gcore/CMakeFiles/gcore.dir/overview.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:9638: gcore/CMakeFiles/gcore.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

=========================================================================

 

Would you please help me to find what's wrong ?

Thanks in advance for your help.

Yours,

-- 

JNB

 

0 Kudos
2 Replies
Alex_Y_Intel
Moderator
625 Views

It'll be more helpful if you can please supply a reproducer and exact reproducing steps to demonstrate your issue. 

0 Kudos
ISTerreSI
Beginner
152 Views

Hello Alex,

- thanks to get into consideration that issue

- I try to compile and install gdal https://gdal.org and here I try with the gdal-3.9.0 version

- here are the steps :

. wget https://github.com/OSGeo/gdal/releases/download/v3.9.0/gdal-3.9.0.tar.gz
. tar -xvzf gdal-3.9.0.tar.gz
. cd gdal-3.9.0/

. module load intel-devel/2024.1

. mkdir build
. cd build

. cmake .. -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DCMAKE_INSTALL_PREFIX=/soft/x86_64/intel_2024.1/gdal_3.9.0 -DBUILD_PYTHON_BINDINGS:BOOL=ON -DBUILD_CSHARP_BINDINGS:BOOL=OFF -DBUILD_JAVA_BINDINGS:BOOL=OFF

. cmake --build . -j8

 

the last compilation fails and I get 

==================================================================================================

[ 91%] Built target gcore_mdreader
[ 94%] Built target gcore
[ 95%] Built target utils_common
PLEASE append the compiler options "-save-temps -v", rebuild the application to get the full command which is failing and submit a bug report to https://software.intel.com/en-us/support/priority-support which includes the failing command, input files for the command and the crash backtrace (if any).
Stack dump:
0. Program arguments: /opt/intel/oneapi/compiler/2024.1/bin/compiler/clang++ @/tmp/icpx1382475550ORqKNC/icpxargEIKDLU
1. <eof> parser at end of file
2. /tmp/gdal-3.9.0/frmts/openjpeg/../opjlike/jp2opjlikedataset.cpp:1300:46: instantiating function definition 'JP2OPJLikeDataset<OPJCodecWrapper, JP2OPJDatasetBase>::Open'
3. /tmp/gdal-3.9.0/frmts/openjpeg/../opjlike/jp2opjlikedataset.cpp:791:33: instantiating function definition 'JP2OPJLikeDataset<OPJCodecWrapper, JP2OPJDatasetBase>::JP2OPJLikeDataset'
4. /tmp/gdal-3.9.0/frmts/openjpeg/../opjlike/jp2opjlikedataset.cpp:1211:40: instantiating function definition 'JP2OPJLikeDataset<OPJCodecWrapper, JP2OPJDatasetBase>::SetMetadataItem'
#0 0x000055b48cba1fd3 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x5063fd3)
#1 0x000055b48cba02c0 llvm::sys::RunSignalHandlers() (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x50622c0)
#2 0x000055b48cb2ba35 (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) CrashRecoveryContext.cpp:0:0
#3 0x000055b48cb2bc49 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#4 0x00007f3d0c185050 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x3c050)
#5 0x000055b48cb5e446 llvm::StringRef::find_last_of(llvm::StringRef, unsigned long) const (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x5020446)
#6 0x000055b48f5d8967 clang::ASTContext::getRawCommentForDeclNoCacheImpl(clang::Decl const*, clang::SourceLocation, std::__1::map<unsigned int, clang::RawComment*, std::__1::less<unsigned int>, std::__1::allocator<std::__1::pair<unsigned int const, clang::RawComment*>>> const&) const (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x7a9a967)
#7 0x000055b48f5d9511 clang::ASTContext::attachCommentsToJustParsedDecls(llvm::ArrayRef<clang::Decl*>, clang::Preprocessor const*) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x7a9b511)
#8 0x000055b48ee27d59 clang::Sema::ActOnStartOfFunctionDef(clang::Scope*, clang::Decl*, clang::Sema::SkipBodyInfo*, clang::Sema::FnBodyKind) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x72e9d59)
#9 0x000055b48f47d8ed clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x793f8ed)
#10 0x000055b48f480605 clang::Sema::PerformPendingInstantiations(bool) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x7942605)
#11 0x000055b48f47db8c clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x793fb8c)
#12 0x000055b48f480605 clang::Sema::PerformPendingInstantiations(bool) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x7942605)
#13 0x000055b48f47db8c clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x793fb8c)
#14 0x000055b48f480605 clang::Sema::PerformPendingInstantiations(bool) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x7942605)
#15 0x000055b48ecbce94 clang::Sema::ActOnEndOfTranslationUnitFragment(clang::Sema::TUFragmentKind) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x717ee94)
#16 0x000055b48ecbd36b clang::Sema::ActOnEndOfTranslationUnit() (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x717f36b)
#17 0x000055b48ebb431c clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x707631c)
#18 0x000055b48ebafa1e clang::ParseAST(clang::Sema&, bool, bool) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x7071a1e)
#19 0x000055b48d5631a8 clang::CodeGenAction::ExecuteAction() (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x5a251a8)
#20 0x000055b48d8796fa clang::FrontendAction::Execute() (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x5d3b6fa)
#21 0x000055b48d7ffa69 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x5cc1a69)
#22 0x000055b48d904b8e clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x5dc6b8e)
#23 0x000055b48b87c181 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x3d3e181)
#24 0x000055b48b879085 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#25 0x000055b48d6e4ec9 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__1::optional<llvm::StringRef>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, bool*) const::$_0>(long) Job.cpp:0:0
#26 0x000055b48cb2b9ce llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x4fed9ce)
#27 0x000055b48d6e40ea clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__1::optional<llvm::StringRef>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, bool*) const (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x5ba60ea)
#28 0x000055b48d690989 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x5b52989)
#29 0x000055b48d691ad4 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&, bool) const (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x5b53ad4)
#30 0x000055b48d6b50bc clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x5b770bc)
#31 0x000055b48b87764b clang_main(int, char**, llvm::ToolContext const&) (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x3d3964b)
#32 0x000055b48b88535e main (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x3d4735e)
#33 0x00007f3d0c17024a __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
#34 0x00007f3d0c170305 call_init ./csu/../csu/libc-start.c:128:20
#35 0x00007f3d0c170305 __libc_start_main ./csu/../csu/libc-start.c:347:5
#36 0x000055b48b8763a9 _start (/opt/intel/oneapi/compiler/2024.1/bin/compiler/clang+++0x3d383a9)
icpx: error: clang frontend command failed with exit code 139 (use -v to see invocation)
Intel(R) oneAPI DPC++/C++ Compiler 2024.1.2 (2024.1.2.20240508)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2024.1/bin/compiler
Configuration file: /opt/intel/oneapi/compiler/2024.1/bin/compiler/../icpx.cfg
icpx: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
icpx: note: diagnostic msg: /tmp/icpx-d51dada9df/openjpegdataset-f9406e.cpp
icpx: note: diagnostic msg: /tmp/icpx-d51dada9df/openjpegdataset-f9406e.sh
icpx: note: diagnostic msg:

********************
gmake[2]: *** [frmts/openjpeg/CMakeFiles/gdal_JP2OpenJPEG.dir/build.make:76: frmts/openjpeg/CMakeFiles/gdal_JP2OpenJPEG.dir/openjpegdataset.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:7670: frmts/openjpeg/CMakeFiles/gdal_JP2OpenJPEG.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

====================================================================================================

 

Thanks again for your help and clues.

Yours,

-- 

JNB

0 Kudos
Reply