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.
Created attachment 305105 [details] fix lib64 issue on ia64
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)