Skip to content

[Bug] failed to build master #59537

@JackyWoo

Description

@JackyWoo

Search before asking

  • I had searched in the issues and found no similar issues.

Version

commit 5f92656 (HEAD -> master, origin/master, origin/HEAD)
Author: wudi wudi@selectdb.com
Date: Sun Jan 4 14:08:32 2026 +0800

What's Wrong?

Description

I build the project based on the document and got the following error

===== begin build boost_1_81_0
Building B2 engine..

A C++11 capable compiler is required for building the B2 engine.
Toolset 'clang' does not appear to support C++11.

> clang++ -x c++ -std=c++11  check_cxx11.cpp
ld.lld: error: undefined symbol: pthread_sigmask
>>> referenced by posix_spawn.c
>>>               posix_spawn.c.o:(child) in archive /data1/home/wujianchao/project/jd/ldb_toolchain/bin/../usr/lib/./libglibc-compatibility.a
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Command

BUILD_TYPE=Debug bash build.sh

Env.

Ubuntu 20.04 x86_64
LDB toolchain

export NODE_HOME=/data1/home/wujianchao/cmd/node-v12.13.0-linux-x64
export MAVEN_HOME=/data1/home/wujianchao/cmd/apache-maven-3.9.12
export LDB_TOOLCHAIN=/data1/home/wujianchao/project/jd/ldb_toolchain

export PATH=$LDB_TOOLCHAIN/bin:$MAVEN_HOME/bin:$NODE_HOME/bin:$PATH


clang --version
clang version 20.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /data1/home/wujianchao/project/jd/ldb_toolchain/tmp/gentoo/llvm/bin

What You Expected?

build successfully

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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