RTEMS 4.11.0 build fails on Windows

Linda Huxley lhuxley at shaw.ca
Wed Apr 12 02:31:12 UTC 2017


Thanks Chris,

 > Is this a log fragment from the RSB?

Yes.  There are 4 patches in Worth's patch file.  That is just the piece 
of the log that shows the problem with the first patch.  (All 4 patches 
have the same problem.)

My command line looks like this:

/c/opt/rtems/4.11.0/rtems $ ../source-builder/sb-set-builder 
--prefix=/opt/rtems/4.11.0 4.11/rtems-sparc --jobs=none

 > The patches are in `patches` below `rtems` in the RSB. The script
 > knows this and should handle it.

Yes, I have placed the modified patch file here (I have no rsb directory):

/c/opt/rtems/4.11.0/rtems/patches $ ls
automake-1.12.6-bugzilla.redhat.com-1239379.diff  gcc-4.9.3-20170404-1.patch

Regards,

Linda

On 2017-04-11 18:35, Chris Johns wrote:
> On 12/04/2017 09:24, Linda Huxley wrote:
>>> That is fine. Please ask any questions, I am more than happy to help.
>>
>> Thanks Chris,
>>
>> Well, I could use some help getting Worth's patch to work.  I have tried
>> making the obvious changes to his patch and I'm still getting a
>> "can't find a file to patch" error.  For example, after inserting
>> "/../gcc-4.9.3" into the difference commands in the patch file, I'm
>> seeing the following message from the first difference in the patch:
>>
>> + cd newlib-2.2.0.20150423
>> + chmod -R a+rX,g-w,o-w .
>> + cat /C/opt/rtems/4.11.0/rtems/patches/gcc-4.9.3-20170404-1.patch
>> + patch -p1
>> can't find file to patch at input line 4
>> Perhaps you used the wrong -p or --strip option?
>> The text leading up to this was:
>> --------------------------
>> |diff -Naur gcc-4.9.3-orig/../gcc-4.9.3/gcc/cp/cfns.gperf
>> gcc-4.9.3-fixed/../gcc-4.9.3/gcc/cp/cfns.gperf
>> |--- gcc-4.9.3-orig/../gcc-4.9.3/gcc/cp/cfns.gperf    2014-01-02
>> 17:23:26.000000000 -0500
>> |+++ gcc-4.9.3-fixed/../gcc-4.9.3/gcc/cp/cfns.gperf    2017-04-04
>> 14:35:14.729966600 -0400
>> --------------------------
>> File to patch:
>> Skip this patch? [y]
>> Skipping patch.
>> 2 out of 2 hunks ignored
>>
>> I'd like to know if I'm interpreting the log correctly.
>>
>
> Is this a log fragment from the RSB?
>
>> I am building from this directory:
>>
>> /c/opt/rtems/4.11.0/rtems/
>>
>> Can I assume that the script is in the following directory after the
>> first command that was logged above?:
>>
>> /c/opt/rtems/4.11.0/rtems/build/srg4n2xwm1/newlib-2.2.0.20150423
>>
>
> The patches are in `patches` below `rtems` in the RSB. The script knows
> this and should handle it.
>
>> I can see the target file for the first difference here:
>>
>> /c/opt/rtems/4.11.0/rtems/build/srg4n2xwm1/gcc-4.9.3/gcc/cp/cfns.gperf
>>
>> Do you have any idea about what I might be doing wrong?
>
> Not yet. I ma creating a box to test on. My Windows VM is busy doing
> other things and I have not wanted to update MSYS2 so I have been
> building a Windows box to test builds on. Once it is running I will take
> a look.
>
> Chris
>



More information about the users mailing list