<div dir="ltr">Hi Mark,<div><br></div><div>Thank you for your reply.</div><div><br></div><div>i am getting below error If i comment <span style="font-size:12.8px"> </span><span style="font-size:12.8px">INHIBIT_PACKAGE_STRIP in meta-linaro/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/<a href="http://external-linaro-toolchain.bb">external-linaro-toolchain.bb</a> file.</span></div><div><span style="font-size:12.8px"><br></span></div><div><div><span style="font-size:12.8px"><font color="#ff0000">ERROR: external-linaro-toolchain-2017.01~dev-r0.arago30 do_package: Error executing a python function in exec_python_func() autogenerated:</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"><br></font></span></div><div><span style="font-size:12.8px"><font color="#ff0000">The stack trace of python calls that resulted in this exception/failure was:</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000">File: 'exec_python_func() autogenerated', lineno: 2, function: <module></font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0001:</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> *** 0002:split_and_strip_files(d)</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0003:</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000">File: '/home/prashant.a/yocto/tisdk/sources/oe-core/meta/classes/package.bbclass', lineno: 921, function: split_and_strip_files</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0917: if debugdir and debugdir in os.path.dirname(file[len(dvar):]):</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0918: continue</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0919:</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0920: try:</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> *** 0921: ltarget = cpath.realpath(file, dvar, False)</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0922: s = cpath.lstat(ltarget)</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0923: except OSError as e:</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0924: (err, strerror) = e.args</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0925: if err != errno.ENOENT:</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000">File: '/home/prashant.a/yocto/tisdk/sources/oe-core/meta/lib/oe/cachedpath.py', lineno: 229, function: realpath</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0225: # be printed a backtrace with 100s of OSError exceptions</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0226: # else</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0227: raise OSError(errno.ELOOP,</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0228: "too much recursions while resolving '%s'; loop in '%s'" %</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> *** 0229: (file, e.strerror))</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0230:</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0231: raise</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0232:</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"> 0233: return file</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000">Exception: OSError: [Errno 40] too much recursions while resolving '/home/prashant.a/yocto/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5-linux-gnueabi/external-linaro-toolchain/2017.01~dev-r0.arago30/package/usr/include/c++/6.2.1/arm-linux-gnueabi/arm-linux-gnueabi'; loop in '/home/prashant.a/yocto/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5-linux-gnueabi/external-linaro-toolchain/2017.01~dev-r0.arago30/package/usr/include/c++/6.2.1/arm-linux-gnueabi/arm-linux-gnueabi'</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000"><br></font></span></div><div><span style="font-size:12.8px"><font color="#ff0000">ERROR: external-linaro-toolchain-2017.01~dev-r0.arago30 do_package: Function failed: split_and_strip_files</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000">ERROR: Logfile of failure stored in: /home/prashant.a/yocto/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv5-linux-gnueabi/external-linaro-toolchain/2017.01~dev-r0.arago30/temp/log.do_package.15476</font></span></div><div><span style="font-size:12.8px"><font color="#ff0000">ERROR: Task 465 (/home/prashant.a/yocto/tisdk/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/<a href="http://external-linaro-toolchain.bb">external-linaro-toolchain.bb</a>, do_package) failed with exit code '1'</font></span></div><div style="font-size:12.8px"><br></div></div><div style="font-size:12.8px"><br></div><div><span style="font-size:12.8px">Is there any way to </span><span style="color:rgb(0,0,0)">reduce <b>ncurses terminfo</b> size because it consume 7MB?</span></div><div><font color="#000000"><br></font></div><div><font color="#000000">Thank you in advance.</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Regards,</font></div><div><font color="#000000">Prashant<br></font><span style="font-size:12.8px"> </span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 3, 2017 at 8:50 PM, Mark Hatle <span dir="ltr"><<a href="mailto:mark.hatle@windriver.com" target="_blank">mark.hatle@windriver.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2/3/17 6:25 AM, ANDANI PRASHANT wrote:<br>
> Hi,<br>
><br>
> I build rootfs which size is 100MB+<br>
</span>> As i look in to filesystem, there are 14mb <a href="http://libc-2.23.so" rel="noreferrer" target="_blank">libc-2.23.so</a> <<a href="http://libc-2.23.so" rel="noreferrer" target="_blank">http://libc-2.23.so</a>>,<br>
<span class="">> 12mb libstdc++.so.6.0.22,..etc.<br>
> Is there any flag or option during build to strip all library and binary to<br>
> optimise size of rootfs.<br>
<br>
</span>The default is that everything is stripped (actually split into stripped<br>
executable and debug addition). The stripped pieces are installed into your<br>
rootfs, and the debug pieces are not. (Unless you've added dbg-pkgs to your<br>
configuration.)<br>
<br>
The default optimization flag should be more then enough to get a consistent<br>
well optimized system.<br>
<br>
Where you will run into issues is if you, or one of the layers you are using<br>
disables the splitting or enables global debug optimizations (lower optimization<br>
levels.)<br>
<br>
This is what you want to check for:<br>
<br>
# Uncomment this to change the optimization to make debugging easer, at the<br>
# possible cost of performance.<br>
# DEBUG_BUILD = "1"<br>
#<br>
# Uncomment this to disable the stripping of the installed binaries<br>
# INHIBIT_PACKAGE_STRIP = "1"<br>
#<br>
# Uncomment this to disable the split of the debug information into -dbg files<br>
# INHIBIT_PACKAGE_DEBUG_SPLIT = "1"<br>
<br>
You can use bitbake -e to investigate the values for the system as a whole, or<br>
specify a recipe to look at a specific item.<br>
<br>
--Mark<br>
<br>
> Regards,<br>
> Prashant<br>
><br>
><br>
<br>
</blockquote></div><br></div>