public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: cygwin@cygwin.com
Subject: Re: anybody successful in compiling apache-arrow?
Date: Fri, 4 Sep 2020 09:36:31 -0400	[thread overview]
Message-ID: <086aaf47-f20c-d670-61b9-cc0ee4587b48@cornell.edu> (raw)
In-Reply-To: <11fbefb997f5f3fa37de64e06928112f@prager.ws>

On 9/3/2020 12:43 AM, Bernd Prager wrote:
> All,
> 
> While trying to install "pyarrow" and not able to find a distribution package so 
> far I was trying to compile the Apache Arrow  sources from 
> https://arrow.apache.org/ under CYGWIN_NT-10.0 HW-016990 3.1.5(0.340/5/3).
> 
> I tried:
> $ mkdir release; cd release/
> $ cmake .. -DARROW_JEMALLOC=OFF
> $ make
> 
> It fails with:
> 
> --- snip -----------------
> [  0%] Built target toolchain
> [  0%] Built target arrow_dependencies
> [  1%] Building CXX object 
> src/arrow/CMakeFiles/arrow_objlib.dir/array/concatenate.cc.o
> In file included from 
> /home/xxx/Tmp/apache-arrow-1.0.1/cpp/src/arrow/util/int_util_internal.h:30,
>                   from 
> /home/xxx/Tmp/apache-arrow-1.0.1/cpp/src/arrow/array/concatenate.cc:39:
> /home/xxx/Tmp/apache-arrow-1.0.1/cpp/src/arrow/vendored/portable-snippets/safe-math.h: 
> In function ‘int psnip_safe_ulong_add(long unsigned int*, long unsigned int, 
> long unsigned int)’:
> /home/xxx/Tmp/apache-arrow-1.0.1/cpp/src/arrow/vendored/portable-snippets/safe-math.h:621:22: 
> error: cannot convert ‘long unsigned int*’ to ‘ULONG*’ {aka ‘unsigned int*’}
>    621 |     return isf(a, b, res) == S_OK; \
>        |                      ^~~
>        |                      |
>        |                      long unsigned int*
> /home/xxx/Tmp/apache-arrow-1.0.1/cpp/src/arrow/vendored/portable-snippets/safe-math.h:621:22: 
> note: in definition of macro ‘PSNIP_SAFE_DEFINE_INTSAFE’
>    621 |     return isf(a, b, res) == S_OK; \
>        |                      ^~~
> In file included from 
> /home/xxx/Tmp/apache-arrow-1.0.1/cpp/src/arrow/vendored/portable-snippets/safe-math.h:126, 
> 
>                   from 
> /home/xxx/Tmp/apache-arrow-1.0.1/cpp/src/arrow/util/int_util_internal.h:30,
>                   from 
> /home/xxx/Tmp/apache-arrow-1.0.1/cpp/src/arrow/array/concatenate.cc:39:
> /usr/include/w32api/intsafe.h:357:21: note:   initializing argument 3 of 
> ‘HRESULT ULongAdd(ULONG, ULONG, ULONG*)’
>    357 | __MINGW_INTSAFE_API __MINGW_INTSAFE_MATH(ULongAdd, ULONG, add)
>        |                     ^~~~~~~~~~~~~~~~~~~~
> --- snip -----------------
> 
> Now since I think this is a rather popular package I was wondering if anyone has 
> gone this journey already before me.
> (I noticed that Cygwin is not officially supported by Apache Arrow so far.)
> 
> Was anybody able to successfully compile that package? Any hints, help or advise?

The particular error message you quoted above comes from the fact that 
/usr/include/w32api/intsafe.h was included.  This is unlikely to be appropriate 
in a Cygwin build.  So you should track down why that happens and disable it.

Maybe you'll be lucky and the build will succeed after that.  More likely, there 
will be other places where the build system treats Cygwin as though it were 
Windows, and you'll just have to fix them one by one.  It can be very tedious.

If you succeed, I hope you'll offer to become the Cygwin maintainer of that package.

Ken

      reply	other threads:[~2020-09-04 13:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-03  4:43 Bernd Prager
2020-09-04 13:36 ` Ken Brown [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=086aaf47-f20c-d670-61b9-cc0ee4587b48@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).