ctring opened a new pull request #7430:
URL: https://github.com/apache/arrow/pull/7430


   In Linux, the configuration step of Boost allows selecting a subset of the 
libraries being built using the `--with-libraries=` flag. However, this flag 
does not exist in the configure script on Windows, so now we're building all 
libraries, including those being trimmed:
   ```
   Component configuration:
   
    - atomic : building
    - chrono : building
    - container : building
    - date_time : building
    - exception : building
    - filesystem : building
    - headers : building
    - iostreams : building
    - locale : building
    - log : building
    - mpi : building
    - program_options : building
    - python : building
    - random : building
    - regex : building
    - serialization : building
    - system : building
    - test : building
    - thread : building
    - timer : building
    - wave : building
   ```
   
   To select only the necessary libraries on Windows, we can provide the 
`--with-<library>` flag to `./b2`. Doing so helped getting me pass the boost 
building step but the thrift building step failed. This time, it is still due 
to a header file `typeof/incr_registration_group.hpp` missing in Boost (this 
file is only required on Windows but not on Linux); thus, added that header 
file to the `trim-boost.sh` script. 
   
   I verified that this can now build on both Windows and Linux with the 
commands:
   ```
   mkdir build
   cd build
   cmake .. -DARROW_PARQUET=ON
   cmake --build .
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to