Bug 59634

Summary: Can't build anything on SPARC (sun4u) platform
Product: [Retired] Red Hat Linux Reporter: Alec Voropay <alec>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: alec
Target Milestone: ---   
Target Release: ---   
Hardware: sparc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-02-11 16:14:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alec Voropay 2002-02-11 16:13:57 UTC
Description of Problem:
It is impossible to build any package on SPARC ULTRA10
(sun4u) platform. The RPM 4 treat this platform as
sparc64, but cc can't generate sparc64 code:
RPM_OPT_FLAGS="-O2 -m64 -mcpu=ultrasparc"
cc1: -m64 is not supported by this configuration

 As it is known, RedHat RPM produces i386 packages
for Intel platform even for i686 machines by default.

 How to produce sparc32 RPMs like this ?
$ file /bin/ls
/bin/ls: ELF 32-bit MSB executable, SPARC, version 1,
dynamically linked (uses shared libs), stripped

Version-Release number of selected component (if applicable):
rpm-devel-4.0.2-6x
rpm-build-4.0.2-6x
rpm-4.0.2-6x
egcs-1.1.2-30

How Reproducible:
Try to build any SRPM on SPARC ULTRA10 (sun4u)

Steps to Reproduce:
1. 
rpm -ba package.src.rpm


Actual Results:
cc1: -m64 is not supported by this configuration
make[1]: *** [package] Error 1


Expected Results:
built RPM

Additional Information:

Comment 1 Jeff Johnson 2002-02-11 16:33:41 UTC
Try
	sparc32 rpm -ba ...