[ewg] OFED Installation of debuginfo on CentOS 5.1

Greg I Kerr kerr.g at husky.neu.edu
Tue Feb 8 15:53:29 PST 2011


Thanks a-lot, that got everything to install but now I am having a
different problem.

I installed the debuginfo packages by re-installing OFED-1.5.1 using
"./install.pl --all".

However, when I step through the OFED code in gdb, it doesn't actually
display the debug symbols. It simply looks as such:

(gdb)
__ibv_create_cq (context=0x6078b0, cqe=501, cq_context=0x0,
channel=0x0, comp_vector=0) at src/verbs.c:275
275     src/verbs.c: No such file or directory.
        in src/verbs.c
(gdb) n
278     in src/verbs.c
(gdb) n
275     in src/verbs.c


The ib_debug_info.log can be found here: http://pastebin.com/P1J73DPL.
It is full of errors such as:
mlx4_en: disagrees about version of symbol mlx4_unregister_mac
mlx4_en: Unknown symbol mlx4_unregister_mac

I opened a bugzilla ticket here:
http://bugs.openfabrics.org/bugzilla/show_bug.cgi?id=2231
However, that's more related to the issue that /etc/init.d/openib fails.

Thanks,

Greg Kerr

On Mon, Feb 7, 2011 at 3:23 AM, Vladimir Sokolovsky
<vlad at dev.mellanox.co.il> wrote:
> On 02/06/2011 05:28 PM, Greg Kerr wrote:
>>
>> On Sunday, February 06, 2011 03:18:31 am Vladimir Sokolovsky wrote:
>>>
>>> Do you have "redhat-rpm-config" RPM installed?
>>>
>>
>> Yes.
>>
>> -- Greg Kerr
>
> Hi Greg,
> Try the following actions to get debuginfo RPMs. It was tested on CentOS5.2.
>
> 1.      Add macros file to /etc/rpm directory with the following content:
> %_enable_debug_packages 1
>
> #       Template for debug information sub-package.
> # NOTE: This is a copy from rpm to get the ifnarch noarch fix, it can be
> removed later
> %debug_package \
> %ifnarch noarch\
> %global __debug_package 1\
> %package debuginfo \
> Summary: Debug information for package %{name}\
> Group: Development/Debug\
> %description debuginfo\
> This package provides debug information for package %{name}.\
> Debug information is useful when developing applications that use this\
> package or when debugging this package.\
> %files debuginfo -f debugfiles.list\
> %defattr(-,root,root)\
> %endif\
> %{nil}
>
> %install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\
> %%install\
> LANG=C\
> export LANG\
> unset DISPLAY\
> %{nil}
>
> 2. Extract debugedit file from rpm-build-4.4.2-46.fc7 file and copy it to
> /usr/lib/rpm/ directory.
>   # rpm2cpio rpm-build-4.4.2-46.fc7 | cpio -idmv
>
> Regards,
> Vladimir
>
>>
>>> On 02/04/2011 04:09 PM, Greg Kerr wrote:
>>>>
>>>> Hi,
>>>>
>>>> Myself and some others in my lab are working to install the debuginfo
>>>> packages for OFED on our Rocks cluster, running CentOS 5.1
>>>>
>>>> The official Mellanox packages didn't include the debuginfo packages,
>>>> so we attempted to install the plain OFED packages.
>>>>
>>>> When installing on one of the nodes, it does the following. Can anyone
>>>> help us understand why its failing? There are no obvious error
>>>> messages.
>>>>
>>>> Detected Linux Distribution: Rocks
>>>> Uninstalling the previous version of OFED
>>>> Install kernel-ib RPM:
>>>> Running rpm -iv
>>>> /root/OFED-1.5.1/RPMS/centos-release-5-3.el5.centos.1/x86_64/kernel-
>>>> ib-1.5.1-2.6.18_128.el5.x86_64.rpm
>>>> Install kernel-ib-devel RPM:
>>>> Running rpm -iv
>>>> /root/OFED-1.5.1/RPMS/centos-release-5-3.el5.centos.1/x86_64/kernel-ib-
>>>> devel-1.5.1-2.6.18_128.el5.x86_64.rpm
>>>> Install ib-bonding RPM:
>>>> Running rpm -iv
>>>> /root/OFED-1.5.1/RPMS/centos-release-5-3.el5.centos.1/x86_64/ib-
>>>> bonding-0.9.0-2.6.18_128.el5.x86_64.rpm
>>>> Build ib-bonding RPM
>>>> Running rpmbuild --rebuild  --define '_topdir /var/tmp//OFED_topdir'
>>>> --define 'KVERSION 2.6.18-128.el5' --define '_release 2.6.18_128.el5'
>>>> --define 'force_all_os 0' --define '_prefix /usr' --define
>>>> '__arch_install_post %{nil}'
>>>> /root/OFED-1.5.1/SRPMS/ib-bonding-0.9.0-42.src.rpm
>>>> TMPRPMS /var/tmp//OFED_topdir/RPMS/x86_64
>>>> Created /var/tmp//OFED_topdir/RPMS/x86_64/ib-
>>>> bonding-0.9.0-2.6.18_128.el5.x86_64.rpm
>>>> ib-bonding-debuginfo was not created
>>>>
>>>> In case it is of interest to anyone, the output of rpm --showrc is
>>>> here: http://pastebin.ca/2040830
>>>>
>>>> Thanks,
>>>>
>>>> Greg Kerr
>>>> Northeastern University
>>>
>>> Hi Greg,
>>
>>> Regards,
>>> Vladimir
>>
>
>



More information about the ewg mailing list