-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Closed
Labels
build-problemlibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.questionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Description
When I build the llvm-project libcxx libcxxabi on release/18.x branch, use this command:
git checkout release/18.x
mkdir build && cd build
cmake ../llvm \
-DCMAKE_INSTALL_PREFIX=/home/llvm-loongarch \
-DCMAKE_C_COMPILER=loongarch64-linux-gnu-gcc\
-DCMAKE_CXX_COMPILER=loongarch64-linux-gnu-g++ \
-DCMAKE_ASM_COMPILER=loongarch64-linux-gnu-gcc \
-DCMAKE_CROSSCOMPILING=ON \
-DCMAKE_SYSROOT=/home/gf_loongarch_tools/loongson-gnu-toolchain-8.3-x86_64-loongarch64-linux-gnu-rc1.6/loongarch64-linux-gnu/sysroot/\
-DCMAKE_CXX_FLAGS="-target loongarch64-unknown-linux-gnu --sysroot=/home/gf_loongarch_tools/loongson-gnu-toolchain-8.3-x86_64-loongarch64-linux-gnu-rc1.6/loongarch64-linux-gnu/sysroot/ "\
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libc" \
-DCMAKE_INSTALL_DEFAULT_COMPONENTS="cxx;cxxabi"\
-DLIBCXX_ENABLE_SHARED=OFF \
-DLIBCXX_ENABLE_STATIC=ON \
-DLIBCXXABI_ENABLE_SHARED=OFF \
-DLIBCXXABI_ENABLE_STATIC=ON \
-DCMAKE_CXX_FLAGS="-fPIC" \
-DCMAKE_C_FLAGS="-fPIC" \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_INCLUDE_TESTS=OFF \
-DCMAKE_C_COMPILER_TARGET=loongarch64-unknown-linux-gnu \
-DCMAKE_CXX_COMPILER_TARGET=loongarch64-unknown-linux-gnu \
-DLLVM_TABLEGEN=/home/llvm-tools/llvm-tblgen
make cxx cxxabi -j20
I meet this problem:
llvm/Option/OptParser.td:262:5: error: Record 'INPUT' doest not have a filed named 'HelpTextsForVariants'!
Metadata
Metadata
Assignees
Labels
build-problemlibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.questionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!