[needs-packaging] OFED Mellanox firmware burning application package mstflint is missing

Bug #1367842 reported by bugproxy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mstflint (Ubuntu)
Fix Released
Wishlist
Breno Leitão

Bug Description

---Problem Description---
OFED Mellanox firmware burning application package mstflint is missing

---uname output---
Linux ubuntu 3.16.0-14-generic #20-Ubuntu SMP Sat Sep 6 23:45:12 UTC 2014 ppc64le ppc64le ppc64le GNU/Linux

Machine Type = P8

---Steps to Reproduce---
Install a P8 machine with Ubuntu 14.10 in Non Virtualized mode or in guest VM mode.
Then try to install the mstflint packages as below:

oot@ubuntu:~# apt-get install mstflint
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mstflint

For now I was able to get the source code for this package and was able to compile it and update FW of the card.

I just opened a bug in Debian for this issue:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760864

bugproxy (bugproxy)
tags: added: architecture-ppc64le bugnameltc-115704 severity-high targetmilestone-inin1410
Luciano Chavez (lnx1138)
summary: - OFED Mellanox firmware burning application package mstflint is missing
+ [needs-packaging] OFED Mellanox firmware burning application package
+ mstflint is missing
tags: added: needs-packaging
Revision history for this message
Brian Murray (brian-murray) wrote :

*** This is an automated message ***

This bug is tagged needs-packaging which identifies it as a request for a new package in Ubuntu. As a part of the managing needs-packaging bug reports specification, https://wiki.ubuntu.com/QATeam/Specs/NeedsPackagingBugs, all needs-packaging bug reports have Wishlist importance. Subsequently, I'm setting this bug's status to Wishlist.

Changed in ubuntu:
importance: Undecided → Wishlist
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2014-09-12 12:38 EDT-------
mstflint bug in Debian was accepted and it is already compiled for Debian. It should appear in Ubuntu soon.

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2014-11-13 13:31 EDT-------
Just to be complete on Debian:
Package mstflint
wheezy (stable) (net): Mellanox firmware burning application
1.4-OFED-1.4.2-1: amd64 i386 ia64 powerpc

so the target ppc64el is not yet available

On Ubuntu:
The Vivid Vervet (active development)
Set upstream link
3.7.0+1.18.gcdb9f80-3 release (universe) 2014-10-25
The Utopic Unicorn (current stable release)
Set upstream link
3.7.0-1 release (universe) 2014-07-04
The Trusty Tahr (supported)
1.4-OFED-1.4.2-1 release (universe) 2013-10-18
The Precise Pangolin (supported)
1.4-OFED-1.4.2-1 release (universe) 2011-10-13
with
Builds

[FULLYBUILT] amd64
[FULLYBUILT] i386
[FULLYBUILT] powerpc

So the issue is just to have the platform being supported.

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2014-12-09 14:56 EDT-------
According to Carol Soto on 12/08/2014, package the mstflint it ok.
So just enabling the ppc64le arch allow compilation and work.
Attaching the packages in case people need them

Revision history for this message
bugproxy (bugproxy) wrote : dsc file

------- Comment (attachment only) From <email address hidden> 2014-12-09 14:59 EDT-------

Revision history for this message
bugproxy (bugproxy) wrote : binary package

------- Comment (attachment only) From <email address hidden> 2014-12-09 15:02 EDT-------

bugproxy (bugproxy)
tags: added: targetmilestone-inin1504
removed: targetmilestone-inin1410
Steve Langasek (vorlon)
Changed in ubuntu:
assignee: nobody → Steve Langasek (vorlon)
Revision history for this message
Steve Langasek (vorlon) wrote :

This package has built successfully in Debian, but the same version is failing to build in Ubuntu with the following error:

g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I../../include/mtcr_ul -I../../mflash -I../../ext_libs/json -I../../ext_libs/minixz -I../../common -I/zlib -I ../../tools_layouts -I../../common -I../../mft_utils -D_FORTIFY_SOURCE=2 -Wall -W -g -MP -MD -pipe -DNO_MFA_SUPPORT -g -O3 -fstack-protector-strong -Wformat -Werror=format-security -DHAVE_TERMIOS_H -Werror -DMST_UL -c -o fw_ops.o fw_ops.cpp
fw_ops.cpp: In member function 'bool FwOperations::ModifyImageFile(const char*, u_int32_t, void*, int)':
fw_ops.cpp:632:27: error: 'file_data' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     memcpy(&file_data[addr], data, cnt);
                           ^
fw_ops.cpp:650:35: error: 'file_size' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     if (fwrite(data, 1, length, fh) != length) {
                                   ^
fw_ops.cpp:626:9: note: 'file_size' was declared here
     int file_size;
         ^
cc1plus: all warnings being treated as errors
Makefile:300: recipe for target 'fw_ops.o' failed

https://launchpadlibrarian.net/193726658/buildlog_ubuntu-vivid-ppc64el.mstflint_3.7.0%2B1.18.gcdb9f80-3_FAILEDTOBUILD.txt.gz
https://launchpad.net/ubuntu/+source/mstflint/3.7.0+1.18.gcdb9f80-3/+build/6497168

This requires further investigation.

affects: ubuntu → mstflint (Ubuntu)
Revision history for this message
Steve Langasek (vorlon) wrote :

This build failure only occurs when building with -O3 - which is a default flag in Ubuntu for ppc64el, but evidently not in Debian.

Revision history for this message
Steve Langasek (vorlon) wrote :

Attached is a patch that fixes the build.

I'm not sure where to submit this patch upstream. The current package version clearly points to pulls from upstream git, but I don't find references to this upstream git in the source package or on the download site. Breno, do you know where this lives?

Revision history for this message
Steve Langasek (vorlon) wrote :

Patch also as debdiff.

Changed in mstflint (Ubuntu):
assignee: Steve Langasek (vorlon) → Breno Leitão (breno-leitao)
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2015-03-02 22:06 EDT-------
(In reply to comment #18)
Attached is a
> patch that fixes the build.

I'm not sure where to submit this patch
> upstream. The current package version clearly points to pulls from upstream
> git, but I don't find references to this upstream git in the source package
> or on the download site. Breno, do you know where this lives?

-------
> Comment From vorlon 2015-03-03 04:08:15 UTC-------
Patch also as debdiff.

The download site is usually from here: https://www.openfabrics.org/downloads/mstflint/
but not sure how patches work for this. If you can not find how to submit the patch, let me know I can try to see if I can find the Mellanox person that submit the tar files to this site. Thanks.

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2015-03-11 21:43 EDT-------
Hi Steve.
By verifying this page http://downloads.openfabrics.org/downloads/MAINTAINERS
it's possible to see some information regarding that package.
Perhaps contacting the maintainer would give you a more accurate lead on where
to send the patch.

mstflint: Mohammad Sawalha <email address hidden>
http://www.openfabrics.org/downloads/mstflint/
git://git.openfabrics.org/~orenk/mstflint.git master

Regards.

------- Comment From <email address hidden> 2015-03-11 21:47 EDT-------
The info I added was provided by Carol Soto by the way. Thanks.

Revision history for this message
Steve Langasek (vorlon) wrote :

> git://git.openfabrics.org/~orenk/mstflint.git master

For the record this git repository only includes history through January 2014 (upstream version 3.5.0).

Revision history for this message
Steve Langasek (vorlon) wrote :

An up-to-date git branch appears to be git://git.openfabrics.org/~mohammads/mstflint.git

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mstflint - 3.7.0+1.18.gcdb9f80-3ubuntu1

---------------
mstflint (3.7.0+1.18.gcdb9f80-3ubuntu1) vivid; urgency=medium

  * debian/patches/uninitialized-variables-O3.patch: Fix uninitialized
    variables when building with -O3. Closes LP: #1367842.
 -- Steve Langasek <email address hidden> Tue, 31 Mar 2015 19:19:41 -0700

Changed in mstflint (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.