<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 21, 2019, 9:19 PM Gedare Bloom <<a href="mailto:gedare@rtems.org">gedare@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Jun 21, 2019 at 2:37 AM Vaibhav Gupta <<a href="mailto:vaibhavgupta40@gmail.com" target="_blank" rel="noreferrer">vaibhavgupta40@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
> I figured it out.<br>
> .<br>
> Below is the output given by shell<br>
> ......<br>
> ......<br>
> ......<br>
> config: tools/rtems-gcc-7.4.0-newlib-1d35a003f.cfg<br>
> warning: rtems-gcc-7.4.0-newlib-1d35a003f.cfg:29: invalid format: '%setup patch newlib -p'<br>
> error: gcc-common-1.cfg:80: %patch already setup source: newlib -p1<br>
> Build FAILED<br>
> Build Set: Time 0:06:29.257451<br>
> Build FAILED<br>
> .<br>
> .<br>
> .<br>
> .<br>
> I realized, the name of group of my patch and the source of newlib-source was same in rtems-gcc-7.4.0-newlib-1d35a003f.cfg. Also, I had put "%patch setup" statement before "%patch add" .<br>
> .<br>
<br>
This seems odd. The "rules" around patching need to be clarified in<br>
the documentation.<br></blockquote></div></div><div dir="auto">If there is some technical modification, I am not sure. But some steps are missing. After successful port and testsuite, I will update the documentation. </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
> .<br>
> .<br>
> Here is the new git-diff. This got compiled successfully<br>
> diff --git a/rtems/config/tools/rtems-gcc-7.4.0-newlib-1d35a003f.cfg b/rtems/config/tools/rtems-gcc-7.4.0-newlib-1d35a003f.cfg<br>
> index b28a4b1..5c5c346 100644<br>
> --- a/rtems/config/tools/rtems-gcc-7.4.0-newlib-1d35a003f.cfg<br>
> +++ b/rtems/config/tools/rtems-gcc-7.4.0-newlib-1d35a003f.cfg<br>
> @@ -23,6 +23,11 @@<br>
> %source set newlib --rsb-file=newlib-%{newlib_version}.tar.gz <a href="https://codeload.github.com/RTEMS/sourceware-mirror-newlib-cygwin/tar.gz/%%7Bnewlib_version%7D" rel="noreferrer noreferrer" target="_blank">https://codeload.github.com/RTEMS/sourceware-mirror-newlib-cygwin/tar.gz/%{newlib_version}</a><br>
> %hash sha512 newlib-%{newlib_version}.tar.gz eb5943b207eca05fde4497c29491bbd3d07624e4becb410640ae8e177bd9212ca06cf726ee3882d6db5758cd03daf1462715e4b9b404abcc8f7cee5f811fd48b<br>
><br>
> +%patch add newlib_ndbm file://0001-Port-ndbm.patch<br>
> +%hash sha512 0001-Port-ndbm.patch 0e05d97d0a6f8a436a233fe4fb3cbda7c0cfeab11cfda1c155d8aa5b80289f386896b0e8c28e5858e1d7409fd22c8d1cbaaccb181bc376845fe6d50b16359db6<br>
> +<br>
> +%patch setup newlib_ndbm -p1<br>
> +<br>
> %define isl_version 0.16.1<br>
> %hash sha512 isl-%{isl_version}.tar.bz2 c188667a84dc5bdddb4ab7c35f89c91bf15a8171f4fcaf41301cf285fb7328846d9a367c096012fec4cc69d244f0bc9e95d84c09ec097394cd4093076f2a041b<br>
><br>
> @@ -40,3 +45,4 @@<br>
> %define with_iconv 1<br>
><br>
> %include %{_configdir}/gcc-7.2-1.cfg<br>
><br>
><br>
> On Fri, Jun 21, 2019 at 4:25 AM Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank" rel="noreferrer">chrisj@rtems.org</a>> wrote:<br>
>><br>
>> On 21/6/19 4:43 am, Gedare Bloom wrote:<br>
>> > On Thu, Jun 20, 2019 at 11:32 AM Vaibhav Gupta <<a href="mailto:vaibhavgupta40@gmail.com" target="_blank" rel="noreferrer">vaibhavgupta40@gmail.com</a>> wrote:<br>
>> >> + /bin/cat /home/varodek/development/rtems/rsb/rtems/patches/0001-Port-ndbm.patch<br>
>> >> + /usr/bin/patch -p3<br>
>> ><br>
>> > This is the problem, the -p3 is wrong. I don't know where this is<br>
>> > coming from though.<br>
>><br>
>> This must be from a `%patch` statement. The RSB has no preset patch options and<br>
>> there is no `-p3` in my repo.<br>
>><br>
>> I suggest you run with --trace and then look at the macro maps to see where is<br>
>> it is coming from.<br>
>><br>
>> Chris<br>
</blockquote></div></div></div>