Bug 28671 - hurd: Build failure with PIE
Summary: hurd: Build failure with PIE
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: hurd (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-08 03:24 UTC by Siddhesh Poyarekar
Modified: 2021-12-14 07:38 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Siddhesh Poyarekar 2021-12-08 03:24:19 UTC
When building i686-gnu with build-many-glibcs.py and this patch[1] (with the hunk changing sysdeps/mach/hurd removed) to enable PIE across the board in glibc, the Hurd target fails as follows:

build-many-2/install/compilers/i686-gnu/lib/gcc/i686-glibc-gnu/11.2.1/../../../../i686-glibc-gnu/bin/ld: cannot find build-many-2/build/glibcs/i686-gnu/glibc/csu/rcrt0.o: No such file or directory
collect2: error: ld returned 1 exit status
make[3]: *** [../Rules:269: build-many-2/build/glibcs/i686-gnu/glibc/support/test-run-command] Error 1

This prevents PIE from being enabled by default for hurd.  I'll post the final link of the commit and clearer steps to reproduce when it actually goes in.

[1] https://patchwork.sourceware.org/project/glibc/patch/20211207082638.1960585-1-siddhesh@sourceware.org/
Comment 1 Samuel Thibault 2021-12-13 21:33:43 UTC
This is fixed by 556a6126f8764bc66d03368b5ac3e26631556559
Comment 2 Siddhesh Poyarekar 2021-12-14 02:49:30 UTC
Thanks, could you please remove definition of PIE_UNSUPPORTED in sysdeps/mach/hurd/configure.ac so that PIE is enabled on hurd?
Comment 3 Samuel Thibault 2021-12-14 07:38:55 UTC
yep, done so!