Bug 749925

Summary: Fedora15_Oct17: gcc-gfortran 32bit rpm installation conflict with 64bit rpm
Product: [Fedora] Fedora Reporter: IBM Bug Proxy <bugproxy>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 16CC: jakub, jkachuck, wgomerin
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-29 17:57:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
rpm.tar none

Description IBM Bug Proxy 2011-10-28 21:30:23 UTC
== Comment: #0 - Jifang Zhang <jizhang.com> - 2011.10.24 09:19:14 ==
I am testing toolchain for Fedora 10/17 build. In compiling 32 bit spec2006 it request gfortran 32 lib,etc. however,when I install the rpm it would give following conflict error with 64 bit rpms. 

Transaction Check Error:
  file /usr/lib/gcc/ppc64-redhat-linux/4.6.1/libgfortran.a from install of gcc-gfortran-4.6.1-10.fc16.ppc conflicts with file from package gcc-gfortran-4.6.1-10.fc16.ppc64
  file /usr/lib/gcc/ppc64-redhat-linux/4.6.1/libgfortran.so from install of gcc-gfortran-4.6.1-10.fc16.ppc conflicts with file from package gcc-gfortran-4.6.1-10.fc16.ppc64
  file /usr/lib/gcc/ppc64-redhat-linux/4.6.1/libgfortranbegin.a from install of gcc-gfortran-4.6.1-10.fc16.ppc conflicts with file from package gcc-gfortran-4.6.1-10.fc16.ppc64
  file /usr/lib/gcc/ppc64-redhat-linux/4.6.1/finclude/omp_lib.mod from install of gcc-gfortran-4.6.1-10.fc16.ppc conflicts with file from package gcc-gfortran-4.6.1-10.fc16.ppc64
  file /usr/lib/gcc/ppc64-redhat-linux/4.6.1/finclude/omp_lib_kinds.mod from install of gcc-gfortran-4.6.1-10.fc16.ppc conflicts with file from package gcc-gfortran-4.6.1-10.fc16.ppc64

Error Summary
-------------

== Comment: #1 - Jifang Zhang <jizhang.com> - 2011.10.24 15:22:33 ==
Here was what I was trying to install when I encountered above conflict:

On the node the following two 64bit rpms were installed

 rpm -qa|grep fortran
gcc-gfortran-4.6.1-10.fc16.ppc64
libgfortran-4.6.1-10.fc16.ppc64

So I tried to install their 32bit rpms.


yum install  gcc-gfortran-4.6.1-10.fc16.ppc

and it gave me the above error.

== Comment: #7 - Jifang Zhang <jizhang.com> - 2011.10.28 15:03:45 ==

rpm.tar

This tar have all files in /etc/rpm/.

== Comment: #8 - Jifang Zhang <jizhang.com> - 2011.10.28 15:05:02 ==
This still happens on Alpha release, that is 32bit install conflicts with 64bit rpm installed. 

== Comment: #9 - Steven J. Munroe <sjmunroe.com> - 2011.10.28 17:18:43 ==
This looks like a Fedora packaging bug. Basically can't decide if its is 23-/64- primary and builds both.

The Run-time RPM gcc-gfortran-4.6.1-10.fc16.ppc64 should be all you need for both 32-/64-bit runtime on a multi-arch PPC64 install. But there should be separate gcc-gfortran-devel rpm's to provide the 32-/64-bit static archives.

Comment 1 IBM Bug Proxy 2011-10-28 21:30:37 UTC
Created attachment 530745 [details]
rpm.tar

Comment 2 Jakub Jelinek 2011-10-29 17:57:31 UTC
gcc-* subpackages are to be installed for the primary architecture only, lib*{,-devel} subpackages can be installed for both architectures.
So, if you are installing gcc-gfortran.ppc by hand, it is a user error, you should just install libgfortran-*.ppc.