Skip to content

Build fail on Windows #172

@SteveRussell33

Description

@SteveRussell33
$ cmake --build build --config Release
[96/98] Linking CXX shared module nanogui\nanogui_ext.cp313-win_amd64.pyd
FAILED: [code=1] nanogui/nanogui_ext.cp313-win_amd64.pyd
C:\WINDOWS\system32\cmd.exe /C "cd . && C:\msys64\mingw64\bin\c++.exe -Wall -Wextra -O3 -DNDEBUG -flto=auto -fno-fat-lto-objects  -shared -o nanogui\nanogui_ext.cp313-win_amd64.pyd -Wl,--major-image-version,0,--minor-image-version,0 src/python/CMakeFiles/nanogui-python.dir/main.cpp.obj src/python/CMakeFiles/nanogui-python.dir/glfw.cpp.obj src/python/CMakeFiles/nanogui-python.dir/icons.cpp.obj src/python/CMakeFiles/nanogui-python.dir/color.cpp.obj src/python/CMakeFiles/nanogui-python.dir/widget.cpp.obj src/python/CMakeFiles/nanogui-python.dir/layout.cpp.obj src/python/CMakeFiles/nanogui-python.dir/basics.cpp.obj src/python/CMakeFiles/nanogui-python.dir/button.cpp.obj src/python/CMakeFiles/nanogui-python.dir/tabs.cpp.obj src/python/CMakeFiles/nanogui-python.dir/textbox.cpp.obj src/python/CMakeFiles/nanogui-python.dir/textarea.cpp.obj src/python/CMakeFiles/nanogui-python.dir/theme.cpp.obj src/python/CMakeFiles/nanogui-python.dir/formhelper.cpp.obj src/python/CMakeFiles/nanogui-python.dir/misc.cpp.obj src/python/CMakeFiles/nanogui-python.dir/canvas.cpp.obj src/python/CMakeFiles/nanogui-python.dir/nanovg.cpp.obj src/python/CMakeFiles/nanogui-python.dir/render.cpp.obj src/python/CMakeFiles/nanogui-python.dir/quad.cpp.obj src/python/CMakeFiles/nanogui-python.dir/vector.cpp.obj  src/python/libnanobind-static.a  libnanogui.dll.a  C:/Python/libs/python313.lib  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
during GIMPLE pass: alias
C:/_Projects/C++/nanogui/include/nanogui/vector.h: In member function 'contrasting_color':
C:/_Projects/C++/nanogui/include/nanogui/vector.h:403:11: internal compiler error: in binds_to_current_def_p, at symtab.cc:2598
  403 |     Color contrasting_color() const {
      |           ^
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <https://github.com/msys2/MINGW-packages/issues> for instructions.
make: *** [C:\msys64\tmp\ccC8VtOu.mk:2: C:\msys64\tmp\ccMmcFUB.ltrans0.ltrans.o] Error 1
lto-wrapper.exe: fatal error: make returned 2 exit status
compilation terminated.
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions