Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-21175

"rpmbuild -ba --with=mofed" failed with doca 3.2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • Lustre 2.18.0
    • None
    • 3
    • 9223372036854775807

      eaujames@rocky10:~/rpmbuild$ rpmbuild -ba --with=mofed SPECS/lustre.spec
      ...
      Shell debugging temporarily silenced: export LMOD_SH_DBG_ON=1 for Lmod's output                   
      Shell debugging restarted                           
      + unset __lmod_sh_dbg                               
      + return 0                                          
      + export PRTE_MCA_rmaps_default_mapping_policy=:oversubscribe                                     
      + PRTE_MCA_rmaps_default_mapping_policy=:oversubscribe                                            
      + WITH_KFI=                                         
      + WITH_O2IB=                                        
      ++ find -H /usr/src/ofa_kernel/ -type d -name ofed_scripts                                        
      ++ xargs dirname                                    
      dirname: missing operand                            
      Try 'dirname --help' for more information.                                                        
      + o2ib_path=                                        
      error: Bad exit status from /var/tmp/rpm-tmp.PbAd2W (%build)                                      
      
      RPM build errors:                                   
          Bad exit status from /var/tmp/rpm-tmp.PbAd2W (%build)                                         
      

      Doca relies on dkms for building and uses symbolic links to point to the build directories in ofa_kernel/default and ofa_kernel/x86/<kernel>. As a result, find -H returns nothing under /usr/src/ofa_kernel.

      eaujames@rocky10:~/rpmbuild$ tree /usr/src/ofa_kernel
      /usr/src/ofa_kernel
      ├── default -> /etc/alternatives/ofa_kernel_headers
      └── x86_64
          └── 6.12.0-211.66.1.el10_2.x86_64 -> /usr/src/ofa_kernel-dkms/x86_64/6.12.0-211.66.1.el10_2.x86_64
      
      eaujames@rocky10:~/rpmbuild$ ls  -d /usr/src/ofa_kernel*
      /usr/src/ofa_kernel  /usr/src/ofa_kernel-25.10-OFED.25.10.3.1.8.1  /usr/src/ofa_kernel-dkms
      

            wcjohnso Will Johnson
            eaujames Etienne Aujames
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: