-
Notifications
You must be signed in to change notification settings - Fork 795
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
On Fedora 28 + gcc 8.2.1
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.
jeffhammond and AlexeySachkov
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Milestone
Relationships
Development
Select code repository
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.
82 remaining items