diff mbox

Fix Cygwin bootstrap failing to find win32 libraries

Message ID 55F95595.2040907@gmail.com
State New
Headers show

Commit Message

Jonathan Yong Sept. 16, 2015, 11:42 a.m. UTC
libgcc is failing to find kerne32 etc during the 2nd stage when
bootstraping, explicitly add w32api directory to search path.

Patch OK?

Comments

Jonathan Yong Sept. 19, 2015, 11:32 p.m. UTC | #1
On 9/20/2015 02:52, Kai Tietz wrote:
> Hello JonY,
> 
> patch is ok with proper ChangeLog.
> 
> Thanks,
> Kai
> Am 16.09.2015 13:42 schrieb "JonY" <10walls@gmail.com>:
> 

Explicitly search sysroot/usr/lib/32api for additional win32 libraries,
fixes failing Cygwin bootstrapping.

How is that?

>> libgcc is failing to find kerne32 etc during the 2nd stage when
>> bootstraping, explicitly add w32api directory to search path.
>>
>> Patch OK?
>>
>> diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h
>> index 2a2a0bf..fd3bc0a 100644
>> --- a/gcc/config/i386/cygwin.h
>> +++ b/gcc/config/i386/cygwin.h
>> @@ -39,6 +39,7 @@ along with GCC; see the file COPYING3.  If not see
>>
>>  #undef STARTFILE_SPEC
>>  #define STARTFILE_SPEC "\
>> +  -L%R/usr/lib/w32api \
>>    %{!shared: %{!mdll: crt0%O%s \
>>    %{pg:gcrt0%O%s}}}\
>>    %{shared:crtbeginS.o%s;:crtbegin.o%s} \
>>
>>
>>
>
Kai Tietz Sept. 20, 2015, 6:05 p.m. UTC | #2
2015-09-16 13:42 GMT+02:00 JonY <10walls@gmail.com>:
> libgcc is failing to find kerne32 etc during the 2nd stage when
> bootstraping, explicitly add w32api directory to search path.
>
> Patch OK?
>
> diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h
> index 2a2a0bf..fd3bc0a 100644
> --- a/gcc/config/i386/cygwin.h
> +++ b/gcc/config/i386/cygwin.h
> @@ -39,6 +39,7 @@ along with GCC; see the file COPYING3.  If not see
>
>  #undef STARTFILE_SPEC
>  #define STARTFILE_SPEC "\
> +  -L%R/usr/lib/w32api \
>    %{!shared: %{!mdll: crt0%O%s \
>    %{pg:gcrt0%O%s}}}\
>    %{shared:crtbeginS.o%s;:crtbegin.o%s} \
>
>

Hello JonY,

patch is ok with proper ChangeLog.  For sample of format see existing
ChangeLog files in gcc-subdirectory.

Thanks,
Kai
Jonathan Yong Sept. 20, 2015, 10:35 p.m. UTC | #3
On 9/21/2015 02:05, Kai Tietz wrote:
> 2015-09-16 13:42 GMT+02:00 JonY <10walls@gmail.com>:
>> libgcc is failing to find kerne32 etc during the 2nd stage when
>> bootstraping, explicitly add w32api directory to search path.
>>
>> Patch OK?
>>
>> diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h
>> index 2a2a0bf..fd3bc0a 100644
>> --- a/gcc/config/i386/cygwin.h
>> +++ b/gcc/config/i386/cygwin.h
>> @@ -39,6 +39,7 @@ along with GCC; see the file COPYING3.  If not see
>>
>>  #undef STARTFILE_SPEC
>>  #define STARTFILE_SPEC "\
>> +  -L%R/usr/lib/w32api \
>>    %{!shared: %{!mdll: crt0%O%s \
>>    %{pg:gcrt0%O%s}}}\
>>    %{shared:crtbeginS.o%s;:crtbegin.o%s} \
>>
>>
> 
> Hello JonY,
> 
> patch is ok with proper ChangeLog.  For sample of format see existing
> ChangeLog files in gcc-subdirectory.
> 
> Thanks,
> Kai
> 

2015-09-16  Jonathan Yong  <10walls@gmail.com>

        * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
          sysroot/usr/lib/32api for additional win32 libraries,
          fixes failing Cygwin bootstrapping.

Message OK?
Kai Tietz Sept. 21, 2015, 9:59 a.m. UTC | #4
2015-09-21 0:35 GMT+02:00 JonY <10walls@gmail.com>:
> On 9/21/2015 02:05, Kai Tietz wrote:
>> 2015-09-16 13:42 GMT+02:00 JonY <10walls@gmail.com>:
>>> libgcc is failing to find kerne32 etc during the 2nd stage when
>>> bootstraping, explicitly add w32api directory to search path.
>>>
>>> Patch OK?
>>>
>>> diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h
>>> index 2a2a0bf..fd3bc0a 100644
>>> --- a/gcc/config/i386/cygwin.h
>>> +++ b/gcc/config/i386/cygwin.h
>>> @@ -39,6 +39,7 @@ along with GCC; see the file COPYING3.  If not see
>>>
>>>  #undef STARTFILE_SPEC
>>>  #define STARTFILE_SPEC "\
>>> +  -L%R/usr/lib/w32api \
>>>    %{!shared: %{!mdll: crt0%O%s \
>>>    %{pg:gcrt0%O%s}}}\
>>>    %{shared:crtbeginS.o%s;:crtbegin.o%s} \
>>>
>>>
>>
>> Hello JonY,
>>
>> patch is ok with proper ChangeLog.  For sample of format see existing
>> ChangeLog files in gcc-subdirectory.
>>
>> Thanks,
>> Kai
>>
>
> 2015-09-16  Jonathan Yong  <10walls@gmail.com>
>
>         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
>           sysroot/usr/lib/32api for additional win32 libraries,
>           fixes failing Cygwin bootstrapping.
>
> Message OK?
>

Committed for you at rev. 227962.

Kai
diff mbox

Patch

diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h
index 2a2a0bf..fd3bc0a 100644
--- a/gcc/config/i386/cygwin.h
+++ b/gcc/config/i386/cygwin.h
@@ -39,6 +39,7 @@  along with GCC; see the file COPYING3.  If not see

 #undef STARTFILE_SPEC
 #define STARTFILE_SPEC "\
+  -L%R/usr/lib/w32api \
   %{!shared: %{!mdll: crt0%O%s \
   %{pg:gcrt0%O%s}}}\
   %{shared:crtbeginS.o%s;:crtbegin.o%s} \