Bug 446030

Summary: blacs build failed on ia64 by trying to use /usr/lib64
Product: [Fedora] Fedora Reporter: Zhan, Yi <yi.zhan>
Component: blacsAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-13 16:46:23 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:
Bug Depends On:    
Bug Blocks: 163350    
Attachments:
Description Flags
fix lib64 issue on ia64 none

Description Zhan, Yi 2008-05-12 08:44:24 UTC
Description of problem:

When build blacs on fedora ia64 below error was seen:

gfortran  -o /builddir/build/BUILD/blacs/BLACS/TESTING/EXE/xFbtest_MPI-LINUX-0
blacstest.o btprim_MPI.o tools.o -L/builddir/build/BUILD/blacs/BLACS/LIB
-lmpiblacsF77init -lmpiblacs -lmpiblacsCinit -L/usr/lib64/lam -lmpi -llam
-llamf77mpi -ldl -lpthread -lutil
/usr/bin/ld: cannot find -lmpi
collect2: ld returned 1 exit status
make: *** [/builddir/build/BUILD/blacs/BLACS/TESTING/EXE/xFbtest_MPI-LINUX-0]
Error 1
error: Bad exit status from /var/tmp/rpm-tmp.30185 (%build)

The full log can be found at
http://ia64.koji.fedoraproject.org/koji/getfile?taskID=69400&name=build.log. 

The root cause is that "-L/usr/lib64/lam" was used to find the lam libs. Unlike
other 64 bit architectures, ia64 does not have /usr/lib and /usr/lib64 both, it
only has /usr/lib (since it only support 64 bit libs). So "/usr/lib/lam" should
be used here. 

Substituting '/lib64/' to '/lib/' in Bmak.inc.64bit for ia64 could fix the build
issue. Patch attached.

Version-Release number of selected component (if applicable):
blacs-1.1-26.fc9.1

How reproducible:
always

Steps to Reproduce:
1. buidl blacs under fedora ia64
2.
3.
  
Actual results:


Expected results:


Additional info:
I also tried to use Bmake.inc instead of Bmake.inc.64bit. It not worked, since
we still need to find lam header files under /usr/include/lam/64/ but Bmake.inc
specified /usr/include/lam/32.

Comment 1 Zhan, Yi 2008-05-12 08:44:24 UTC
Created attachment 305105 [details]
fix lib64 issue on ia64

Comment 2 Tom "spot" Callaway 2008-05-13 16:46:23 UTC
Fixed in F-9 and rawhide. I didn't trigger builds for this, but it is fixed in CVS.

(p.s. sed -i is your friend)