Skip to content

Build with lto - #4161

Open
bwoebi wants to merge 1 commit into
masterfrom
bob/flto
Open

Build with lto#4161
bwoebi wants to merge 1 commit into
masterfrom
bob/flto

Conversation

@bwoebi

@bwoebi bwoebi commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Aside from being a lto build, in particular this serves as regression that it doesn't break the distro build of ddtrace anymore.

@bwoebi
bwoebi requested review from a team as code owners September 4, 2026 18:37
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-04T18:41:26.211203Z 0ed46fe PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Sep 4, 2026

Copy link
Copy Markdown

Pipelines  Tests

Unblock PR with BitsAI

⚠️ Warnings

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 49 Pipeline jobs failed

DataDog/apm-reliability/dd-trace-php | check libxml2 version — 🔧 Needs a code fix, caused by this PR

View more details · View in GitLab

DataDog/apm-reliability/dd-trace-php | compile tracing extension: [7.0, amd64, x86_64-alpine-linux-musl] — 🔧 Needs a code fix, caused by this PR

View more details · View in GitLab

DataDog/apm-reliability/dd-trace-php | compile tracing extension: [7.0, amd64, x86_64-unknown-linux-gnu] — 🔧 Needs a code fix, caused by this PR

View more details · View in GitLab

View all 49 failed jobs.

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 54.99% (+0.00%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 0ed46fe | Docs | View more details | Give us feedback!

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0ed46fe30a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .gitlab/build-tracing.sh

ECHO_ARG="-e"
CFLAGS="-std=gnu11 -O2 -g -Wall -Wextra"
export CFLAGS="-std=gnu11 -O2 -g -Wall -Wextra -flto=auto -ffat-lto-objects"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use an LTO mode supported by GCC 7

The Linux GNU packaging jobs use the CentOS 7 images configured in .gitlab/generate-package.php, and this script explicitly activates devtoolset-7 before exporting these flags. GCC 7 supports -flto, an integer job count, or jobserver, but not -flto=auto (GCC 7.5 LTO documentation); because the exported value is inherited by configure and the extension build, every CentOS artifact job will stop with an unsupported -flto= argument before producing packages. Use plain -flto, a numeric value, or a compiler-supported conditional.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant