build: luks-fs-mgr: build fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Davlet Panech |
Bug Description
Brief Description
-----------------
Package luks-fs-mgr fails to compile. Likely caused by https:/
Severity
--------
Major
Steps to Reproduce
------------------
Build the package
Expected Behavior
------------------
Build succeeds
Actual Behavior
----------------
Build fails
Reproducibility
---------------
Seen once
System Configuration
-------
N/A
Branch/Pull Time/Commit
-------
master/2023-10-20
Last Pass
---------
master/2023-10-19
Timestamp/Logs
--------------
From log file luks-fs-
dpkg-buildpackage
-----------------
Command: dpkg-buildpackage --sanitize-env -us -uc -rfakeroot -j6
[...]
dh build
dh_
dh_autoreconf
dh_
dh_auto_build
make -j6 "INSTALL=install --strip-
make[1]: Entering directory '/<<PKGBUILDDIR>>'
(cd encryption ; make all VER=1 VER_MJR=1)
make[2]: Entering directory '/<<PKGBUILDDIR
make[2]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
g++ -Wall -Wextra -g -Werror -std=c++11 -I. -o luks-fs-mgr PassphraseGener
PassphraseGen
PassphraseGen
31 | throw runtime_
| ^~~~~~~~~~~~~
PassphraseGen
33 | throw runtime_
| ^~~~~~~~~~~~~
PassphraseGen
35 | throw runtime_
| ^~~~~~~~~~~~~
PassphraseGen
44 | throw runtime_
| ^~~~~~~~~~~~~
PassphraseGen
48 | cerr << "Error: " << ex.what() << endl;
| ^~~~
PassphraseGen
17 | #include "PassphraseGene
+++ |+#include <iostream>
18 | using namespace std;
PassphraseGen
48 | cerr << "Error: " << ex.what() << endl;
| ^~~~
PassphraseGen
17 | #include "PassphraseGene
+++ |+#include <ostream>
18 | using namespace std;
PassphraseGen
PassphraseGen
80 | bool generatePassphr
| ~~~~~~~~^~~~~~~~~
PassphraseGen
PassphraseGen
90 | bool generatePassphr
| ~~~~~~~~^~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:25: luks-fs-mgr] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR
make[1]: *** [Makefile:11: build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j6 "INSTALL=install --strip-
make: *** [debian/rules:10: build] Error 25
dpkg-
Test Activity
-------------
N/A
Workaround
----------
N/A
Changed in starlingx: | |
status: | New → In Progress |
Changed in starlingx: | |
assignee: | nobody → Davlet Panech (dpanech) |
Changed in starlingx: | |
importance: | Undecided → High |
tags: | added: stx.9.0 stx.build |
Reviewed: https:/ /review. opendev. org/c/starlingx /integ/ +/898970 /opendev. org/starlingx/ integ/commit/ e35b25e6c0ff71f 2d514bf08ba4a4b 6790d53621
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit e35b25e6c0ff71f 2d514bf08ba4a4b 6790d53621
Author: Davlet Panech <email address hidden>
Date: Fri Oct 20 11:30:25 2023 -0400
luks-fs-mgr: fix compilation errors
* Add missing includes
* Suppress "unused parameter" warnings because this project is built
with -Werror
TESTS ======= ======= ======= ====
===
* Reproduce the build error
* Apply this fix, rebuild and make sure it compiles w/o issues
Closes-Bug: 2039980 9d754fb61625d2e b13c3712d47
Signed-off-by: Davlet Panech <email address hidden>
Change-Id: I05bf30845d775e