Web lists-archives.com

Re: Cross build of newlib-cygwin release tag cygwin-2_11_1-release.





On 10/30/2018 4:32 PM, Corinna Vinschen wrote:
> On Oct 30 16:01, Earnest Boyd wrote:
>> On 10/30/2018 3:31 PM, cyg Simple wrote:
>>> On 10/30/2018 11:03 AM, cyg Simple wrote:
>>>> PING... Does no one have an idea?
>>>>
>>>> On 10/29/2018 12:09 PM, cyg Simple wrote:
>>>>> I'm trying to cross build the Cygwin source on a VirtualBox Arch Linux
>>>>> with GCC-7.3.0 and Binutils 2.31. The process I am using clones the
>>>>> master repository and then does a checkout of the release tag.  Here is
>>>>> the configure command from the head of the config.log.
>>>>>
>>>>> ```
>>>>> $ head /home/cygsimple/src/sf/build/newlib-cygwin/build/config.log |
>>>>> grep newlib-cygwin-2.11.1/configure
>>>>> $
>>>>> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/configure
>>>>> --prefix=/usr --host=x86_64-pc-cygwin --build=x86_64-pc-linux-gnu
>>>>> --target=x86_64-pc-cygwin --sysconfdir=/etc --sharedstatedir=/var
>>>>> --localstatedir=/var
>>>>> ```
>>>>>
>>>
>>> I tried this on the master Cygwin and get the same error.
>>>
>>> ```
>>> $ head config.log | grep newlib-cygwin
>>>   $
>>> /usr/local/src/cygsimple/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/configure
>>> --prefix=/usr --host=x86_64-pc-cygwin --build=x86_64-pc-cygwin
>>> --target=x86_64-pc-cygwin --sysconfdir=/etc --sharedstatedir=/var
>>> --localstatedir=/var
>>> ```
>>>
>>> What configuration item should I add to avoid this?
>>>
>>
>> Patching winsup/cygwin/Makefile.in to remove -Werror allows this to
>> build though the warnings continue.  But how does Corinna do this?
> 
> No special settings.  But this:
> 
>>>>> c++wrap -pedantic -fomit-frame-pointer -m64 -O2 -g -fno-rtti
>               ^^^^^^^^^                      ^^^^
> Looks weird.  We don't use neither pedantic nor m64 and from the above
> it seems you didn't specify them explicitely either.  So where are they
> coming from?  "pedantic" may explain the error.  What linux-cygwin cross
> gcc are you using?  Looks like you're not using the right one.

It's specified in winsup/cygwin/Makefile.in

The cross is my private build but that doesn't matter, the issue happens
in a native build as well.

-- 
cyg Simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple