pocl icon indicating copy to clipboard operation
pocl copied to clipboard

Can't build on ubuntu 18.04

Open iocmet opened this issue 2 years ago • 1 comments

LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it! lib/kernel/host/CMakeFiles/kernel_host_pentium2.dir/build.make:273: recipe for target 'lib/kernel/host/kernel-x86_64-pc-linux-gnu-pentium2.bc' failed make[2]: *** [lib/kernel/host/kernel-x86_64-pc-linux-gnu-pentium2.bc] Error 1 CMakeFiles/Makefile2:853: recipe for target 'lib/kernel/host/CMakeFiles/kernel_host_pentium2.dir/all' failed make[1]: *** [lib/kernel/host/CMakeFiles/kernel_host_pentium2.dir/all] Error 2 Makefile:165: recipe for target 'all' failed make: *** [all] Error 2

# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 1 On-line CPU(s) list: 0 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 6 Model name: QEMU Virtual CPU version 2.5+ Stepping: 3 CPU MHz: 3696.000 BogoMIPS: 7392.00 Hypervisor vendor: KVM Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 4096K L3 cache: 16384K NUMA node0 CPU(s): 0 Flags: fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl xtopology cpuid tsc_known_freq pni cx16 x2apic hypervisor lahf_lm cpuid_fault pti

iocmet avatar Jun 25 '23 00:06 iocmet

I'm guessing this has more to do with QEMU rather then Ubuntu 18.04. Hypervisors tend to mess with the CPUID flags, and both PoCL & LLVM use these to detect CPU features. You could try to force PoCL use a particular CPU model with -DLLC_HOST_CPU cmake option.

franz avatar Jul 10 '23 11:07 franz