Summary: | sys-libs/ncurses-6.3: fails to cross-build for x86_64-w64-mingw32 (with the same version installed in the base system) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tee KOBAYASHI <xtkoba> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | cross, esigra |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=820503 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
The full build.log
ncurses-6.3.ebuild: Revive "threads" USE flag Proposed fix along with the suggestion from sam@ |
Description
Tee KOBAYASHI
2021-10-27 11:48:58 UTC
Created attachment 746970 [details]
The full build.log
Created attachment 746994 [details, diff] ncurses-6.3.ebuild: Revive "threads" USE flag This seems to be due to the toolchain for x86_64-w64-mingw32 (at least gcc) not supporting pthreads: $ x86_64-w64-mingw32-gcc -v Using built-in specs. COLLECT_GCC=x86_64-w64-mingw32-gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-w64-mingw32/11.2.0/lto-wrapper Target: x86_64-w64-mingw32 Configured with: /var/tmp/portage/cross-x86_64-w64-mingw32/gcc-11.2.0/work/gcc-11.2.0/configure --host=x86_64-pc-linux-gnu --target=x86_64-w64-mingw32 --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/x86_64-w64-mingw32/gcc-bin/11.2.0 --includedir=/usr/lib/gcc/x86_64-w64-mingw32/11.2.0/include --datadir=/usr/share/gcc-data/x86_64-w64-mingw32/11.2.0 --mandir=/usr/share/gcc-data/x86_64-w64-mingw32/11.2.0/man --infodir=/usr/share/gcc-data/x86_64-w64-mingw32/11.2.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-w64-mingw32/11.2.0/include/g++-v11 --with-python-dir=/share/gcc-data/x86_64-w64-mingw32/11.2.0/python --enable-languages=c,c++ --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 11.2.0 p1' --disable-esp --enable-libstdcxx-time --enable-poison-system-directories --with-sysroot=/usr/x86_64-w64-mingw32 --disable-bootstrap --disable-multilib --with-multilib-list=m64 --disable-fixed-point --enable-targets=all --disable-libgomp --disable-libada --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --without-zstd --enable-lto --without-isl --disable-libsanitizer --disable-default-pie --enable-default-ssp Thread model: win32 Supported LTO compression algorithms: zlib gcc version 11.2.0 (Gentoo 11.2.0 p1) And I wonder why "threads" USE flag is removed from recent ncurses ebuilds (note that ncurses-6.2-r1.ebuild still has that flag). Is there any workaround for this issue other than reviving "threads" flag and disabling it? For things like this I'd generally just update the other bug and say it still fails with 6.3. USE=threads was removed because it wasn't thought to be very useful. Sounds more like we should just turn it off on mingw32? Created attachment 747303 [details, diff]
Proposed fix along with the suggestion from sam@
With this patch, "ncursest" and "ncursestw" are excluded from NCURSES_TARGETS if and only if CHOST is mingw.
|