<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Microsoft YaHei";
        panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
        {font-family:"\@Microsoft YaHei";
        panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
        {font-family:"MS UI Gothic";
        panose-1:2 11 6 0 7 2 5 8 2 4;}
@font-face
        {font-family:"\@MS UI Gothic";
        panose-1:2 11 6 0 7 2 5 8 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.mail-date
        {mso-style-name:mail-date;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.pl-k
        {mso-style-name:pl-k;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Since sm-common does not build a debug package,  those steps are not needed, so as a workaround add this line in the sm-common.spec<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">%define  debug_package %{nil}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Note: this might just mean sm-common will pass, and one of the other packages that also are generating debug files will fail.  
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">@stx-ha cores:  Someone could also remove the commented out dbg  section at the same time   “files -n sm-common-dbg”<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Al<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
</span><span style="font-size:10.0pt;font-family:"MS UI Gothic","sans-serif"">胡天昊</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> [mailto:hu.tianhao@99cloud.net]
<br>
<b>Sent:</b> Wednesday, July 31, 2019 10:05 PM<br>
<b>To:</b> Cordoba Malibran, Erich<br>
<b>Cc:</b> starlingx-discuss<br>
<b>Subject:</b> Re: [Starlingx-discuss] [Starlingx-disscuss][Build]Fail to build rpm packages when build StarlingX ISO<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Helvetica","sans-serif"">Hi Erich,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Helvetica","sans-serif""><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Helvetica","sans-serif"">Thank you so much for your reply. I have tried to run the command </span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#3D3D3D">“</span><span style="font-family:"Helvetica","sans-serif"">$
 mock -r $MY_WORKSPACE/std/configs/<my-user>-<my-project>-tis-r5-pike-std/<my-user>-<my-project>-tis-pike-std.b0.cfg
</span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#3D3D3D">”  </span><span style="font-family:"Helvetica","sans-serif"">and it still fails to build rpm packages. Also I clean the mock environment with the `--clean` flag and try to build
 again. Errors are just same as last time I tried, and I still try to figure out why dwz cannot be installed. <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Helvetica","sans-serif""><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Helvetica","sans-serif"">Thanks again,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Helvetica","sans-serif"">Tianhao<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Helvetica","sans-serif""><o:p> </o:p></span></p>
</div>
</div>
<div style="margin-top:33.75pt;margin-bottom:15.0pt;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px">
<div style="margin-left:7.5pt;margin-right:7.5pt">
<p class="MsoNormal" style="background:#F2F2F2;word-break:break-all"><span style="font-size:9.0pt;font-family:"Microsoft YaHei","sans-serif";color:black">On
<span class="mail-date">07/30/2019 01:04</span>,<a href="mailto:erich.cordoba.malibran@intel.com"><span style="color:#2A83F2;text-decoration:none">Cordoba Malibran, Erich<erich.cordoba.malibran@intel.com></span></a> wrote:
<o:p></o:p></span></p>
</div>
</div>
<blockquote id="ntes-pcmail-quote">
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.5pt;font-family:"Microsoft YaHei","sans-serif"">Hi,<br>
<br>
It seems that your mock environment is broken, see this error: <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Microsoft YaHei","sans-serif"">BUILDSTDERR: *** ERROR: DWARF compression requested, but no dwz<br>
installed<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Microsoft YaHei","sans-serif""><br>
<br>
The command that you tried generates a new mock environment and that is<br>
why it builds successfully. If you want to reproduce the issue in the<br>
mock environment that is used by the build system, then use the<br>
following config file: <br>
<br>
$ mock -r $MY_WORKSPACE/std/configs/<your-user>-<your-project>-tis-r5-pike-std/<your-user>-<your-project>-tis-pike-std.b0.cfg
<br>
<br>
And try to find why dwz cannot be installed.<br>
<br>
Alternatively you can just clean the mock environment with the `<br>
--clean` flag and try to build again.<br>
<br>
I hope this can help. <br>
<br>
-Erich <br>
<br>
<br>
On Mon, 2019-07-29 at 14:40 +0800, 胡天昊 wrote:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Microsoft YaHei","sans-serif"">Hi guys,<br>
<br>
Recently I got a problem when I try to build StarlingX ISO.  When I<br>
run the 'build-pkgs' command following the 'stx.2019.05 Build<br>
guide ', I can't build rpm packages successfully.<br>
Followings are errors in build.log.<br>
<br>
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild<br>
-bs --target x86_64 --nodeps /builddir/build/SPECS/sm-common.spec'],<br>
chrootPath='/localdisk/loadbuild/test/starlingx/std/mock/b0/root'env=<br>
{'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir',<br>
'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin',<br>
'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1':<br>
'<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'BUILD_BY':<br>
'test', 'BUILD_DATE': '2019-07-29 04:02:46 +0000', 'REPO':<br>
'/localdisk/designer/test/starlingx/cgcs-root', 'WRS_GIT_BRANCH':<br>
'HEAD', 'CGCS_GIT_BRANCH':<br>
'HEAD'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at<br>
0x7fa58100acf8>timeout=0uid=1001gid=751user='mockbuild'nspawn_args=[]<br>
unshare_net=TrueprintOutput=False)<br>
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs<br>
--target x86_64 --nodeps /builddir/build/SPECS/sm-common.spec'] with<br>
env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir',<br>
'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin',<br>
'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1':<br>
'<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'BUILD_BY':<br>
'test', 'BUILD_DATE': '2019-07-29 04:02:46 +0000', 'REPO':<br>
'/localdisk/designer/test/starlingx/cgcs-root', 'WRS_GIT_BRANCH':<br>
'HEAD', 'CGCS_GIT_BRANCH': 'HEAD'} and shell False<br>
BUILDSTDERR: /etc/profile: line 45: /dev/null: Permission denied<br>
BUILDSTDERR: /etc/profile: line 70: /dev/null: Permission denied<br>
BUILDSTDERR: /etc/profile: line 70: /dev/null: Permission denied<br>
BUILDSTDERR: /etc/profile: line 70: /dev/null: Permission denied<br>
BUILDSTDERR: /etc/profile: line 70: /dev/null: Permission denied<br>
BUILDSTDERR: warning: Macro expanded in comment on line 26: %_unitdir<br>
I think<br>
BUILDSTDERR: warning: Macro expanded in comment on line 111:<br>
%{_unitdir}/*<br>
BUILDSTDERR: warning: Macro expanded in comment on line 112:<br>
%{_bindir}/*<br>
<br>
BUILDSTDERR: /usr/lib/rpm/find-debuginfo.sh: line 272: /dev/null:<br>
Permission denied<br>
BUILDSTDERR: /usr/lib/rpm/find-debuginfo.sh: line 272: /dev/null:<br>
Permission denied<br>
BUILDSTDERR: /usr/lib/rpm/find-debuginfo.sh: line 272: /dev/null:<br>
Permission denied<br>
BUILDSTDERR: /usr/lib/rpm/find-debuginfo.sh: line 272: /dev/null:<br>
Permission denied<br>
BUILDSTDERR: /usr/lib/rpm/find-debuginfo.sh: line 272: /dev/null:<br>
Permission denied<br>
BUILDSTDERR: /usr/lib/rpm/find-debuginfo.sh: line 500: /dev/null:<br>
Permission denied<br>
BUILDSTDERR: *** ERROR: DWARF compression requested, but no dwz<br>
installed<br>
BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.VbkqZP<br>
(%install)<br>
BUILDSTDERR:     Macro expanded in comment on line 26: %_unitdir I<br>
think<br>
BUILDSTDERR:     Macro expanded in comment on line 111: %{_unitdir}/*<br>
BUILDSTDERR:     Macro expanded in comment on line 112: %{_bindir}/*<br>
BUILDSTDERR:     Bad exit status from /var/tmp/rpm-tmp.VbkqZP<br>
(%install)<br>
RPM build errors:<br>
Child return code was: 1<br>
EXCEPTION: [Error()]<br>
Traceback (most recent call last):<br>
File "/usr/lib/python3.6/site-<br>
packages/mockbuild/trace_decorator.py", line 96, in trace<br>
result = func(*args, **kw)<br>
File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line<br>
736, in do_with_status<br>
raise exception.Error("Command failed: \n # %s\n%s" % (command,<br>
output), child.returncode)<br>
mockbuild.exception.Error: Command failed:<br>
# bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps<br>
/builddir/build/SPECS/sm-common.spec<br>
<br>
<br>
But if I run the 'sudo mock -r test-starlingx-tis-r5-pike-std.cfg sm-<br>
common-1.0.0-20.tis.src.rpm' command, rpm packages can be built<br>
successfully.<br>
I think this is probably a permission problem. But even I change<br>
owner and group of these files, the 'build-pkgs' command still failed<br>
for same reason.<br>
I really can't understand this problem,can anybody give me some<br>
comments for it? <br>
<br>
Thanks<br>
Tianhao<br>
<br>
_______________________________________________<br>
Starlingx-discuss mailing list<br>
Starlingx-discuss@lists.starlingx.io<br>
http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss<o:p></o:p></span></p>
</blockquote>
</div>
</div>
</body>
</html>