Configure problem with gcc-8 and OpenCL

Questions about Wine on Linux
Locked
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Configure problem with gcc-8 and OpenCL

Post by Cybermax »

GCC: gcc-8 8-20180424-0ubuntu1~14.04
CPU: Intel i7 2600K (SandyBridge)

Thought i would give gcc-8 a whirl, and upon configuring i get this error:

Code: Select all

configure: WARNING: CL/cl.h: present but cannot be compiled
configure: WARNING: CL/cl.h:     check for missing prerequisite headers?
configure: WARNING: CL/cl.h: see the Autoconf documentation
configure: WARNING: CL/cl.h:     section "Present But Cannot Be Compiled"
configure: WARNING: CL/cl.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to [email protected] ##
configure: WARNING:     ## ------------------------------------ ##
I configured with CFLAGS='-march=native' (also tested -march=sandybridge). If i drop the CFLAG its ok.
Then i tested with CFLAGS='-march=westmere' and it configures ok.. From what i gather, the only optimization difference between sandybridge and westmere is "AVX".

Code: Select all

‘westmere’
    Intel Westmere CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES and PCLMUL instruction set support.
‘sandybridge’
    Intel Sandy Bridge CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AES and PCLMUL instruction set support.
https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html

Can't say if its a wine problem, or a opencl problem tho.. No problems using gcc-7/gcc-7.3. Any ideas or stuff i could try? :)
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Re: Configure problem with gcc-8 and OpenCL

Post by Cybermax »

Hmm.. seems as my gcc include files is missing movdirintrin.h from https://github.com/gcc-mirror/gcc/blob/ ... irintrin.h

This is perhaps a packagefault by Ubuntu toolchain test ppa repository then..

Consider this issue closed so far.. Sorry.
Locked