Apologies, but I have to correct what I wrote previously...

On 7/1/2026 4:40 PM, Mark Geisert via Cygwin wrote:
Hi Roland,

On 7/1/2026 9:43 AM, Roland Mainz via Cygwin wrote:
Hi!

----

Is anyone else seeing this build failure:
---- snip ---
$ uname -a
CYGWIN_NT-10.0-19045 bloodbath039 3.6.9-1.x86_64 2026-04-21 15:46 UTC
x86_64 Cygwin
$ git clone -b cygwin-3_6-branch git://cygwin.com/git/newlib-cygwin.git
$ cd newlib-cygwin/winsup/
$ ./autogen.sh
$ cd ../..
$ mkdir testinstall && cd testinstall/
$ /home/roland_mainz/work/cygwin/newlib-cygwin/winsup/configure
--prefix=/home/roland_mainz/work/cygwin/testinstall
...
$ time nice make
[...]
Looks like you're building in the source directory.
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I was incorrect here; I misled myself about your directory structure.

I now believe the main problem is that you ran the incorrect 'configure'. It should be the one in /home/.../cygwin/newlib-cygwin/. Both newlib and winsup trees need to be built to complete cygwin1.dll.

Another problem is that the "--prefix=" argument to configure should name yet another new directory for installing, not the one you're building in. Don't name your current Cygwin installation root here!

On my builder machine I've set up "/oss" to hold the Cygwin tree for editing Cygwin source and building cygwin1.dll like so:

/oss/build is where (or symlinks to where) the output of "make" will go.
/oss/install is where the output of "make install" will go.
/oss/src symlinks to where your git clone of Cygwin resides.

So I just 'cd /oss/build', '/oss/src/configure --prefix=/oss/install', then 'nice make' or 'nice make -j4' if I've got more CPUs. Then follow with 'nice make install' if I want to make an installable tree with the Cygwin Dll, libraries, include files, and utilities. It's optional.

You can of course not bother with "/oss" but instead set up three subdirs under /home/roland_mainz/work/cygwin/ and that should work.
HTH,

..mark

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

Reply via email to