Can not run clickhouse on another Centos6

646 views
Skip to first unread message

James Wang

unread,
Jul 21, 2017, 8:19:44 AM7/21/17
to ClickHouse
Hi All,

This time the error is when I tried to run clickhouse:

kernel: clickhouse[3395] trap invalid opcode ip:2c5c76d sp:7fff848a8860 error:0 in clickhouse

It is Centos 6.

Please advise why this error .

Thanks a lot

Alex Zatelepin

unread,
Jul 21, 2017, 1:11:48 PM7/21/17
to ClickHouse
Hi James!

Most probably it means that your CPU does not support SSE 4.2 instruction set. You can check this by running the following command:
grep -q sse4_2 /proc/cpuinfo && echo "SSE 4.2 supported" || echo "SSE 4.2 not supported"

You can recompile ClickHouse so that it doesn't require SSE 4.2, but results are better if the support is present.

James Wang

unread,
Jul 24, 2017, 7:25:07 AM7/24/17
to ClickHouse
How to please?

Thanks a lot indeed

On Friday, 21 July 2017 18:11:48 UTC+1, Alex Zatelepin wrote:
Hi James!

Alex Zatelepin

unread,
Jul 24, 2017, 9:01:46 AM7/24/17
to ClickHouse
To compile without sse4 you need to either compile on your target architecture (cmake then automatically detect which processor features are supported) or manually turn off support by running cmake with the following flags:
cmake -DHAVE_POPCNT=0 -DHAVE_SSE41=0 -DHAVE_SSE42=0 ..

Note that build without sse4.2 was broken without this patch: https://github.com/yandex/ClickHouse/commit/8763567e9a6fc47614ff8dec40d984562d887aec
You can apply it yourself (compiling directly from master is not recommended, only from one of the stable tags).

May I ask what is the system you intend to run ClickHouse on? All modern x86_64 processors support sse4, so it should not be a problem.

James Wang

unread,
Jul 25, 2017, 11:10:07 AM7/25/17
to ClickHouse
Thanks a lot indeed.

I need to upgrade my Centos.

With best regards
Reply all
Reply to author
Forward
0 new messages