Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787632 - cross-x86_64-w32-mingw32/gcc-11.1.0 fails to compile: ‘operation_not_supported’ is not a member of ‘std::errc’; did you mean ‘function_not_supported’?
Summary: cross-x86_64-w32-mingw32/gcc-11.1.0 fails to compile: ‘operation_not_supporte...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Cross compilation support
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-11 boost-1.77
  Show dependency tree
 
Reported: 2021-05-02 09:13 UTC by Antonio Quartulli
Modified: 2021-09-11 20:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cross-x86_64-w32-mingw32-info.log (cross-x86_64-w32-mingw32-info.log,18.06 KB, text/x-log)
2021-05-02 09:13 UTC, Antonio Quartulli
Details
cross-x86_64-w32-mingw32-gcc-stage2.log.xz (cross-x86_64-w32-mingw32-gcc-stage2.log.xz,123.95 KB, application/x-xz)
2021-05-02 09:13 UTC, Antonio Quartulli
Details
gcc-config.logs.tar.xz (gcc-config.logs.tar.xz,99.38 KB, application/x-xz)
2021-05-02 09:14 UTC, Antonio Quartulli
Details
Make mingw32 always assumed to be Mingw-w64 (gcc-assume-mingw32-is-w64.patch,395 bytes, patch)
2021-06-06 19:34 UTC, Tee KOBAYASHI
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Quartulli 2021-05-02 09:13:31 UTC
Created attachment 705243 [details]
cross-x86_64-w32-mingw32-info.log

Steps to reproduce:

crossdev --ov-output /usr/local/portage-crossdev/ x86_64-w32-mingw32


Output:

-                                                                                                         
 * crossdev version:      20201129
 * Host Portage ARCH:     amd64
 * Host Portage System:   x86_64-pc-linux-gnu (i686-pc-linux-gnu x86_64-pc-linux-gnu)
 * Target Portage ARCH:   amd64
 * Target System:         x86_64-w32-mingw32
 * Stage:                 4 (C/C++ compiler)
 * USE=multilib:          no
 * Target ABIs:           amd64

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * libc:                  mingw64-runtime-[latest]

 * CROSSDEV_OVERLAY:      /usr/local/portage-crossdev/
 * PORT_LOGDIR:           /var/log/portage
 * PORTAGE_CONFIGROOT:    /
 * Portage flags:         
                                                                                                          
                                                                                                          
 * Log: /var/log/portage/cross-x86_64-w32-mingw32-binutils.log
 * Emerging cross-binutils ...                                                                      [ ok ]
 * Log: /var/log/portage/cross-x86_64-w32-mingw32-mingw64-runtime-headers.log
 * Emerging cross-mingw64-runtime-headers ...                                                       [ ok ]
 * Log: /var/log/portage/cross-x86_64-w32-mingw32-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...                                                                    [ ok ]
 * Log: /var/log/portage/cross-x86_64-w32-mingw32-mingw64-runtime.log
 * Emerging cross-mingw64-runtime ...                                                               [ ok ]
 * Log: /var/log/portage/cross-x86_64-w32-mingw32-gcc-stage2.log
 * Emerging cross-gcc-stage2 ...

 * error: gcc failed :(
 * 
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-x86_64-w32-mingw32-info.log
 * /var/log/portage/cross-x86_64-w32-mingw32-gcc-stage2.log.xz
 * /var/tmp/portage/cross-x86_64-w32-mingw32/gcc*/temp/gcc-config.logs.tar.xz

Relevant error from in cross-x86_64-w32-mingw32-gcc-stage2.log:

/var/tmp/portage/cross-x86_64-w32-mingw32/gcc-11.1.0/work/gcc-11.1.0/libstdc++-v3/src/filesystem/ops.cc:970:42: error: ‘operation_not_supported’ is not a member of ‘std::errc’; did you mean ‘function_not_supported’?
  970 |     ec = std::make_error_code(std::errc::operation_not_supported);
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~
      |                                          function_not_supported


# emerge --info

Portage 3.0.18 (python 3.8.8-final-0, default/linux/amd64/17.1/desktop, gcc-11.1.0, glibc-2.32-r7, 5.10.32-gentoo x86_64)
=================================================================
System uname: Linux-5.10.32-gentoo-x86_64-AMD_Ryzen_9_3950X_16-Core_Processor-with-glibc2.2.5
KiB Mem:   131843540 total,  96679240 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of repository gentoo: Sun, 02 May 2021 08:15:01 +0000
Head commit of repository gentoo: 5feb2770ab2ec6362a968a6023c00a38e0983e28
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18_p8::gentoo, 3.8.8_p1::gentoo, 3.9.2_p1::gentoo
dev-lang/rust:            1.51.0-r2::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.21::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.2-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo, 10.3.0::gentoo, 11.1.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

portage-crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://ftp.fau.de/gentoo/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en"
MAKEOPTS="-j24"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acc acl acpi alsa amd64 amr ao bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli corefonts crypt cups curl dbus djvu dri dri3 dts dvd dvdr elogind emboss encode exif ffmpeg flac fontconfig fortran gallium gdbm gif gimp git gmp gpm graphviz gtk gui http2 iconv icu idn ipv6 jpeg jpeg2k lame lapack lapacke lcms libglvnd libnotify libtirpc lm-sensors logrotate lz4 lzma mad minizip mng mp3 mp4 mpeg musepack ncurses nls nptl ocr offensive ogg opencl opengl openmp openssl pam pango pcre pdf png policykit ppds pulseaudio readline scanner sdl seccomp smi smp socks5 spell split-usr ssl svg tcpd threads tiff truetype udev udisks unicode upower usb v4l v4l2 vim-syntax vorbis vtv webp x264 xattr xcb xft xinerama xml xmp xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-GB en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" QEMU_SOFTMMU_TARGETS="x86_64 i386 arm mips" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Antonio Quartulli 2021-05-02 09:13:59 UTC
Created attachment 705246 [details]
cross-x86_64-w32-mingw32-gcc-stage2.log.xz
Comment 2 Antonio Quartulli 2021-05-02 09:14:59 UTC
Created attachment 705249 [details]
gcc-config.logs.tar.xz
Comment 3 Tee KOBAYASHI 2021-06-06 19:34:18 UTC
Created attachment 714045 [details, diff]
Make mingw32 always assumed to be Mingw-w64

This is because the configuration script for libstdc++ assumes the host to be Mingw-w64 only if the host string matches *-w64-*.