Bug 224604 - SIGILL emulating power6 on ppc7450 rpmbuild of glibc
SIGILL emulating power6 on ppc7450 rpmbuild of glibc
Status: CLOSED WONTFIX
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
6
powerpc Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-26 12:20 EST by John Reiser
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-01-26 12:32:49 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description John Reiser 2007-01-26 12:20:37 EST
Description of problem: When re-building glibc-2.5-10.fc6.src.rpm on an Apple
Macintosh mini (PowerPC ppc7450), each test of "make check" fails with SIGILL. 
The power6 emulation does not work because
build-ppc-linuxnptl-power6/elf/ld.so.1 uses a rldicl instruction (rotate left
double word immediate then clear left) at memcpy+484 before the LD_PRELOAD can
take effect.  rldicl requires powerpc64.


Version-Release number of selected component (if applicable):
glibc-2.5-10.fc6.src.rpm

How reproducible:
Always.

Steps to Reproduce:
1. rpmbuild -ba --target ppc glibc-2.5-10.fc6.spec
2.
3.
  
Actual results:
====================TESTING -mcpu=power6=============
+ cd build-ppc-linuxnptl-power6
+ '[' -d ../power6emul ']'
++ cd ../power6emul
++ pwd
+ export
'LD_PRELOAD=/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/power6emul/$LIB/power6emul.so'
+
LD_PRELOAD='/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/power6emul/$LIB/power6emul.so'
+ make -j -k check PARALLELMFLAGS=-s
+ tee check.log
make -r PARALLELMFLAGS="-s" CVSOPTS="" -C .. objdir=`pwd` check
make[1]: Entering directory `/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257'
make -s subdir=csu -C csu ..=../ tests
make[2]: Entering directory
`/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/csu'
/bin/sh: line 1: 11428 Illegal instruction    
GCONV_PATH=/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/build-ppc-linuxnptl-power6/iconvdata
LC_ALL=C
/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/build-ppc-linuxnptl-power6/elf/ld.so.1
--library-path
/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/build-ppc-linuxnptl-power6:/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/build-ppc-linuxnptl-power6/math:/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/build-ppc-linuxnptl-power6/elf:/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/build-ppc-linuxnptl-power6/dlfcn:/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/build-ppc-linuxnptl-power6/nss:/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/build-ppc-linuxnptl-power6/nis:/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/build-ppc-linuxnptl-power6/rt:/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/build-ppc-linuxnptl-power6/resolv:/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/build-ppc-linuxnptl-power6/crypt:/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/build-ppc-linuxnptl-power6/nptl
/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/build-ppc-linuxnptl-power6/csu/tst-atomic
>/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/build-ppc-linuxnptl-power6/csu/tst-atomic.out
make[2]: ***
[/home/jreiser/rpmbuild/BUILD/glibc-2.5-20061008T1257/build-ppc-linuxnptl-power6/csu/tst-atomic.out]
Error 132


Expected results:
No SIGILL (signal 4; 132= (128 + 4))

Additional info:
Where is LIB set (part of the pathname in LD_PRELOAD)?
Comment 1 Jakub Jelinek 2007-01-26 12:32:49 EST
Either accept testsuite failures then, or don't build it on pre-ppc64 hw,
or comment out /lib/power6 libs build.  I'm really not interested in writing
an emulator for all missing instructions.

Note You need to log in before you can comment on or make changes to this bug.