Skip to content

[flann] Build error on x64-mingw-static #42022

@dongfangZh

Description

@dongfangZh

Package: flann:x64-mingw-static@2019-04-07#7

Host Environment

  • Host: x64-windows
  • Compiler: GNU 7.3.0
  • vcpkg-tool version: 2024-09-30-ab8988503c7cffabfd440b243a383c0a352a023d
    vcpkg-scripts version: 7adc2e4 2024-10-04 (5 weeks ago)

To Reproduce

vcpkg install flann:x64-mingw-static

Failure logs

-- Using cached flann-lib-flann-1d04523268c388dabf1c0865d69e1b638c8c7d9d.tar.gz.
-- Cleaning sources at D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/vcpkg/downloads/flann-lib-flann-1d04523268c388dabf1c0865d69e1b638c8c7d9d.tar.gz
-- Applying patch fix-build-error.patch
-- Applying patch fix-dependency-hdf5.patch
-- Applying patch fix_undefined_pot_t.patch
-- Using source at D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean
-- Configuring x64-mingw-static-dbg
-- Configuring x64-mingw-static-rel
-- Building x64-mingw-static-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: D:/vcpkg/downloads/tools/cmake-3.30.1-windows/cmake-3.30.1-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j9
    Working Directory: D:/vcpkg/buildtrees/flann/x64-mingw-static-dbg
    See logs for more information:
      D:\vcpkg\buildtrees\flann\install-x64-mingw-static-dbg-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/flann/portfile.cmake:35 (vcpkg_cmake_install)
  scripts/ports.cmake:192 (include)



D:\vcpkg\buildtrees\flann\install-x64-mingw-static-dbg-out.log
Change Dir: 'D:/vcpkg/buildtrees/flann/x64-mingw-static-dbg'

Run Build Command(s): D:/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe -v -v -j9 install
[1/5] D:\DependentLib\QT\5.14.1\Tools\mingw730_64\bin\x86_64-w64-mingw32-g++.exe -D_FLANN_VERSION=1.9.1 -ID:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp -isystem D:/vcpkg/installed/x64-mingw-static/include -g   -Wall -Wno-unknown-pragmas -Wno-unused-function -fPIC -MD -MT src/cpp/CMakeFiles/flann_cpp_s.dir/flann/flann_cpp.cpp.obj -MF src\cpp\CMakeFiles\flann_cpp_s.dir\flann\flann_cpp.cpp.obj.d -o src/cpp/CMakeFiles/flann_cpp_s.dir/flann/flann_cpp.cpp.obj -c D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp/flann/flann_cpp.cpp
In file included from D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp/flann/util/params.h:33:0,
                 from D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp/flann/flann.hpp:42,
                 from D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp/flann/flann_cpp.cpp:30:
D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp/flann/util/any.h: In member function 'virtual void flann::anyimpl::big_any_policy<T>::static_delete(void**)':
D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp/flann/util/any.h:81:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if (* x) delete (* reinterpret_cast<T**>(x)); *x = NULL;
         ^~
D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp/flann/util/any.h:81:55: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
         if (* x) delete (* reinterpret_cast<T**>(x)); *x = NULL;
                                                       ^
[2/5] C:\WINDOWS\system32\cmd.exe /C "cd . && D:\vcpkg\downloads\tools\cmake-3.30.1-windows\cmake-3.30.1-windows-i386\bin\cmake.exe -E rm -f lib\libflann_cppd.a && D:\DependentLib\QT\5.14.1\Tools\mingw730_64\bin\ar.exe qc lib\libflann_cppd.a  src/cpp/CMakeFiles/flann_cpp_s.dir/flann/flann_cpp.cpp.obj && D:\DependentLib\QT\5.14.1\Tools\mingw730_64\bin\ranlib.exe lib\libflann_cppd.a && cd ."
[3/5] D:\DependentLib\QT\5.14.1\Tools\mingw730_64\bin\x86_64-w64-mingw32-g++.exe -DFLANN_STATIC -D_FLANN_VERSION=1.9.1 -ID:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp -isystem D:/vcpkg/installed/x64-mingw-static/include -g   -Wall -Wno-unknown-pragmas -Wno-unused-function -fPIC -MD -MT src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.obj -MF src\cpp\CMakeFiles\flann_s.dir\flann\flann.cpp.obj.d -o src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.obj -c D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp/flann/flann.cpp
FAILED: src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.obj 
D:\DependentLib\QT\5.14.1\Tools\mingw730_64\bin\x86_64-w64-mingw32-g++.exe -DFLANN_STATIC -D_FLANN_VERSION=1.9.1 -ID:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp -isystem D:/vcpkg/installed/x64-mingw-static/include -g   -Wall -Wno-unknown-pragmas -Wno-unused-function -fPIC -MD -MT src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.obj -MF src\cpp\CMakeFiles\flann_s.dir\flann\flann.cpp.obj.d -o src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.obj -c D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp/flann/flann.cpp
In file included from D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp/flann/util/params.h:33:0,
                 from D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp/flann/flann.hpp:42,
                 from D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp/flann/flann.h:603,
                 from D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp/flann/flann.cpp:31:
D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp/flann/util/any.h: In member function 'virtual void flann::anyimpl::big_any_policy<T>::static_delete(void**)':
D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp/flann/util/any.h:81:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if (* x) delete (* reinterpret_cast<T**>(x)); *x = NULL;
         ^~
D:/vcpkg/buildtrees/flann/src/638c8c7d9d-cbccfeb2cc.clean/src/cpp/flann/util/any.h:81:55: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
         if (* x) delete (* reinterpret_cast<T**>(x)); *x = NULL;
                                                       ^
D:/DependentLib/QT/5.14.1/Tools/mingw730_64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/as.exe: src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.obj: too many sections (144649)
C:\Users\Viking\AppData\Local\Temp\ccs84fN9.s: Assembler messages:
C:\Users\Viking\AppData\Local\Temp\ccs84fN9.s: Fatal error: can't write 610 bytes to section .text of src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.obj: 'File too big'
D:/DependentLib/QT/5.14.1/Tools/mingw730_64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/as.exe: src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.obj: too many sections (144649)
C:\Users\Viking\AppData\Local\Temp\ccs84fN9.s: Fatal error: can't close src/cpp/CMakeFiles/flann_s.dir/flann/flann.cpp.obj: File too big
ninja: build stopped: subcommand failed.

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions