You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMakeFiles/sycl.dir/source/detail/device_info.cpp.o: In function cl::sycl::detail::get_native_vector_width(unsigned long)': device_info.cpp:(.text._ZN2cl4sycl6detail23get_native_vector_widthEm+0x3): undefined reference to __cpu_model'
I can fix this by manually adding -lgcc to the end of the c++ linker line, but that probably means something has gone wrong elsewhere, just mentioning here in case anyone else hits it.
Hi Dave, thanks for reporting this issue. We have seen the sample problem with Ubuntu and implemented a workaround in CMake files here: https://github.com/intel/llvm/blob/sycl/sycl/CMakeLists.txt#L102
I think we should look at this problem more carefully and implement a more robust solution.
Activity
bader commentedon Jan 29, 2019
Hi Dave, thanks for reporting this issue. We have seen the sample problem with Ubuntu and implemented a workaround in CMake files here: https://github.com/intel/llvm/blob/sycl/sycl/CMakeLists.txt#L102
I think we should look at this problem more carefully and implement a more robust solution.
kusma commentedon Jan 29, 2019
I'm seeing the same problem as well on Fedora 29 + gcc 8.2.1.
keryell commentedon Jan 30, 2019
It works out of the box on Ubuntu 18.10 & g++ 8.2.0 at least...
airlied commentedon Feb 1, 2019
There's probably no harm in expanding the workaround to always just link -lgcc on gcc.
Rollback of rL355585.
[clang-format] Do not emit replacements while regrouping if Cpp inclu…
Remove a useless assertion in clang-check.
Revert rL357915 from cfe/trunk: Remove a useless assertion in clang-c…
Remove a useless assertion in clang-check.
[PowerPC][NFC]Remove sms-simple.ll test temporarily.
Revert r370661 "[llvm-nm] - Add a test case for case when we dump a s…
Revert "[AArch64][DebugInfo] Do not recompute CalleeSavedStackSize"
[ADR] ArrayRefTest: disable SizeTSizedOperations test - it's UB.
84 remaining items
[lldb] Fix stale Symbol pointer crash in statusline after 'target sym…
Revert "[llvm-profgen] Support [buildid:]0xaddr format in perfscript …
[clang][bytecode] Don't evaluate bound member function expressions in…
[lldb] Add nullptr check in GetBroadcaster (#201769)
[KnownBits] Fix add() SelfAdd assertion for bitwidths >= 512 (#202769)
Revert "[lldb] Move common functionality out of Itanium ABI runtime (…
[Clang] Fix assertion failure when classifying a dependent call to a …
[WebAssembly][TTI] Avoid crash when costing scalable vector shifts (#…
[WebAssembly] Add v8f16 select instruction patterns (#213280)
[lldb] Fix `shared_ptr<Section>` leak (#218794)
[SYCL][Unittests] Don't pass addresses of local variables as UR handl…
[SYCL] Fix leak of the UR memory object behind `get_native()` on an i…
[lldb] Bound Mach-O symtab allocation to the file size (#222955)
[compiler-rt] Use integers for __gnu_h2f_ieee and __gnu_f2h_ieee (#22…
Fix SystemZ TableGen crashing when GlobalISel is enabled (#228227)