Re: Compiling cygwin1.dll
On Tue, Jun 3, 2014 at 6:07 PM, Larry Hall (Cygwin) wrote: On 06/03/2014 08:57 AM, Michael Wild wrote: On Tue, Jun 3, 2014 at 12:32 PM, Andrey Repin wrote: Greetings, Michael Wild! In order to pinpoint an error I'm trying to compile cygwin1.dll from source following the instructions here: My question is: do you actually need to rebuild it, or you just need the debug symbols? https://cygwin.com/faq.html#faq.programming.building-cygwin. However, when building binutils, I trip over this error: https://sourceware.org/ml/binutils/2014-02/msg00064.html. According to DJ (https://sourceware.org/ml/binutils/2014-02/msg00067.html), attempts to build the old binutils/gdb in CVS are going to be doomed. Apparently the development of these packages is now tracked in a separate git repo. So, my question is now, how do I get a working build for the cygwin DLL? Do I have to replace binutils/gdb in the CVS checkout with the git checkout? How are the current snapshots built? Thanks for any pointers in the right direction. Dear Andrey, I really need to build it, in order to pinpoint which commit breaks things. OK but why are you building 'binutils' if you just want to build the Cygwin DLL? -- Larry You tell me. I just checked out the source and followed the instructions as I said in my first message. When doing so, there is a dependency and binutils gets built. If the instructions are outdated, I did something obviously wrong, or there is a better way, please let me know. Michael -- 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
Re: Compiling cygwin1.dll
Greetings, Michael Wild! You tell me. I just checked out the source and followed the instructions as I said in my first message. When doing so, there is a dependency and binutils gets built. If the instructions are outdated, I did something obviously wrong, or there is a better way, please let me know. I've used this script to rebuild it. #!/bin/sh SUITE_ROOT=/c/dev/sdc1/cygwin BUILD_PATH=$SUITE_ROOT/build INSTALL_PATH=$SUITE_ROOT/install BUILD_MODULE=$SUITE_ROOT/src${PWD##$BUILD_PATH} { $BUILD_MODULE/configure -v --prefix=$INSTALL_PATH LANG=C make } | tee rebuild.log Checked out the repository into $SUITE_ROOT/src, recreated the necessary paths in $SUITE_ROOT/build and restarted the script from certain paths until I succeed in building required portions of suite. (I was mainly intersted in winsup.) -- WBR, Andrey Repin (anrdae...@yandex.ru) 04.06.2014, 21:29 Sorry for my terrible english... -- 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
Re: Compiling cygwin1.dll
On Wed, Jun 4, 2014 at 7:32 PM, Andrey Repin wrote: Greetings, Michael Wild! You tell me. I just checked out the source and followed the instructions as I said in my first message. When doing so, there is a dependency and binutils gets built. If the instructions are outdated, I did something obviously wrong, or there is a better way, please let me know. I've used this script to rebuild it. #!/bin/sh SUITE_ROOT=/c/dev/sdc1/cygwin BUILD_PATH=$SUITE_ROOT/build INSTALL_PATH=$SUITE_ROOT/install BUILD_MODULE=$SUITE_ROOT/src${PWD##$BUILD_PATH} { $BUILD_MODULE/configure -v --prefix=$INSTALL_PATH LANG=C make } | tee rebuild.log Checked out the repository into $SUITE_ROOT/src, recreated the necessary paths in $SUITE_ROOT/build and restarted the script from certain paths until I succeed in building required portions of suite. (I was mainly intersted in winsup.) Hi Andrey Repin Many thanks. So you are saying, you never used the top-level build system? That would explain a lot. So it is just an iterative trial and error process? Way to go... Cheers Michael -- 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
Re: Compiling cygwin1.dll
Greetings, Michael Wild! Many thanks. So you are saying, you never used the top-level build system? I don't NEED to rebuild whole toolchain to begin with. And it takes about half an hour just to configure it on my system. Or at least half an hour up to first error, which I'm unable to get much sense from, since I'm no expert in bird languages. That would explain a lot. So it is just an iterative trial and error process? Way to go... For me, it was. YMMV. -- WBR, Andrey Repin (anrdae...@yandex.ru) 04.06.2014, 23:53 Sorry for my terrible english... -- 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
Re: Compiling cygwin1.dll
On Wed, Jun 04, 2014 at 11:55:32PM +0400, Andrey Repin wrote: Greetings, Michael Wild! Many thanks. So you are saying, you never used the top-level build system? I don't NEED to rebuild whole toolchain to begin with. If you follow the instructions for checking out cygwin you shouldn't HAVE the whole toolchain. cgf -- 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
Re: Compiling cygwin1.dll
On Wed, Jun 4, 2014 at 11:07 PM, Christopher Faylor wrote: On Wed, Jun 04, 2014 at 11:55:32PM +0400, Andrey Repin wrote: Greetings, Michael Wild! Many thanks. So you are saying, you never used the top-level build system? I don't NEED to rebuild whole toolchain to begin with. If you follow the instructions for checking out cygwin you shouldn't HAVE the whole toolchain. cgf AHA! I must have blundered when performing the CVS checkout. Annoyingly confusing old thing... Anyways, many thanks for all your help! Michael -- 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
Re: Compiling cygwin1.dll
Greetings, Michael Wild! In order to pinpoint an error I'm trying to compile cygwin1.dll from source following the instructions here: My question is: do you actually need to rebuild it, or you just need the debug symbols? https://cygwin.com/faq.html#faq.programming.building-cygwin. However, when building binutils, I trip over this error: https://sourceware.org/ml/binutils/2014-02/msg00064.html. According to DJ (https://sourceware.org/ml/binutils/2014-02/msg00067.html), attempts to build the old binutils/gdb in CVS are going to be doomed. Apparently the development of these packages is now tracked in a separate git repo. So, my question is now, how do I get a working build for the cygwin DLL? Do I have to replace binutils/gdb in the CVS checkout with the git checkout? How are the current snapshots built? Thanks for any pointers in the right direction. -- WBR, Andrey Repin (anrdae...@yandex.ru) 03.06.2014, 14:31 Sorry for my terrible english... -- 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
Re: Compiling cygwin1.dll
On Tue, Jun 3, 2014 at 12:32 PM, Andrey Repin wrote: Greetings, Michael Wild! In order to pinpoint an error I'm trying to compile cygwin1.dll from source following the instructions here: My question is: do you actually need to rebuild it, or you just need the debug symbols? https://cygwin.com/faq.html#faq.programming.building-cygwin. However, when building binutils, I trip over this error: https://sourceware.org/ml/binutils/2014-02/msg00064.html. According to DJ (https://sourceware.org/ml/binutils/2014-02/msg00067.html), attempts to build the old binutils/gdb in CVS are going to be doomed. Apparently the development of these packages is now tracked in a separate git repo. So, my question is now, how do I get a working build for the cygwin DLL? Do I have to replace binutils/gdb in the CVS checkout with the git checkout? How are the current snapshots built? Thanks for any pointers in the right direction. Dear Andrey, I really need to build it, in order to pinpoint which commit breaks things. Michael -- 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
Re: Compiling cygwin1.dll
On 06/03/2014 08:57 AM, Michael Wild wrote: On Tue, Jun 3, 2014 at 12:32 PM, Andrey Repin wrote: Greetings, Michael Wild! In order to pinpoint an error I'm trying to compile cygwin1.dll from source following the instructions here: My question is: do you actually need to rebuild it, or you just need the debug symbols? https://cygwin.com/faq.html#faq.programming.building-cygwin. However, when building binutils, I trip over this error: https://sourceware.org/ml/binutils/2014-02/msg00064.html. According to DJ (https://sourceware.org/ml/binutils/2014-02/msg00067.html), attempts to build the old binutils/gdb in CVS are going to be doomed. Apparently the development of these packages is now tracked in a separate git repo. So, my question is now, how do I get a working build for the cygwin DLL? Do I have to replace binutils/gdb in the CVS checkout with the git checkout? How are the current snapshots built? Thanks for any pointers in the right direction. Dear Andrey, I really need to build it, in order to pinpoint which commit breaks things. OK but why are you building 'binutils' if you just want to build the Cygwin DLL? -- Larry _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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
Re: Compiling a DLL
BARTHEL, MATTIAS wrote: What are the procedures for compiling a DLL without using the Cygwin DLL? http://cygwin.com/faq/faq.html#SEC94 In short: if you want to use Cygwin's posix emulation layer then you will be linking to cygwin1.dll and your program will be GPL[1]. There's no way to statically compile an app that still uses the emulation layer but doesn't depend on the DLL. You can compile a mingw app of course with the -mno-cygwin switch, but the amount of unix-like functionalty that's supported is very much a subset of what you get with Cygwin. If this is what you want then you need to ask your question on the mingw list. Brian [1] Unless you pay Redhat for their commercial license. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Compiling a DLL
Brian Dessent wrote: will be linking to cygwin1.dll and your program will be GPL[1]. There's Sorry, I keep forgetting that Redhat offers the ..or any OSI-approved license addendum to the GPL, so your code doesn't necessarily have to be GPL, but it still must be Open Source. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/