cygwin build

Takashi Yano takashi.yano@nifty.ne.jp
Sat Aug 5 22:20:58 GMT 2023


On Sat, 5 Aug 2023 20:18:43 +0200
Thomas Wolff wrote:
> Am 03.08.2023 um 15:12 schrieb Jon Turney:
> > On 03/08/2023 09:21, Thomas Wolff wrote:
> >> Am 02.08.2023 um 10:09 schrieb Corinna Vinschen:
> >>> On Aug  2 08:36, Thomas Wolff wrote:
> >>>>
> >>>> Am 01.08.2023 um 23:27 schrieb Corinna Vinschen:
> >>>>> On Aug  1 23:05, Thomas Wolff wrote:
> >>>>>> I took some of the latest cygwin snapshots (by the way, there are 
> >>>>>> no newer
> >>>>>> ones on the snapshots page):
> >>>>> Snapshots are no longer produced.  You should download the latest
> >>>>> test versions via setup.
> >>>> So what if I need an older version?
> >>> It's all documented:
> >>>
> >>> https://cygwin.com/git.html
> >>> https://cygwin.com/faq.html#faq.programming.building-cygwin
> >> Thanks. Actually package mingw zlib was missing (when I installed it, 
> >> it got mistargeted to my parallel test installation).
> >> It now worked, kind of, with some build errors after producing the dll.
> >
> > Nobody can take any useful action about those "build errors" if you 
> > keep them secret.
> >
> Sure, I just mentioned it and didn't post details as it wasn't essential 
> for the discussed issue. Anyway, here are the final error message I 
> often encounter:
> 
> make[5]: Entering directory 
> '/cygdrive/c/tmp/newlib-cygwin/build/x86_64-pc-cygwin/winsup/utils'
>    CXXLD    dumper.exe
> /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: 
> /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../lib/libbfd.a(compress.o): 
> in function `decompress_contents':
> /usr/src/debug/binutils-2.41-1/bfd/compress.c:514:(.text+0x20d): 
> undefined reference to `ZSTD_decompress'
> /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: 
> /usr/src/debug/binutils-2.41-1/bfd/compress.c:516:(.text+0x215): 
> undefined reference to `ZSTD_isError'
> /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: 
> /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../lib/libbfd.a(compress.o): 
> in function `bfd_compress_section_contents':
> /usr/src/debug/binutils-2.41-1/bfd/compress.c:653:(.text+0x11e4): 
> undefined reference to `ZSTD_compress'
> /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: 
> /usr/src/debug/binutils-2.41-1/bfd/compress.c:658:(.text+0x11f1): 
> undefined reference to `ZSTD_isError'
> collect2: error: ld returned 1 exit status
> make[5]: *** [Makefile:603: dumper.exe] Error 1
> make[5]: Leaving directory 
> '/cygdrive/c/tmp/newlib-cygwin/build/x86_64-pc-cygwin/winsup/utils'
> make[4]: *** [Makefile:872: all-recursive] Error 1
> make[4]: Leaving directory 
> '/cygdrive/c/tmp/newlib-cygwin/build/x86_64-pc-cygwin/winsup/utils'
> make[3]: *** [Makefile:512: all] Error 2
> make[3]: Leaving directory 
> '/cygdrive/c/tmp/newlib-cygwin/build/x86_64-pc-cygwin/winsup/utils'
> make[2]: *** [Makefile:395: all-recursive] Error 1
> make[2]: Leaving directory 
> '/cygdrive/c/tmp/newlib-cygwin/build/x86_64-pc-cygwin/winsup'
> make[1]: *** [Makefile:9464: all-target-winsup] Error 2
> make[1]: Leaving directory '/cygdrive/c/tmp/newlib-cygwin/build'
> make: *** [Makefile:883: all] Error 2

That happened to me before.

Install libzstd-devel.
Remove
./etc/config.cache
./x86_64-pc-cygwin/newlib/config.cache
./x86_64-pc-cygwin/winsup/config.cache
Re-run ./configure && make.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>


More information about the Cygwin-developers mailing list