You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Jonathan McDevitt (JIRA)" <ji...@apache.org> on 2019/07/24 16:30:00 UTC

[jira] [Updated] (ARROW-6027) CMake Build w/boost_ep fails on Windows - "%1 is not a valid Win32 application"

     [ https://issues.apache.org/jira/browse/ARROW-6027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan McDevitt updated ARROW-6027:
-------------------------------------
    Description: 
Hi all,

I seem to be running into an issue when building Apache Arrow for Windows. It fails to build boost; in the CMake output it says

 
{code:java}
CMake Error at D:/Staging/arrow/cpp/release64/boost_ep-prefix/src/boost_ep-stamp/boost_ep-configure-Release.cmake:49 (message):
    Command failed: %1 is not a valid Win32 application

    './bootstrap.sh' '--prefix=D:/Staging/arrow/cpp/release64/boost_ep-prefix/src/boost_ep' '--with-libraries=filesystem,regex,system'
{code}
I've been trying to address this issue, and am currently investigating using a pre-build Boost library as a workaround, but the expectation is that this should work out of the box. I have attached logs demonstrating this behaviour. The initial step of running CMake for Windows 64 is fine, but the actual build step is what fails, and the boost_ep-configure-*.log files are empty so there is nothing there to give an idea of what's going on.

 
h2. Expected Behaviour

When building Apache Arrow 0.14.x, build should work out of the box when VS 2015 build tools are present and the environment is configured with vcvarsall for the appropriate architecture.
h2. Observed Behaviour

Build fails with error: 
{code:java}
Command failed: %1 is not a valid Win32 application

    './bootstrap.sh' '--prefix=D:/Staging/arrow/cpp/release64/boost_ep-prefix/src/boost_ep' '--with-libraries=filesystem,regex,system'{code}
h2. Steps to Reproduce
 # Sync to Maintenance 0.14.x with 'git clone -b maint-0.14.x [https://github.com/apache/arrow.git']
 # Following the instructions at [https://github.com/apache/arrow/blob/master/docs/source/developers/cpp.rst]:
 ## Create a 'build' directory from which to run CMake and generate the appropriate build files.
 ## Run "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" amd64
 ## From within the build directory, run "cmake .. -G "Visual Studio 14 2015 Win64" -DARROW_BUILD_TESTS=ON"
 ### Alternatively, if running Ninja, run "cmake .. -GNinja -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_CXX_COMPILER="cl.exe" -DARROW_BUILD_TESTS=ON"
 ## Observe error.

Thanks,
 ~Jon

  was:
Hi all,

I seem to be running into an issue when building Apache Arrow for Windows. It fails to build boost; in the CMake output it says

 
{code:java}
CMake Error at D:/Staging/arrow/cpp/release64/boost_ep-prefix/src/boost_ep-stamp/boost_ep-configure-Release.cmake:49 (message):
    Command failed: %1 is not a valid Win32 application

    './bootstrap.sh' '--prefix=D:/Staging/arrow/cpp/release64/boost_ep-prefix/src/boost_ep' '--with-libraries=filesystem,regex,system'
{code}
I've been trying to address this issue, and am currently investigating using a pre-build Boost library as a workaround, but the expectation is that this should work out of the box. I have attached logs demonstrating this behaviour. The initial step of running CMake for Windows 64 is fine, but the actual build step is what fails, and the boost_ep-configure-*.log files are empty so there is nothing there to give an idea of what's going on.

 
h2. **Expected Behaviour

When building Apache Arrow 0.14.x, build should work out of the box when VS 2015 build tools are present and the environment is configured with vcvarsall for the appropriate architecture.
h2. Observed Behaviour

Build fails with error: 
{code:java}
Command failed: %1 is not a valid Win32 application

    './bootstrap.sh' '--prefix=D:/Staging/arrow/cpp/release64/boost_ep-prefix/src/boost_ep' '--with-libraries=filesystem,regex,system'{code}
h2. Steps to Reproduce
 # Sync to Maintenance 0.14.x with 'git clone -b maint-0.14.x [https://github.com/apache/arrow.git']
 # Following the instructions at [https://github.com/apache/arrow/blob/master/docs/source/developers/cpp.rst]:
 ## Create a 'build' directory from which to run CMake and generate the appropriate build files.
 ## Run "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" amd64
 ## From within the build directory, run "cmake .. -G "Visual Studio 14 2015 Win64" -DARROW_BUILD_TESTS=ON"
 ### Alternatively, if running Ninja, run "cmake .. -GNinja -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_CXX_COMPILER="cl.exe" -DARROW_BUILD_TESTS=ON"
 ## Observe error.

Thanks,
~Jon


> CMake Build w/boost_ep fails on Windows - "%1 is not a valid Win32 application"
> -------------------------------------------------------------------------------
>
>                 Key: ARROW-6027
>                 URL: https://issues.apache.org/jira/browse/ARROW-6027
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Jonathan McDevitt
>            Priority: Major
>         Attachments: _release64CMakeBuildLogs.txt, _release64CMakeLogs.txt
>
>
> Hi all,
> I seem to be running into an issue when building Apache Arrow for Windows. It fails to build boost; in the CMake output it says
>  
> {code:java}
> CMake Error at D:/Staging/arrow/cpp/release64/boost_ep-prefix/src/boost_ep-stamp/boost_ep-configure-Release.cmake:49 (message):
>     Command failed: %1 is not a valid Win32 application
>     './bootstrap.sh' '--prefix=D:/Staging/arrow/cpp/release64/boost_ep-prefix/src/boost_ep' '--with-libraries=filesystem,regex,system'
> {code}
> I've been trying to address this issue, and am currently investigating using a pre-build Boost library as a workaround, but the expectation is that this should work out of the box. I have attached logs demonstrating this behaviour. The initial step of running CMake for Windows 64 is fine, but the actual build step is what fails, and the boost_ep-configure-*.log files are empty so there is nothing there to give an idea of what's going on.
>  
> h2. Expected Behaviour
> When building Apache Arrow 0.14.x, build should work out of the box when VS 2015 build tools are present and the environment is configured with vcvarsall for the appropriate architecture.
> h2. Observed Behaviour
> Build fails with error: 
> {code:java}
> Command failed: %1 is not a valid Win32 application
>     './bootstrap.sh' '--prefix=D:/Staging/arrow/cpp/release64/boost_ep-prefix/src/boost_ep' '--with-libraries=filesystem,regex,system'{code}
> h2. Steps to Reproduce
>  # Sync to Maintenance 0.14.x with 'git clone -b maint-0.14.x [https://github.com/apache/arrow.git']
>  # Following the instructions at [https://github.com/apache/arrow/blob/master/docs/source/developers/cpp.rst]:
>  ## Create a 'build' directory from which to run CMake and generate the appropriate build files.
>  ## Run "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" amd64
>  ## From within the build directory, run "cmake .. -G "Visual Studio 14 2015 Win64" -DARROW_BUILD_TESTS=ON"
>  ### Alternatively, if running Ninja, run "cmake .. -GNinja -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_CXX_COMPILER="cl.exe" -DARROW_BUILD_TESTS=ON"
>  ## Observe error.
> Thanks,
>  ~Jon



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)