http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59573
Bug ID: 59573
Summary: aarch64: commit 07ca5686e64 broken glibc-2.17
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: dennis.yxun at gmail dot com
Created attachment 31498
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31498&action=edit
glibc build error
I'm using qemu-aarch64[1], and trying to build rootfs with gcc-4.9.0,
glibc-2.17, binutils-2.24.51.0.1
following commit[2] result in un-usable glibc (2.17), I haven't trace to the
root cause, but detail error can be seen in "glibc.error"[4]
btw, I'm using "git bisect" to find this commit[2]. and also tested passed with
latest commit[3], but with this commit[2] reverted.
[1] git://github.com/susematz/qemu.git, branch aarch64-1.6
[2] gcc offended commit:
commit 07ca5686e64d32f7df4ccf4205d0b914f120da5e
Author: yroux <yroux@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Thu Sep 26 09:09:30 2013 +0000
2013-09-26 Yvan Roux <[email protected]>
* config/aarch64/aarch64.opt (mlra): New option.
* config/aarch64/aarch64.c (aarch64_lra_p): New function.
(TARGET_LRA_P): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202940
138bc75d-0d04-0410-961f-82ee72b054a4
[3] gcc commit: 33c503bd9001b6fe823aa9be319a09df500a6b40
[4] glibc build error, a) trigger unknown insns b) result int ld-*.so
un-usable. this two error won't happen with the commit[2] reverted
/var/tmp/portage/sys-libs/glibc-2.17/work/build-default-aarch64-unknown-linux-gnu-nptl/elf/sln
/var/tmp/portage/sys-libs/glibc-2.17/work/build-default-aarch64-unknown-linux-gnu-nptl/elf/symlink.list
rm -f
/var/tmp/portage/sys-libs/glibc-2.17/work/build-default-aarch64-unknown-linux-gnu-nptl/elf/symlink.list
make[1]: Leaving directory
'/var/tmp/portage/sys-libs/glibc-2.17/work/glibc-2.17'
* Defaulting /etc/host.conf:multi to on
unallocated encoding at line: 3465
Unknown instruction: 0x5ee09800
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
/usr/portage/sys-libs/glibc/files/eblits/pkg_preinst.eblit: line 21: 28605
Illegal instruction (core dumped) ./ld-*.so --library-path . ${x} >
/dev/null
* ERROR: sys-libs/glibc-2.17::gentoo failed (preinst phase):
* simple run test (/bin/date) failed
*
* Call stack:
* ebuild.sh, line 93: Called pkg_preinst
* environment, line 3108: Called eblit-run 'pkg_preinst'
* environment, line 944: Called eblit-glibc-pkg_preinst
* pkg_preinst.eblit, line 48: Called glibc_sanity_check
* pkg_preinst.eblit, line 27: Called die
* The specific snippet of code:
* ./ld-*.so --library-path . ${x} > /dev/null \
* || die "simple run test (${x}) failed"
*