public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Unable to build clickhouse using cygwin on Windows Server 2012
@ 2017-10-10 10:47 Tomas Repik | Instarea
  2017-10-10 12:07 ` Marco Atzeri
  0 siblings, 1 reply; 2+ messages in thread
From: Tomas Repik | Instarea @ 2017-10-10 10:47 UTC (permalink / raw)
  To: cygwin

Hello list,

recently I came across cygwin as a way to run linux software on windows and
I have some issues with getting compilation using gcc. I posted my question
on StackOverflow
<https://stackoverflow.com/questions/46660083/unable-to-build-clickhouse-using-cygwin-on-windows-server-2012>,
idealy post your answers there, but mailing it to the list is fine as well.

Thank you

Tomas

> TL;DR

I'm trying to build the latest clickhouse release (v1.1.54292-stable) in
> cygwin (mintty-2.7.9) on Windows server 2012 (build 9600). I've picked and
> installed these additional packages in 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
> I'm following the official instructions so I ran:
> 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
> The compilation error I'm getting is this:
> 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;
> If I grep the /usr/include/sys/types.h for ssize_t it's properly defined
> there, but for some reason the compiler can't find it.
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Unable to build clickhouse using cygwin on Windows Server 2012
  2017-10-10 10:47 Unable to build clickhouse using cygwin on Windows Server 2012 Tomas Repik | Instarea
@ 2017-10-10 12:07 ` Marco Atzeri
  0 siblings, 0 replies; 2+ messages in thread
From: Marco Atzeri @ 2017-10-10 12:07 UTC (permalink / raw)
  To: cygwin

On 10/10/2017 12:47, Tomas Repik | Instarea wrote:
> Hello list,
> 
> recently I came across cygwin as a way to run linux software on windows and
> I have some issues with getting compilation using gcc. I posted my question
> on StackOverflow
> <https://stackoverflow.com/questions/46660083/unable-to-build-clickhouse-using-cygwin-on-windows-server-2012>,
> idealy post your answers there, but mailing it to the list is fine as well.
> 
> Thank you
> 
> Tomas
> 
>> TL;DR
> 
> I'm trying to build the latest clickhouse release (v1.1.54292-stable) in
>> cygwin (mintty-2.7.9) on Windows server 2012 (build 9600). I've picked and
>> installed these additional packages in 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
>> I'm following the official instructions so I ran:
>> export THREADS=$(grep -c ^processor /proc/cpuinfo)
>> export CC=gcc
>> export CXX=g++
>> export CMAKE_LEGACY_CYGWIN_WIN32=1

that is bad. You can not compile a package
with that set and using the cygwin headers.




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-10 12:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-10 10:47 Unable to build clickhouse using cygwin on Windows Server 2012 Tomas Repik | Instarea
2017-10-10 12:07 ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).