无法在Windows Server 2012上使用cygwin构建clickhouse

时间:2017-10-10 06:37:16

标签: build cygwin clickhouse

我正在尝试在Windows Server 2012(build 9600)上的cygwin(mintty-2.7.9)中构建最新的clickhouse版本(v1.1.54292-stable)。 我已经在cygwin中选择并安装了这些额外的软件包:

automake 10-1
automake 1.15.1-1
cmake 3.6.2.-1
gcc 6.3.0-2
g++ 6.3.0-2
gccmakedep 1.0.3.-1
git 2.14.1-2
libboost_system 1.63.0-1
libmcpp-devel 2.7.2-2
libmysqlclient-devel 10.1.26-1
libpcreposix0 8.40-3
libpoco-devel 1.7.9-1
libpoco-49 1.7.9-1
libtool 2.4.6-5
make 4.2.1-2
mcpp 2.7.2-2
poco 1.7.9-1
python3 3.6.1-1

我正在关注官方instructions所以我跑了:

export THREADS=$(grep -c ^processor /proc/cpuinfo)
export CC=gcc
export CXX=g++
export CMAKE_LEGACY_CYGWIN_WIN32=1
mkdir build
cd build
cmake ..
make -j $THREADS

我得到的编译错误是:

In function ‘CityHash_v1_0_2::uint128 CityHash_v1_0_2::CityMurmur(const char*, size_t, CityHash_v1_0_2::uint128)’:
/home/user/ClickHouse/contrib/libcityhash/src/city.cc:261:3:
error: ‘ssize_t’ was not declared in this scope
    ssize_t l = len - 16;

如果我grep /usr/include/sys/types.h ssize_t Route::view('/', 'welcome'); 它已在那里正确定义,但由于某种原因,编译器无法找到它。

感谢您的任何建议......

0 个答案:

没有答案