Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build failure with custom triplet (/fsanitize=address enabled) #43026

Closed
BH2WFR opened this issue Dec 31, 2024 · 2 comments
Closed

build failure with custom triplet (/fsanitize=address enabled) #43026

BH2WFR opened this issue Dec 31, 2024 · 2 comments
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.

Comments

@BH2WFR
Copy link

BH2WFR commented Dec 31, 2024

Operating system

Windows 11 24H2

Compiler

MSVC (VS2022)

Steps to reproduce the behavior

curtom triplet file x64-windows-asan.cmake: (location: vcpkg/triplet, same as built-in triplets`)

set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)

set(VCPKG_BUILD_TYPE "Debug")
set(VCPKG_C_FLAGS "/fsanitize=address")
set(VCPKG_CXX_FLAGS "/fsanitize=address")
set(VCPKG_LINKER_FLAGS "/INCREMENTAL:NO")

then command:
vcpkg install fmt:x64-windows-asan
vcpkg install gflags:x64-windows-asan

compiles nothing, and no any headers or libraries exported.

Failure logs

Image

package files: with nothing exported (no lib, no headers)
Image
Image

Additional context

It works well with built-in triplets x64-windows, x64-windows-static x64-windows-static-md.

@BH2WFR BH2WFR added the category:port-bug The issue is with a library, which is something the port should already support label Dec 31, 2024
@BH2WFR BH2WFR changed the title build failure with curtom triplet (-fsanitizer:address enabled) build failure with custom triplet (-fsanitizer:address enabled) Dec 31, 2024
@BH2WFR BH2WFR changed the title build failure with custom triplet (-fsanitizer:address enabled) build failure with custom triplet (-fsanitize:address enabled) Dec 31, 2024
@BH2WFR BH2WFR changed the title build failure with custom triplet (-fsanitize:address enabled) build failure with custom triplet (/fsanitize:address enabled) Dec 31, 2024
@BH2WFR BH2WFR changed the title build failure with custom triplet (/fsanitize:address enabled) build failure with custom triplet (/fsanitize=address enabled) Dec 31, 2024
@LilyWangLL LilyWangLL added category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. and removed category:port-bug The issue is with a library, which is something the port should already support labels Dec 31, 2024
@LilyWangLL LilyWangLL removed their assignment Dec 31, 2024
@dg0yt
Copy link
Contributor

dg0yt commented Dec 31, 2024

set(VCPKG_BUILD_TYPE "Debug")

This is officially unsupported.

You may configure "Release" to do whatever you want. YMMV.

@BH2WFR
Copy link
Author

BH2WFR commented Dec 31, 2024

set(VCPKG_BUILD_TYPE "Debug")

This is officially unsupported.

You may configure "Release" to do whatever you want. YMMV.

I removed it, and it compiled successfully.

Happy New Year!

@BH2WFR BH2WFR closed this as completed Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.
Projects
None yet
Development

No branches or pull requests

3 participants