Skip to content

libc: fails to build with add_custom_target cannot create target "libc" because another target with the same name already exists #118558

Closed
@sylvestre

Description

@sylvestre

Not sure what caused it. Maybe #117220 by @nickdesaulniers

-- Looking for logf128 - found
-- Targeting M68k
-- Targeting Xtensa
-- Targeting AArch64
-- Setting LIBC_NAMESPACE namespace to '__llvm_libc_20_0_0_'
g++: error: unrecognized command-line option '--print-resource-dir'; did you mean '--print-search-dirs'?
g++: fatal error: no input files
compilation terminated.
-- Set COMPILER_RESOURCE_DIR to /usr/lib/gcc/aarch64-linux-gnu/10/ using --print-search-dirs
-- Building libc for aarch64 on linux with
        LIBC_COMPILE_OPTIONS_DEFAULT: 
-- LIBC_CONF_ENABLE_STRONG_STACK_PROTECTOR: ON

Regression range 356df2d..1e7171f
Fails log:
https://llvm-jenkins.debian.net/job/llvm-toolchain-bullseye-binaries/architecture=arm64,distribution=bullseye,label=arm64/1608/console

Metadata

Metadata

Assignees

No one assigned

    Labels

    build-problemcmakeBuild system in general and CMake in particularlibc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions