Skip to content

Conversation

@kou
Copy link
Member

@kou kou commented Apr 29, 2025

AlmaLinux 9 RPM build environment disables PIE by default by LDFLAGS="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld". If PIE is disabled, g-ir-scanner is failed:

/usr/bin/ld:
/build/rpmbuild/BUILD/apache-arrow-adbc-18/glib/build/tmp-introspect4ug84fdq/ADBC-1.0.o:
relocation R_X86_64_32 against `.rodata' can not be used when
making a PIE object; recompile with -fPIE

Fixes #2754.

@github-actions github-actions bot added this to the ADBC Libraries 18 milestone Apr 29, 2025
@lidavidm
Copy link
Member

Thanks Kou! It looks like we should merge #2756, then this.

@lidavidm
Copy link
Member

Ok, presumably this will pass once rebased!

AlmaLinux 9 RPM build environment disables PIE by default by
`LDFLAGS="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"`. If PIE is
disabled, `g-ir-scanner` is failed:

    /usr/bin/ld:
    /build/rpmbuild/BUILD/apache-arrow-adbc-18/glib/build/tmp-introspect4ug84fdq/ADBC-1.0.o:
    relocation R_X86_64_32 against `.rodata' can not be used when
    making a PIE object; recompile with -fPIE

Fixes apache#2574.
Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

Thanks Kou!

@lidavidm lidavidm merged commit 1ba2482 into apache:main Apr 29, 2025
58 checks passed
@lidavidm lidavidm linked an issue Apr 30, 2025 that may be closed by this pull request
@kou
Copy link
Member Author

kou commented Apr 30, 2025

Sorry... I used wrong issue number in PR description...

@kou kou deleted the glib-rpm branch April 30, 2025 01:39
colin-rogers-dbt pushed a commit to dbt-labs/arrow-adbc that referenced this pull request Jun 10, 2025
AlmaLinux 9 RPM build environment disables PIE by default by
`LDFLAGS="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"`. If PIE is
disabled, `g-ir-scanner` is failed:

    /usr/bin/ld:

/build/rpmbuild/BUILD/apache-arrow-adbc-18/glib/build/tmp-introspect4ug84fdq/ADBC-1.0.o:
    relocation R_X86_64_32 against `.rodata' can not be used when
    making a PIE object; recompile with -fPIE

Fixes apache#2574.
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.

ci: almalinux build fails due to relro

2 participants