Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Glibc fails to build on a G5 (unrecognized opcode)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Wed Jun 23, 2004 11:22 pm    Post subject: Glibc fails to build on a G5 (unrecognized opcode) Reply with quote

So I am using the latest stage1 tarball from http://dev.gentoo.org/~tgall/ (stage1-ppc64-20040610.tar.bz2) with the following options in make.conf:
Code:
CFLAGS="-O3 -mcpu=G5 -mtune=G5 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc64-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"
USE="nptl altivec"
MAKEOPTS="-j3"
ACCEPT_KEYWORDS="~ppc64"

Everything looks peachy until glibc fails to build as follows:
Code:
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s: Assembler messages:
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:197: Error: Unrecognized opcode: `mfvrsave'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:200: Error: Unrecognized opcode: `mtvrsave'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:277: Error: Unrecognized opcode: `lvx'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:279: Error: Unrecognized opcode: `lvx'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:283: Error: Unrecognized opcode: `lvx'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:285: Error: Unrecognized opcode: `lvx'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:289: Error: Unrecognized opcode: `lvx'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:291: Error: Unrecognized opcode: `lvx'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:295: Error: Unrecognized opcode: `lvx'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:297: Error: Unrecognized opcode: `lvx'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:301: Error: Unrecognized opcode: `lvx'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:303: Error: Unrecognized opcode: `lvx'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:307: Error: Unrecognized opcode: `lvx'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:309: Error: Unrecognized opcode: `lvx'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:329: Error: Unrecognized opcode: `stvx'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:339: Error: Unrecognized opcode: `lvx'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:343: Error: Unrecognized opcode: `mtvrsave'
/var/tmp/portage/glibc-2.3.4.20040605/temp/ccuLKCmv.s:361: Error: Unrecognized opcode: `mtvrsave'
make[2]: *** [/var/tmp/portage/glibc-2.3.4.20040605/work/build/dlfcn/eval.os] Error 1

I seem to recall that the answer for such kind of problems is "upgrade binutils;" but then I have binutils 2.15.91.0.1-r1 so there is nothing to upgrade here. Building on a dual-G5 2GHz. Any idea is appreciated.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Fri Jun 25, 2004 4:45 am    Post subject: [SOLVED] Glibc fails to build on a G5 (unrecognized opcode) Reply with quote

The culprit turns out to be the mcpu option. The problematic CFLAGS were
Code:
-O3 -mcpu=G5 -mtune=G5 -maltivec -mabi=altivec -fno-strict-aliasing -pipe

simply eliminating the mcpu option causes glibc to build just fine (NPTL and all). I am now off to build the rest of the system...
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum