<html>
<head>
    <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
</head>
<body>
<style>
    font{
        line-height: 1.6;
    }
    ul,ol{
        padding-left: 20px;
        list-style-position: inside;
    }
</style>
<div style = 'font-family:Helvetica,Helvetica,微软雅黑, 宋体; line-height:1.6;'>
    <div ></div><div>
    <div>Hi Erich,</div><div><br></div><div>Thank you so much for your reply. I have tried to run the command <font color="#3d3d3d" face="Arial, sans-serif"><span style="caret-color: rgb(61, 61, 61); font-size: 12px;">“</span></font><span style="font-family: Helvetica, 微软雅黑, 宋体;">$ mock -r $MY_WORKSPACE/std/configs/<my-user>-<my-project>-tis-r5-pike-std/<my-user>-<my-project>-tis-pike-std.b0.cfg </span><font color="#3d3d3d" face="Arial, sans-serif"><span style="caret-color: rgb(61, 61, 61); font-size: 12px;">”  </span></font>and it still fails to build rpm packages. <span style="font-family: Helvetica, 微软雅黑, 宋体;">Also I </span><span style="font-family: Helvetica, 微软雅黑, 宋体;">clean the mock environment with the `</span><span style="font-family: Helvetica, 微软雅黑, 宋体;">--clean` flag and try to build again. E</span>rrors are just same as last time I tried, and I still try to figure out why <span style="font-family: Helvetica, 微软雅黑, 宋体;">dwz cannot be installed. </span></div><div><span style="font-family: Helvetica, 微软雅黑, 宋体;"><br></span></div><div><span style="font-family: Helvetica, 微软雅黑, 宋体;">Thanks again,</span></div><div><span style="font-family: Helvetica, 微软雅黑, 宋体;">Tianhao</span></div><div><br></div>
</div><div class="J-reply" style="background-color:#f2f2f2;color:black;padding-top:6px;padding-bottom:6px;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;margin-top:45px;margin-bottom:20px;font-family:''Helvetica','Microsoft Yahei', '微软雅黑'';">
    <div style="font-size:12px;line-height:1.6;word-break:break-all;margin-left:10px;margin-right:10px">On <span class="mail-date">07/30/2019 01:04</span>,<a class="mail-to" style="text-decoration:none;color:#2a83f2;" href="mailto:erich.cordoba.malibran@intel.com">Cordoba Malibran, Erich<erich.cordoba.malibran@intel.com></a> wrote: </div>
</div>
<blockquote id="ntes-pcmail-quote" style="margin: 0; padding: 0; font-size: 14px; font-family: ''Helvetica','Microsoft Yahei', '微软雅黑'';">
Hi,<br><br>It seems that your mock environment is broken, see this error: <br><br> <blockquote class="mmbqc1">BUILDSTDERR: *** ERROR: DWARF compression requested, but no dwz<br> installed<br></blockquote><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:<br> <blockquote class="mmbqc1">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</blockquote></blockquote><!--�-->
</div>
</body>
</html>