<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><span style="caret-color: rgb(49, 53, 59); color: rgb(49, 53, 59); font-family: Helvetica, 微软雅黑, 宋体;">Hi guys,</span><br style="caret-color: rgb(49, 53, 59); color: rgb(49, 53, 59); font-family: Helvetica, 微软雅黑, 宋体;" /><br style="caret-color: rgb(49, 53, 59); color: rgb(49, 53, 59); font-family: Helvetica, 微软雅黑, 宋体;" /><div><span style="caret-color: rgb(49, 53, 59); color: rgb(49, 53, 59); font-family: Helvetica, 微软雅黑, 宋体;">Recently I got a problem when I try to build StarlingX </span>ISO.<span style="caret-color: rgb(49, 53, 59); color: rgb(49, 53, 59); font-family: Helvetica, 微软雅黑, 宋体;">  When I run the '</span><font color="#31353b" face="Helvetica, 微软雅黑, 宋体">build-pkgs' command following the 'stx.2019.05 </font><span style="caret-color: rgb(49, 53, 59); color: rgb(49, 53, 59); font-family: Helvetica, 微软雅黑, 宋体;">Build guide </span><span style="color: rgb(49, 53, 59); font-family: Helvetica, 微软雅黑, 宋体;">', I can't build rpm packages successfully.</span></div><div><font color="#31353b" face="Helvetica, 微软雅黑, 宋体">Followings are errors in build.log.</font></div><div><font color="#31353b" face="Helvetica, 微软雅黑, 宋体"><br /></font></div><div><div>ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/sm-common.spec'], chrootPath='/localdisk/loadbuild/test/starlingx/std/mock/b0/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'BUILD_BY': 'test', 'BUILD_DATE': '2019-07-29 04:02:46 +0000', 'REPO': '/localdisk/designer/test/starlingx/cgcs-root', 'WRS_GIT_BRANCH': 'HEAD', 'CGCS_GIT_BRANCH': 'HEAD'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7fa58100acf8>timeout=0uid=1001gid=751user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)</div><div>Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/sm-common.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'BUILD_BY': 'test', 'BUILD_DATE': '2019-07-29 04:02:46 +0000', 'REPO': '/localdisk/designer/test/starlingx/cgcs-root', 'WRS_GIT_BRANCH': 'HEAD', 'CGCS_GIT_BRANCH': 'HEAD'} and shell False</div><div>BUILDSTDERR: /etc/profile: line 45: /dev/null: Permission denied</div><div>BUILDSTDERR: /etc/profile: line 70: /dev/null: Permission denied</div><div>BUILDSTDERR: /etc/profile: line 70: /dev/null: Permission denied</div><div>BUILDSTDERR: /etc/profile: line 70: /dev/null: Permission denied</div><div>BUILDSTDERR: /etc/profile: line 70: /dev/null: Permission denied</div><div>BUILDSTDERR: warning: Macro expanded in comment on line 26: %_unitdir I think</div><div>BUILDSTDERR: warning: Macro expanded in comment on line 111: %{_unitdir}/*</div><div>BUILDSTDERR: warning: Macro expanded in comment on line 112: %{_bindir}/*</div></div><div><br /></div><div><div>BUILDSTDERR: /usr/lib/rpm/find-debuginfo.sh: line 272: /dev/null: Permission denied</div><div>BUILDSTDERR: /usr/lib/rpm/find-debuginfo.sh: line 272: /dev/null: Permission denied</div><div>BUILDSTDERR: /usr/lib/rpm/find-debuginfo.sh: line 272: /dev/null: Permission denied</div><div>BUILDSTDERR: /usr/lib/rpm/find-debuginfo.sh: line 272: /dev/null: Permission denied</div><div>BUILDSTDERR: /usr/lib/rpm/find-debuginfo.sh: line 272: /dev/null: Permission denied</div><div>BUILDSTDERR: /usr/lib/rpm/find-debuginfo.sh: line 500: /dev/null: Permission denied</div><div>BUILDSTDERR: *** ERROR: DWARF compression requested, but no dwz installed</div><div>BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.VbkqZP (%install)</div><div>BUILDSTDERR:     Macro expanded in comment on line 26: %_unitdir I think</div><div>BUILDSTDERR:     Macro expanded in comment on line 111: %{_unitdir}/*</div><div>BUILDSTDERR:     Macro expanded in comment on line 112: %{_bindir}/*</div><div>BUILDSTDERR:     Bad exit status from /var/tmp/rpm-tmp.VbkqZP (%install)</div><div>RPM build errors:</div><div>Child return code was: 1</div><div>EXCEPTION: [Error()]</div><div>Traceback (most recent call last):</div><div>  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace</div><div>    result = func(*args, **kw)</div><div>  File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 736, in do_with_status</div><div>    raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode)</div><div>mockbuild.exception.Error: Command failed:</div><div> # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/sm-common.spec</div></div><div><br /></div><div><br /></div><div>But if I run the 'sudo mock -r test-starlingx-tis-r5-pike-std.cfg sm-common-1.0.0-20.tis.src.rpm' command, rpm packages can be built successfully.</div><div>I think this is probably a permission problem. But even I change owner and group of these files, the 'build-pkgs' command still failed for same reason.</div><div>I really can't understand this problem,can anybody give me some comments for it? </div><div><br /></div><div>Thanks</div><div>Tianhao</div></div><br>