Cross compiling sys-apps/dbus-1.6.16 for i686-w64-mingw32 fail in src_configure with the following error : checking whether the C compiler works... no configure: error: in `/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16-build': configure: error: C compiler cannot create executables See `config.log' for more details !!! Please attach the following file when seeking support: !!! /var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16-build/config.log * ERROR: sys-apps/dbus-1.6.16::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 93: Called src_configure * environment, line 4705: Called econf '--disable-silent-rules' '--localstatedir=/var' '--docdir=/usr/share/doc/dbus-1.6.16' '--htmldir=/usr/share/doc/dbus-1.6.16/html' '--enable-static' '--disable-verbose-mode' '--disable-asserts' '--disable-checks' '--disable-selinux' '--disable-libaudit' '--enable-inotify' '--disable-kqueue' '--disable-systemd' '--disable-embedded-tests' '--disable-modular-tests' '--disable-stats' '--with-xml=expat' '--with-session-socket-dir=/tmp' '--with-system-pid-file=/var/run/dbus.pid' '--with-system-socket=/var/run/dbus/system_bus_socket' '--with-dbus-user=messagebus' '--without-x' '--with-systemdsystemunitdir=/usr/lib/systemd/system' '--disable-xml-docs' '--disable-doxygen-docs' * phase-helpers.sh, line 577: Called die * The specific snippet of code: * die "econf failed" ebuild add a -rdynamic that is only supported for ELF binaries. Attached, full log, emerge --info and patch proposal for ebuild Reproducible: Always Steps to Reproduce: 1. crossdev -S -t i686-w64-mingw32 2. i686-w64-mingw32-emerge -va1t =sys-apps/dbus-1.6.16::gentoo 3.
Created attachment 360894 [details] emerge --info
Created attachment 360896 [details] build.log
Created attachment 360898 [details] config.log
Created attachment 360900 [details, diff] dbus-1.6.16.ebuild-rdynamic.diff patch for ebuild
This still apply for =sys-apps/dbus-1.6.18
(In reply to Bertrand Jacquin from comment #4) > Created attachment 360900 [details, diff] [details, diff] > dbus-1.6.16.ebuild-rdynamic.diff > > patch for ebuild I applied this patch to 1.6.18-r1 (slightly modified, but in effect, the same) I don't know much about mingw, so I'm taking your word for this one
(In reply to Samuli Suominen from comment #6) > I applied this patch to 1.6.18-r1 (slightly modified, but in effect, the > same) > I don't know much about mingw, so I'm taking your word for this one Applied patch is fine for me. Thanks dude