Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

test_node build failed with limit sections with non-release builds on windows

未关闭
#3,311 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
cmake, cpp
领域
testing

调研方向

The MSVC C1128 error is raised while compiling rclcpp/test/rclcpp/test_node.cpp under RelWithDebInfo. Locate the CMake target that builds that test and add the /bigobj flag for MSVC (non-Release). Reproduce with the Windows CI job and packages-up-to/select rosbag2_performance_benchmarking. Done when the object file builds without exceeding the section limit.

由索引模型根据 Issue 内容生成。

描述

bug
Generated by Generative AI

No

Operating System:

```Windows 11 - ROS 2 CI``

ROS version or commit hash:

rolling

RMW implementation (if applicable):

n/a

RMW Configuration (if applicable):

n/a

Client library (if applicable):

rclcpp

'ros2 doctor --report' output

N/A

Steps to reproduce issue
  1. Go to ci.ros2.org
  2. In the CI_CMAKE_BUILD_TYPE field type RelWithDebInfo
  3. In build_args add --packages-up-to rosbag2_performance_benchmarking
  4. in test_args add --packages-select rosbag2_performance_benchmarking
Expected behavior

It building like a charm

Actual behavior

Build failure like:

W:\src\ros2\rclcpp\rclcpp\test\rclcpp\test_node.cpp : fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj
ninja: build stopped: subcommand failed.
Additional information

This issue was encountered in this PR for ROSbag2 https://github.com/ros2/rosbag2/pull/2494

You can find a reference build here with the failure: Build Status

主要语言
C++
星标
816
派生
575
平均合并
4 天 7 小时
30 天内合并 PR
35

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ros2/rclcpp 的其他 Issue

查看 ros2/rclcpp 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。