facebook / facebook/folly

Build debug version failed on windows, compiler is msvc(vs2022) v143

Open
#2,362 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
30.5k
Forks
5.9k
PR merge metrics
No merged PRs in 30d

Description

I got some errors, blow is my env.

- **platform**: windows 10
- **compiler**: msvc(vs2022) v143 c++17
- **build type**: debug
- **build cmd**: `.\build.bat --build-type Debug`

1. First, the build cmd of boost hasn't to support debug type,
![image](https://github.com/user-attachments/assets/6b140320-a23d-44dd-8424-918b4c30e205)
2. when I fixed the prev error, I got other errors from Tests.
- The **CountingAllocator** class in `68` line of `heap_vector_types_test.cpp` hasn't to support type rebinding
![image](https://github.com/user-attachments/assets/b69bf10b-00e4-45a6-bf6b-21051152935b)
- The **NullptrTestableInSitu' contructor** doesn't been defined in `256` line of `FunctionRefTest.cpp`
![image](https://github.com/user-attachments/assets/a66641ae-083a-4e01-ac6b-9c446aaefaae)

Contributor guide

Open the contributing guide

Research direction

Reproduce the Windows 10 Debug build with MSVC VS2022 v143 and `.\build.bat --build-type Debug`. Read the Boost build invocation, then inspect `heap_vector_types_test.cpp` around line 68 and `FunctionRefTest.cpp` around line 256; done means the Debug build and its tests compile successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, operating-systems, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.