[bug report] cygwin 1.7 compiling error

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug report] cygwin 1.7 compiling error

Sean-130
Hi,

I used to have this simple command to build my own gVim.exe (cygwin
independent) for Windows:

vim123()    { cd /usr/share/vim && svn co https://vim.svn.sourceforge.net/svnroot/vim/vim7
&& cd vim7/src && make -f Make_cyg.mak; }

However, I found error after downloading cygwin 1.7:

...
A    vim7/README_lang.txt
A    vim7/runtime.info
...
Checked out revision 1711.
mkdir -p gobj
gcc -c -O3 -fomit-frame-pointer -freg-struct-return -fno-strength-
reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_BIG -DWINVER=0x0400 -
D_WIN32_WINNT=0x0400 -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV -DFEAT_MBYTE -
DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -
DFEAT_GUI_W32 -DFEAT_CLIPBOARD -march=i386 -Iproto -s -mno-cygwin
buffer.c -o gobj/buffer.o
gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-
compiler.

make: *** [gobj/buffer.o] Error 1

Any idea?

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: cygwin 1.7 compiling error

Sean-130
Actually, I found a workaround, by making one change to Make_cyg.mak:

[old]
CC = gcc

[new]
CC = gcc-3

I could then build my own gvim.exe for Windows

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: [bug report] cygwin 1.7 compiling error

Bram Moolenaar
In reply to this post by Sean-130

Sean Ma wrote:

> I used to have this simple command to build my own gVim.exe (cygwin
> independent) for Windows:
>
> vim123()    { cd /usr/share/vim && svn co https://vim.svn.sourceforge.net/svnroot/vim/vim7
> && cd vim7/src && make -f Make_cyg.mak; }
>
> However, I found error after downloading cygwin 1.7:
>
> ...
> A    vim7/README_lang.txt
> A    vim7/runtime.info
> ...
> Checked out revision 1711.
> mkdir -p gobj
> gcc -c -O3 -fomit-frame-pointer -freg-struct-return -fno-strength-
> reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_BIG -DWINVER=0x0400 -
> D_WIN32_WINNT=0x0400 -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV -DFEAT_MBYTE -
> DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -
> DFEAT_GUI_W32 -DFEAT_CLIPBOARD -march=i386 -Iproto -s -mno-cygwin
> buffer.c -o gobj/buffer.o
> gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-
> compiler.
>
> make: *** [gobj/buffer.o] Error 1
>
> Any idea?
I think this tells you to use the MingW compiler instead of the Cygwin
one.  The MingW compiler is for building native MS-Windows apps, without
the Cygwin runtime.  I though the -mno-cygwin argument had the same
intention.  Perhaps they removed support for that to simplify
maintenance of the compiler.

--
From "know your smileys":
 % Bike accident.  A bit far-fetched, I suppose; although...
             o      _     _         _
     _o     /\_   _ \\o  (_)\__/o  (_)
   _< \_   _>(_) (_)/<_    \_| \   _|/' \/
  (_)>(_) (_)        (_)   (_)    (_)'  _\o_

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: [bug report] cygwin 1.7 compiling error

Matt Wozniski-2
On Sun, Jan 10, 2010 at 9:22 AM, Bram Moolenaar wrote:

>
> Sean Ma wrote:
>
>> I used to have this simple command to build my own gVim.exe (cygwin
>> independent) for Windows:
>>
>> vim123()    { cd /usr/share/vim && svn co https://vim.svn.sourceforge.net/svnroot/vim/vim7
>> && cd vim7/src && make -f Make_cyg.mak; }
>>
>> However, I found error after downloading cygwin 1.7:
>>
>> ...
>> A    vim7/README_lang.txt
>> A    vim7/runtime.info
>> ...
>> Checked out revision 1711.
>> mkdir -p gobj
>> gcc -c -O3 -fomit-frame-pointer -freg-struct-return -fno-strength-
>> reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_BIG -DWINVER=0x0400 -
>> D_WIN32_WINNT=0x0400 -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV -DFEAT_MBYTE -
>> DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -
>> DFEAT_GUI_W32 -DFEAT_CLIPBOARD -march=i386 -Iproto -s -mno-cygwin
>> buffer.c -o gobj/buffer.o
>> gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-
>> compiler.
>>
>> make: *** [gobj/buffer.o] Error 1
>>
>> Any idea?
>
> I think this tells you to use the MingW compiler instead of the Cygwin
> one.  The MingW compiler is for building native MS-Windows apps, without
> the Cygwin runtime.  I though the -mno-cygwin argument had the same
> intention.  Perhaps they removed support for that to simplify
> maintenance of the compiler.
Yes, it has been removed - not just for simpler maintenance, but also
because it was impossible to make it work properly in certain edge
cases.

~Matt

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: [bug report] cygwin 1.7 compiling error

Bram Moolenaar

Matt Wozniski wrote:

> On Sun, Jan 10, 2010 at 9:22 AM, Bram Moolenaar wrote:
> >
> > Sean Ma wrote:
> >
> >> I used to have this simple command to build my own gVim.exe (cygwin
> >> independent) for Windows:
> >>
> >> vim123() Â  Â { cd /usr/share/vim && svn co https://vim.svn.sourceforge.net/svnroot/vim/vim7
> >> && cd vim7/src && make -f Make_cyg.mak; }
> >>
> >> However, I found error after downloading cygwin 1.7:
> >>
> >> ...
> >> A Â  Â vim7/README_lang.txt
> >> A Â  Â vim7/runtime.info
> >> ...
> >> Checked out revision 1711.
> >> mkdir -p gobj
> >> gcc -c -O3 -fomit-frame-pointer -freg-struct-return -fno-strength-
> >> reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_BIG -DWINVER=0x0400 -
> >> D_WIN32_WINNT=0x0400 -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV -DFEAT_MBYTE -
> >> DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -
> >> DFEAT_GUI_W32 -DFEAT_CLIPBOARD -march=i386 -Iproto -s -mno-cygwin
> >> buffer.c -o gobj/buffer.o
> >> gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-
> >> compiler.
> >>
> >> make: *** [gobj/buffer.o] Error 1
> >>
> >> Any idea?
> >
> > I think this tells you to use the MingW compiler instead of the Cygwin
> > one. Â The MingW compiler is for building native MS-Windows apps, without
> > the Cygwin runtime. Â I though the -mno-cygwin argument had the same
> > intention. Â Perhaps they removed support for that to simplify
> > maintenance of the compiler.
>
> Yes, it has been removed - not just for simpler maintenance, but also
> because it was impossible to make it work properly in certain edge
> cases.
How widespread is this version of Cygwin?  If more than 50% then we
should make the default for USEDLL "yes".  The current default is "no".

--
I AM THANKFUL...
...for a lawn that needs mowing, windows that need cleaning
and gutters that need fixing because it means I have a home.

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: cygwin 1.7 compiling error

Sean-130


On Jan 11, 12:27 pm, Bram Moolenaar <[hidden email]> wrote:

> Matt Wozniski wrote:
> > On Sun, Jan 10, 2010 at 9:22 AM, Bram Moolenaar wrote:
>
> > > Sean Ma wrote:
>
> > >> I used to have this simple command to build my own gVim.exe (cygwin
> > >> independent) for Windows:
>
> > >> vim123() Â  Â { cd /usr/share/vim && svn cohttps://vim.svn.sourceforge.net/svnroot/vim/vim7
> > >> && cd vim7/src && make -f Make_cyg.mak; }
>
> > >> However, I found error after downloading cygwin 1.7:
>
> > >> ...
> > >> A Â  Â vim7/README_lang.txt
> > >> A Â  Â vim7/runtime.info
> > >> ...
> > >> Checked out revision 1711.
> > >> mkdir -p gobj
> > >> gcc -c -O3 -fomit-frame-pointer -freg-struct-return -fno-strength-
> > >> reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_BIG -DWINVER=0x0400 -
> > >> D_WIN32_WINNT=0x0400 -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV -DFEAT_MBYTE -
> > >> DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -
> > >> DFEAT_GUI_W32 -DFEAT_CLIPBOARD -march=i386 -Iproto -s -mno-cygwin
> > >> buffer.c -o gobj/buffer.o
> > >> gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-
> > >> compiler.
>
> > >> make: *** [gobj/buffer.o] Error 1
>
> > >> Any idea?
>
> > > I think this tells you to use the MingW compiler instead of the Cygwin
> > > one. Â The MingW compiler is for building native MS-Windows apps, without
> > > the Cygwin runtime. Â I though the -mno-cygwin argument had the same
> > > intention. Â Perhaps they removed support for that to simplify
> > > maintenance of the compiler.
>
> > Yes, it has been removed - not just for simpler maintenance, but also
> > because it was impossible to make it work properly in certain edge
> > cases.
>
> How widespread is this version of Cygwin?  If more than 50% then we
> should make the default for USEDLL "yes".  The current default is "no".
>
> --
> I AM THANKFUL...
> ...for a lawn that needs mowing, windows that need cleaning
> and gutters that need fixing because it means I have a home.
>
>  /// Bram Moolenaar -- [hidden email] --http://www.Moolenaar.net  \\\
> ///        sponsor Vim, vote for features --http://www.Vim.org/sponsor/\\\
> \\\        download, build and distribute --http://www.A-A-P.org       ///
>  \\\            help me help AIDS victims --http://ICCF-Holland.org   ///


This cygwin release is the "default" version:

>> NEW major release: cygwin-1.7.1-1
>>
>> Hi Cygwin friends and users,
>>
>> after an exceptionally long time of development and testing we're proud
>> to release Cygwin's next major version 1.7.1.


--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: [bug report] cygwin 1.7 compiling error

Gary Johnson-4
In reply to this post by Bram Moolenaar
On 2010-01-11, Bram Moolenaar wrote:

>
> Matt Wozniski wrote:
>
> > On Sun, Jan 10, 2010 at 9:22 AM, Bram Moolenaar wrote:
> > >
> > > Sean Ma wrote:
> > >
> > >> I used to have this simple command to build my own gVim.exe (cygwin
> > >> independent) for Windows:
> > >>
> > >> vim123() Â  Â { cd /usr/share/vim && svn co https://vim.svn.sourceforge.net/svnroot/vim/vim7
> > >> && cd vim7/src && make -f Make_cyg.mak; }
> > >>
> > >> However, I found error after downloading cygwin 1.7:
> > >>
> > >> ...
> > >> A Â  Â vim7/README_lang.txt
> > >> A Â  Â vim7/runtime.info
> > >> ...
> > >> Checked out revision 1711.
> > >> mkdir -p gobj
> > >> gcc -c -O3 -fomit-frame-pointer -freg-struct-return -fno-strength-
> > >> reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_BIG -DWINVER=0x0400 -
> > >> D_WIN32_WINNT=0x0400 -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV -DFEAT_MBYTE -
> > >> DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -
> > >> DFEAT_GUI_W32 -DFEAT_CLIPBOARD -march=i386 -Iproto -s -mno-cygwin
> > >> buffer.c -o gobj/buffer.o
> > >> gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-
> > >> compiler.
> > >>
> > >> make: *** [gobj/buffer.o] Error 1
> > >>
> > >> Any idea?
> > >
> > > I think this tells you to use the MingW compiler instead of the Cygwin
> > > one. Â The MingW compiler is for building native MS-Windows apps, without
> > > the Cygwin runtime. Â I though the -mno-cygwin argument had the same
> > > intention. Â Perhaps they removed support for that to simplify
> > > maintenance of the compiler.
> >
> > Yes, it has been removed - not just for simpler maintenance, but also
> > because it was impossible to make it work properly in certain edge
> > cases.
>
> How widespread is this version of Cygwin?  If more than 50% then we
> should make the default for USEDLL "yes".  The current default is "no".
It is the latest version of Cygwin and replaces the previous
version, 1.5.  It was released December 23, 2009
(http://cygwin.com/ml/cygwin-announce/2009-12/msg00027.html).  I
don't know how widely it has been adopted yet.  It will probably
take a while for most users to upgrade to it.  On the other hand, I
would guess that anyone who is keeping his Vim up to date would also
be keeping his Cygwin up to date.

Regards,
Gary



--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: [bug report] cygwin 1.7 compiling error

SungHyun Nam-2
Gary Johnson wrote:

> On 2010-01-11, Bram Moolenaar wrote:
>> Matt Wozniski wrote:
>>> On Sun, Jan 10, 2010 at 9:22 AM, Bram Moolenaar wrote:
>>>> Sean Ma wrote:
>>>>> I used to have this simple command to build my own gVim.exe (cygwin
>>>>> independent) for Windows:
>>>>>
>>>>> vim123() Â  Â { cd /usr/share/vim&&  svn co https://vim.svn.sourceforge.net/svnroot/vim/vim7
>>>>> &&  cd vim7/src&&  make -f Make_cyg.mak; }
>>>>>
>>>>> However, I found error after downloading cygwin 1.7:
>>>>>
>>>>> ...
>>>>> A Â  Â vim7/README_lang.txt
>>>>> A Â  Â vim7/runtime.info
>>>>> ...
>>>>> Checked out revision 1711.
>>>>> mkdir -p gobj
>>>>> gcc -c -O3 -fomit-frame-pointer -freg-struct-return -fno-strength-
>>>>> reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_BIG -DWINVER=0x0400 -
>>>>> D_WIN32_WINNT=0x0400 -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV -DFEAT_MBYTE -
>>>>> DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -
>>>>> DFEAT_GUI_W32 -DFEAT_CLIPBOARD -march=i386 -Iproto -s -mno-cygwin
>>>>> buffer.c -o gobj/buffer.o
>>>>> gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-
>>>>> compiler.
>>>>>
>>>>> make: *** [gobj/buffer.o] Error 1
>>>>>
>>>>> Any idea?
I didn't read the first mail of this thread.  Anyway,
gcc-4 is the default gcc of the cygwin-1.7 and does not support
'-mno-cygwin' flag.  But user can use gcc-3 explicitly.

I used a simple script which contains lines below:
     CC=gcc-3
     CXX=g++-3
     COMNOPTS="MBYTE=yes IME=yes DYNAMIC_IME=yes OLE=yes ICONV=yes
GETTEXT=yes WINVER=0x0500 DEBUG=no ARCH=i686 USERNAME=$(whoami)
USERDOMAIN=$(hostname)"
     make -f Make_cyg.mak GUI=yes CC=$CC CXX=$CXX $COMNOPTS

Regards,
namsh

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: [bug report] cygwin 1.7 compiling error

SungHyun Nam-2
In reply to this post by Bram Moolenaar
Bram Moolenaar wrote:

>
> Matt Wozniski wrote:
>
>> On Sun, Jan 10, 2010 at 9:22 AM, Bram Moolenaar wrote:
>>>
>>> Sean Ma wrote:
>>>
>>>> I used to have this simple command to build my own gVim.exe (cygwin
>>>> independent) for Windows:
>>>>
>>>> vim123() Â  Â { cd /usr/share/vim&&  svn co https://vim.svn.sourceforge.net/svnroot/vim/vim7
>>>> &&  cd vim7/src&&  make -f Make_cyg.mak; }
>>>>
>>>> However, I found error after downloading cygwin 1.7:
>>>>
>>>> ...
>>>> A Â  Â vim7/README_lang.txt
>>>> A Â  Â vim7/runtime.info
>>>> ...
>>>> Checked out revision 1711.
>>>> mkdir -p gobj
>>>> gcc -c -O3 -fomit-frame-pointer -freg-struct-return -fno-strength-
>>>> reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_BIG -DWINVER=0x0400 -
>>>> D_WIN32_WINNT=0x0400 -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV -DFEAT_MBYTE -
>>>> DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -
>>>> DFEAT_GUI_W32 -DFEAT_CLIPBOARD -march=i386 -Iproto -s -mno-cygwin
>>>> buffer.c -o gobj/buffer.o
>>>> gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-
>>>> compiler.
>>>>
>>>> make: *** [gobj/buffer.o] Error 1
>>>>
>>>> Any idea?
>>>
>>> I think this tells you to use the MingW compiler instead of the Cygwin
>>> one. Â The MingW compiler is for building native MS-Windows apps, without
>>> the Cygwin runtime. Â I though the -mno-cygwin argument had the same
>>> intention. Â Perhaps they removed support for that to simplify
>>> maintenance of the compiler.
>>
>> Yes, it has been removed - not just for simpler maintenance, but also
>> because it was impossible to make it work properly in certain edge
>> cases.
>
> How widespread is this version of Cygwin?  If more than 50% then we
> should make the default for USEDLL "yes".  The current default is "no".
User can use gcc-3 for -mno-cygwin at this time.

I thought Make_cyg.mak is mainly for building native windows
version of gvim on the cygwin.  Because I can build cygwin version
of gvim by running just 'configure && make'.  Don't need such a
specific makefile.

Maybe Make_cyg.mak can check cygwin-1.7 and use gcc-3?

cygver17 := $(shell cygcheck -c cygwin | grep '^cygwin' | grep
'[[:space:]]1\.7\.')
ifneq ($(cygver17),)
     CC=gcc-3
     CXX=g++-3
endif

BTW, I *GUESS* 'gcc-3' will be removed after mingw-targeted
cross-compiler for cygwin-1.7 is comming out.  I remember
someone mentioning it several times on cygwin mailing list.
Maybe my memory is corrupted, though...

regards,
namsh

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php