Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7729 Discussions

Strange error with Intel C++ Compiler

JohanR
Beginner
261 Views

I'm porting a C++ library from Visual Studio 2019 to the Intel C++ compiler.
The code works fine with VS but with the Intel compiler the build fails.

With the Intel C++ compiler version 2021.4.0 I get the following error message:

Rebuild started...
1>------ Rebuild All started: Project: JrBoostLib, Configuration: Release x64 ------
1>xilib: : error : Assertion failed (shared/driver/drvutils.c, line 312)
1>Done building project "JrBoostLib.vcxproj" -- FAILED.
2>------ Rebuild All started: Project: PythonModule, Configuration: Release x64 ------
2>xilink: : error : Assertion failed (shared/driver/drvutils.c, line 312)
2>Done building project "PythonModule.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 2 failed, 0 skipped ==========


With the Intel C++ compiler version 2021.3.0 I got the following error message:

Rebuild started...
1>------ Rebuild All started: Project: JrBoostLib, Configuration: Release x64 ------
1>JrBoostLib.vcxproj -> C:\Users\Rade\Documents\Data Analysis\Code\JrBoost Repo\Cpp\x64\Release\JrBoostLib.lib
2>------ Rebuild All started: Project: PythonModule, Configuration: Release x64 ------
2>LLVM ERROR: Associative COMDAT symbol '??0cast_error@pybind11@@QEAA@PEBD@Z' does not exist.
2>PLEASE submit a bug report to https://software.intel.com/en-us/support/priority-support and include the crash backtrace.
2>Stack dump:
2>0. Program arguments: C:\\PROGRA~2\\Intel\\oneAPI\\compiler\\20213~1.0\\windows\\bin\\Intel64\\..\\lld-link.exe @C:\\Users\\Rade\\AppData\\Local\\Temp\\324015arg7
2>1. Running pass 'Function Pass Manager' on module 'ld-temp.o'.
2>2. Running pass 'X86 Assembly Printer' on function ''
2> #0 0x00007ff78bb5aea6 (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x8aea6)
2> #1 0x00007ff78e1f8428 (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x2728428)
2> #2 0x00007ff78e1f14bc (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x27214bc)
2> #3 0x00007ff78bb58bb4 (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x88bb4)
2> #4 0x00007ff78bf73fd7 (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x4a3fd7)
2> #5 0x00007ff78bf741b4 (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x4a41b4)
2> #6 0x00007ff78bf9ba9c (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x4cba9c)
2> #7 0x00007ff78c3ff201 (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x92f201)
2> #8 0x00007ff78c400550 (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x930550)
2> #9 0x00007ff78bbe2c7e (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x112c7e)
2>#10 0x00007ff78bfa0c93 (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x4d0c93)
2>#11 0x00007ff78c177aae (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x6a7aae)
2>#12 0x00007ff78c17d483 (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x6ad483)
2>#13 0x00007ff78c178011 (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x6a8011)
2>#14 0x00007ff78c531bdc (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0xa61bdc)
2>#15 0x00007ff78c530d05 (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0xa60d05)
2>#16 0x00007ff78bc2898a (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x15898a)
2>#17 0x00007ff78bc27e86 (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x157e86)
2>#18 0x00007ff78bc7ce0f (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x1ace0f)
2>#19 0x00007ff78bbb0066 (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0xe0066)
2>#20 0x00007ff78bb0fefd (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x3fefd)
2>#21 0x00007ff78bb05f2b (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x35f2b)
2>#22 0x00007ff78bad195b (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x195b)
2>#23 0x00007ff78bad12ce (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x12ce)
2>#24 0x00007ff78e1e6b78 (C:\PROGRA~2\Intel\oneAPI\compiler\20213~1.0\windows\bin\Intel64\..\lld-link.exe+0x2716b78)
2>#25 0x00007ffab4907034 (C:\WINDOWS\System32\KERNEL32.DLL+0x17034)
2>#26 0x00007ffab4a42651 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x52651)
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Platforms\x64\PlatformToolsets\Intel C++ Compiler 2021\Toolset.targets(773,5): error MSB6006: "xilink.exe" exited with code -1073741795.
2>Done building project "PythonModule.vcxproj" -- FAILED.
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

0 Kudos
0 Replies
Reply