[ 
https://issues.apache.org/jira/browse/THRIFT-5271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17189140#comment-17189140
 ] 

Zezeng Wang commented on THRIFT-5271:
-------------------------------------

This is the log that winflexbison3 was installed correctly by chocolaty.

{code}
winflexb ison3 v2.5.18.20190508 [Approved]
winflexbison3 package files install completed. Performing other installation 
steps.
WARNING: Url has SSL/TLS available, switching to HTTPS for download
Downloading winflexbison3
 from 
'https://sourceforge.net/projects/winflexbison/files/old_versions/win_flex_bison-2.5.18.zip'
Progress: 100% - Completed download of 
C:\Users\appveyor\AppData\Local\Temp\1\chocolatey\winflexbison3\2.5.18.20190508\winflexbison3Install.zip
 (954.72 KB).
Download of winflexbison3Install.zip (954.72 KB) completed.
Hashes match.
Extracting 
C:\Users\appveyor\AppData\Local\Temp\1\chocolatey\winflexbison3\2.5.18.20190508\winflexbison3Install.zip
 to C:\ProgramData\chocolatey\lib\winflexbison3\tools...
C:\ProgramData\chocolatey\lib\winflexbison3\tools
ShimGen has successfully created a shim for win_bison.exe
 ShimGen has successfully created a shim for win_flex.exe
 The install of winflexbison3 was successful.
Software installed to 'C:\ProgramData\chocolatey\lib\winflexbison3\tools'
 {code}

Now:

{code}
winflexbison3 v2.5.23.20200829 [Approved]
winflexbison3 package files install completed. Performing other installation 
steps.
 The install of winflexbison3 was successful.
  Software install location not explicitly set, could be in package or
  default install location if installer.
{code}

And you can see the code in the file "MSVC-appveyor-build.bat".
It set the software path to cmake.

{code}
@ECHO ON
  cmake "%SRCDIR%" ^
    -G"%GENERATOR%" ^
        
-DBISON_EXECUTABLE=C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_bison.exe
 ^
    -DBOOST_ROOT="%BOOST_ROOT%" ^
    -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR%" ^
    -DBUILD_SHARED_LIBS="%BUILD_SHARED_LIBS%" ^
    -DCMAKE_BUILD_TYPE="%CONFIGURATION%" ^
    -DCMAKE_INSTALL_PREFIX="%INSTDIR%" ^
        
-DFLEX_EXECUTABLE=C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_flex.exe
 ^
    -DLIBEVENT_ROOT="%WIN3P%\libevent-%LIBEVENT_VERSION%-stable" ^
    -DOPENSSL_ROOT_DIR="%OPENSSL_ROOT%" ^
    -DOPENSSL_USE_STATIC_LIBS=OFF ^
    -DZLIB_LIBRARY="%WIN3P%\zlib-inst\lib\zlib%ZLIB_LIB_SUFFIX%.lib" ^
    -DZLIB_ROOT="%WIN3P%\zlib-inst" ^
    -DWITH_PYTHON=%WITH_PYTHON%             || EXIT /B
@ECHO OFF
{code}

> appveyor-ci:Configuring incomplete, errors occurred!
> ----------------------------------------------------
>
>                 Key: THRIFT-5271
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5271
>             Project: Thrift
>          Issue Type: Bug
>            Reporter: Zezeng Wang
>            Priority: Major
>
> The machine about MSVC2017 and MSVC2015 Configuring incomplete .
> such as:
> [https://ci.appveyor.com/project/ApacheSoftwareFoundation/thrift/builds/34959432/job/xo2vrekn3vw8t3df|https://ci.appveyor.com/project/ApacheSoftwareFoundation/thrift/builds/34959432/job/xo2vrekn3vw8t3df]
> -- Found clang-tidy: C:/Program Files/LLVM/bin/clang-tidy.exe  
> -- Found clang-apply-replacements: C:/Program 
> Files/LLVM/bin/clang-apply-replacements.exe  
> -- Could NOT find run-clang-tidy (missing: run-clang-tidy_BINARY) 
> -- Looking for pthread.h
> -- Looking for pthread.h - not found
> -- Found Threads: TRUE  
> -- Building with unittests
> CMake Error at C:/Program Files 
> (x86)/CMake/share/cmake-3.16/Modules/FindFLEX.cmake:125 (message):
>   Command "C:/ProgramData/chocolatey/lib/winflexbison3/tools/win_flex.exe
>   --version" failed with output:
>   
> Call Stack (most recent call first):
>   compiler/cpp/CMakeLists.txt:26 (find_package)
> -- Found FLEX: C:/ProgramData/chocolatey/lib/winflexbison3/tools/win_flex.exe 
>  
> CMake Error at C:/Program Files 
> (x86)/CMake/share/cmake-3.16/Modules/FindBISON.cmake:103 (message):
>   Command "C:/ProgramData/chocolatey/lib/winflexbison3/tools/win_bison.exe
>   --version" failed with output:
> Call Stack (most recent call first):
>   compiler/cpp/CMakeLists.txt:27 (find_package)
> -- Found BISON: 
> C:/ProgramData/chocolatey/lib/winflexbison3/tools/win_bison.exe  
> -- Found libevent: 
> C:/projects/thrift/thirdparty/libevent-2.1.8-stable/lib/libevent.lib
> -- Found ZLIB: C:/projects/thrift/thirdparty/zlib-inst/lib/zlib.lib (found 
> version "1.2.11") 
> -- Locating boost libraries required by sources in 
> C:/projects/thrift/lib/cpp/test
> -- Found Boost: C:/Libraries/boost_1_67_0 (found suitable version "1.67.0", 
> minimum required is "1.56") found components: chrono date_time filesystem 
> random thread unit_test_framework system atomic 
> -- Locating boost libraries required by sources in C:/projects/thrift/test/cpp
> -- Found Boost: C:/Libraries/boost_1_67_0 (found suitable version "1.67.0", 
> minimum required is "1.56") found components: filesystem program_options 
> random system 
> -- Found OpenSSL: 
> optimized;C:/OpenSSL-Win64/lib/VC/libeay32MD.lib;debug;C:/OpenSSL-Win64/lib/VC/libeay32MDd.lib
>  (found version "1.0.2u")  
> -- Found libevent: 
> C:/projects/thrift/thirdparty/libevent-2.1.8-stable/lib/libevent.lib
> -- ----------------------------------------------------------
> -- Thrift version:                               0.14.0 (0.14.0)
> -- Thrift package version:                       0.14.0
> -- 
> -- Build configuration summary
> --   Build compiler:                             ON
> --   Build libraries:                            ON
> --   Build tests:                                ON
> --   Build type:                                 Release
> -- 
> -- Language libraries:
> -- 
> --   Build as3 library:                          ON
> -- 
> --   Build with OpenSSL:                         ON
> --     Version:                                  1.0.2u
> -- 
> --   Build C++ library:                          ON
> --     C++ Language Level:                       C++11 [compiler must support 
> it]
> --     Build shared libraries:                   ON
> --     Build with libevent support:              ON
> --     Build with Qt5 support:                   ON
> --     Build with ZLIB support:                  ON
> -- 
> --   Build C (GLib) library:                     OFF
> --    - GLib missing
> -- 
> --   Build Java library:                         ON
> --   Build Javascript library:                   OFF
> --   Build NodeJS library:                       ON
> -- 
> --   Build Python library:                       ON
> -- 
> --   Build Haskell library:                      ON
> -- 
> -- ----------------------------------------------------------
> -- Configuring incomplete, errors occurred!
> See also "C:/projects/build/MSVC2017/x64/CMakeFiles/CMakeOutput.log".
> See also "C:/projects/build/MSVC2017/x64/CMakeFiles/CMakeError.log".
> C:\projects\thrift>set lastexitcode=1 
> C:\projects\thrift>set  1>C:\Users\appveyor\AppData\Local\Temp\tmp502D.tmp 
> C:\projects\thrift>echo C:\projects\thrift  
> 1>C:\Users\appveyor\AppData\Local\Temp\tmp502E.tmp 
> C:\projects\thrift>exit /b 1 
> Command exited with code 1



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to