Skip to content

packaging/aix: unset OBJECT_MODE before Go external linker in stage 04#51170

Open
pgimalac wants to merge 1 commit into
mainfrom
pgimalac/aix-object-mode
Open

packaging/aix: unset OBJECT_MODE before Go external linker in stage 04#51170
pgimalac wants to merge 1 commit into
mainfrom
pgimalac/aix-object-mode

Conversation

@pgimalac
Copy link
Copy Markdown
Member

What does this PR do?

Adds unset OBJECT_MODE in stage 04 immediately before invoking the Go external linker.

Motivation

When both OBJECT_MODE=64 and AIX_OBJECT_MODE=64 are exported simultaneously, the Go external linker invocation fails with:

ld: 0711-738 ERROR: Input file /lib/crt0.o:
    XCOFF32 object files are not allowed in 64-bit mode.

OBJECT_MODE=64 is needed globally for tools like ar that don't respect AIX_OBJECT_MODE (e.g. bzip2's Makefile calls ar cq without -X64, which defaults to 32-bit mode without OBJECT_MODE=64). AIX_OBJECT_MODE=64 alone is sufficient for gcc-8 to select the correct 64-bit startup file (/lib/crt0_64.o) for the Go link step.

Describe how you validated your changes

Validated locally: with OBJECT_MODE=64 kept globally, bzip2 and OpenSSL build correctly; with unset OBJECT_MODE in stage 04, the Go external linker links successfully.

Additional Notes

N/A

@pgimalac pgimalac added changelog/no-changelog No changelog entry needed qa/done QA done before merge and regressions are covered by tests labels May 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

@codex review

@dd-octo-sts dd-octo-sts Bot added the internal Identify a non-fork PR label May 21, 2026
@github-actions github-actions Bot added the short review PR is simple enough to be reviewed quickly label May 21, 2026
@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@pgimalac pgimalac marked this pull request as ready for review May 21, 2026 15:01
@pgimalac pgimalac requested review from a team as code owners May 21, 2026 15:01
@pgimalac pgimalac requested a review from nathan-b May 21, 2026 15:01
@datadog-official
Copy link
Copy Markdown
Contributor

datadog-official Bot commented May 21, 2026

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 1 Pipeline job failed

DataDog/datadog-agent | oracle: [21.3.0-xe]   View in Datadog   GitLab

🛟 This job is unlikely to succeed on retry. Please review your pipeline configuration. Test failures in oracle integration tests. Error: failed to ping Oracle instance: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor.

ℹ️ Info

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 50.50% (+0.15%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 9806971 | Docs | Datadog PR Page | Give us feedback!

@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts Bot commented May 21, 2026

Files inventory check summary

File checks results against ancestor b7c4f46b:

Results for datadog-agent_7.81.0~devel.git.148.9806971.pipeline.114525733-1_amd64.deb:

No change detected

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

Labels

changelog/no-changelog No changelog entry needed internal Identify a non-fork PR qa/done QA done before merge and regressions are covered by tests short review PR is simple enough to be reviewed quickly team/agent-build team/agent-runtimes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants