Skip to content

[raylib] msys2/mingw64 build failure #18259

@xandayn

Description

@xandayn

Host Environment

  • OS: Windows (MinGW64)
  • Compiler: gcc (Rev2, Built by MSYS2 project) 10.3.0

To Reproduce
Steps to reproduce the behavior:
./vcpkg install raylib:x64-mingw-dynamic

Failure logs

C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lasan
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lubsan
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Additional context
It appears that the portfile for raylib is trying to use 'asan' and 'ubsan' which aren't available in MinGW, editing the port file to set '-DENABLE_ASAN' (line 44) to OFF and the same with '-DENABLE_UBSAN' (line 45) allows raylib to build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:community-tripletA PR or issue related to community triplets not officially validated by the vcpkg team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions