public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/28379] New: Fail to compile glibc2.28 with --enable-static-pie in aarch64
@ 2021-09-23 12:47 yangyanchao6 at huawei dot com
  2022-05-06 11:03 ` [Bug build/28379] " nsz at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: yangyanchao6 at huawei dot com @ 2021-09-23 12:47 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28379

            Bug ID: 28379
           Summary: Fail to compile glibc2.28 with --enable-static-pie in
                    aarch64
           Product: glibc
           Version: 2.28
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: yangyanchao6 at huawei dot com
                CC: carlos at redhat dot com
  Target Milestone: ---

I see that bug (19574) that seems to support -static-pie on aarch64.
https://sourceware.org/bugzilla/show_bug.cgi?id=19574

But I failed to compile glibc-2.28 using --enable-static-pie on the aarch64.

Build toolchain version:
GCC - 7.3
Glibc 2.28
Binutils 2.34

Error as follows:
/root/rpmbuild/BUILD/glibc-2.28-110-g57922433fa/build-aarch64-redhat-linux/elf/sln
/root/rpmbuild/BUILD/glibc-2.28-110-g57922433fa/build-aarch64-redhat-linux/elf/symlink.list
make[1]: *** [Makefile:106: install-symbolic-link] Segmentation fault (core
dumped)
make[1]: Leaving directory '/root/rpmbuild/BUILD/glibc-2.28-110-g57922433fa'
make: *** [Makefile:12: install] Error 2
make: Leaving directory
'/root/rpmbuild/BUILD/glibc-2.28-110-g57922433fa/build-aarch64-redhat-linux'

[root@localhost ~]# gdb
/root/rpmbuild/BUILD/glibc-2.28-110-g57922433fa/build-aarch64-redhat-linux/elf/sln 
(gdb) set args
/root/rpmbuild/BUILD/glibc-2.28-110-g57922433fa/build-aarch64-redhat-linux/elf/symlink.list
(gdb) r
Starting program:
/root/rpmbuild/BUILD/glibc-2.28-110-g57922433fa/build-aarch64-redhat-linux/elf/sln
/root/rpmbuild/BUILD/glibc-2.28-110-g57922433fa/build-aarch64-redhat-linux/elf/symlink.list

Program received signal SIGSEGV, Segmentation fault.
0x0000fffff7f75218 in __libc_start_main (main=0x0, argc=2, argv=0xfffffffff4a8, 
    init=0xfffff7f758b0 <__libc_csu_init>, fini=0xfffff7f75968
<__libc_csu_fini>, rtld_fini=0x0, 
    stack_end=0xfffffffff4a0) at ../csu/libc-start.c:141
141       __libc_multiple_libcs = &_dl_starting_up && !_dl_starting_up;
(gdb) bt
#0  0x0000fffff7f75218 in __libc_start_main (main=0x0, argc=2,
argv=0xfffffffff4a8, 
    init=0xfffff7f758b0 <__libc_csu_init>, fini=0xfffff7f75968
<__libc_csu_fini>, rtld_fini=0x0, 
    stack_end=0xfffffffff4a0) at ../csu/libc-start.c:141
#1  0x0000fffff7f74b48 in _start () at ../sysdeps/aarch64/start.S:92
Backtrace stopped: previous frame identical to this frame (corrupt stack?)


I know -static-pie can only be used after GCC8, but -pie is used on gcc-7.30
and I compiled successfully on x86
Do I need other compilation options to work with, or are these compilation
toolchains not currently supported? Need I to upgrade to a higher version?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug build/28379] Fail to compile glibc2.28 with --enable-static-pie in aarch64
  2021-09-23 12:47 [Bug build/28379] New: Fail to compile glibc2.28 with --enable-static-pie in aarch64 yangyanchao6 at huawei dot com
@ 2022-05-06 11:03 ` nsz at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: nsz at gcc dot gnu.org @ 2022-05-06 11:03 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=28379

Szabolcs Nagy <nsz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nsz at gcc dot gnu.org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |NOTABUG

--- Comment #1 from Szabolcs Nagy <nsz at gcc dot gnu.org> ---
sorry i missed this bug.

i tried a recent toolchain and that can build glibc 2.28
with --enable-static-pie

i think you just need newer tools, so i'm closing this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-06 11:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-23 12:47 [Bug build/28379] New: Fail to compile glibc2.28 with --enable-static-pie in aarch64 yangyanchao6 at huawei dot com
2022-05-06 11:03 ` [Bug build/28379] " nsz at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).