From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0) glibc 2.2.2-7 will not build on sparc64 Reproducible: Always Steps to Reproduce: 1. rpm -ba glibc-2.2.2-7.src.rpm 2. cd /usr/src/redhat 3. rpm -ba SPECS/glibc.rpm Actual Results: make[2]: Entering directory `/usr/src/redhat/BUILD/glibc- 2.2.2/string' ../sysdeps/sparc/sparc64/strcat.S: Assembler messages: ../sysdeps/sparc/sparc64/strcat.S:73: Error: Illegal operands: invalid ASI expression ../sysdeps/sparc/sparc64/strcat.S:114: Error: Illegal operands: invalid ASI expression ../sysdeps/sparc/sparc64/strcat.S:151: Error: Illegal operands: invalid ASI expression ../sysdeps/sparc/sparc64/strcat.S:230: Error: Illegal operands: invalid ASI expression ../sysdeps/sparc/sparc64/strcat.S:244: Error: Illegal operands: invalid ASI expression ../sysdeps/sparc/sparc64/strcat.S:262: Error: Illegal operands: invalid ASI expression ../sysdeps/sparc/sparc64/strcat.S:266: Error: Illegal operands: invalid ASI expression make[2]: *** [/usr/src/redhat/BUILD/glibc-2.2.2/build-sparc64- linux/string/strcat.o] Error 1 make[2]: Leaving directory `/usr/src/redhat/BUILD/glibc-2.2.2/string' make[1]: *** [string/subdir_lib] Error 2 make[1]: Leaving directory `/usr/src/redhat/BUILD/glibc-2.2.2' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.35603 (%build) Expected Results: a working glibc-2.2.2-7.sparc64.rpm this is on a sparc ultra5
It builds just fine (just tried it), but: you either want to build a 32bit glibc, then do: sparc32 rpm -ba -v glibc.spec or (32bit glibc which will run on UltraSPARC only): sparc32 rpm -ba -v --target=sparcv9-linux glibc.spec or you want to build 64bit glibc, but then you should make sure you have 64bit toolchain ready - rpm -ba -v glibc.spec will build a 64bit glibc. From the above messages it looks like you don't have 64bit toolchain in place, or have wrong kernel headers (/usr/include/asm must be a directory with little headers which either include asm-sparc/xy.h or asm-sparc64/xy.h depending on preprocessor macros).
The command used to assemble this file was: as -Av9a -Qy -s -Av9a -64 -no-undeclared-regs -relax - o /usr/src/redhat/BUILD/glibc-2.2.2/build-sparc64- linux/string/strcat.o /tmp/cc68c0rr.s Is this not enough to produce sparc64 binaries?
glibc will now build using rpm --target=sparc64 -ba SPECS/glibc.spec