Skip to content

Build error when using drake as cmake external #381

Open
@xiao-wang007

Description

@xiao-wang007

Hi
I got the following error when building drake in cmake as external.

OS: macos
chip: apple chip

The only changes I made in the CMakeLists.txt under drake_cmake_external are the latest versions of fmt and spd log. Because with the default version, it gives me error saying cmake < 3.5 is not supported anymore.
Have I done anything wrong?


ERROR: /Users/xiao/0_codes/drake-external-examples/drake_cmake_external/build/drake/_bazel_xiao/6e05939919dd6d766bdf4415ba4d40a2/external/drake+/systems/controllers/BUILD.bazel:127:17: Compiling systems/controllers/pid_controlled_system.cc failed: (Exit 1): wrapped_clang_pp failed: error executing CppCompile command (from target @@drake+//systems/controllers:pid_controlled_system) external/apple_support++apple_cc_configure_extension+local_config_apple_cc/wrapped_clang_pp '-D_FORTIFY_SOURCE=1' -fstack-protector -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign ... (remaining 166 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/drake+/systems/controllers/pid_controlled_system.cc:73:29: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
73 | plant_ = builder.template AddSystem(std::move(plant));
| ^
1 error generated.

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