On Skylake/KNL TensorFlow compilation does not work. Based on @akesandgren suggestion, it compiles not using AVX512 code-set. With Intel -xCORE-AVX2 or -xAVX2, with GCC -march=native -mno-avx512f solves the problem (tried with both TF 1.4.0 and 1.5.0)
(with GCC using -mavx2 does not use FMA3 instruction set)