There is a bug in the install portion of the xmingw-gcc-3.3.1.ebuild that prevents it from being emerged the second time. It is necessary to emerge xmingw-gcc *twice* to get C++ compiler support going. Reproducible: Always Steps to Reproduce: 1. # emerge xmingw-runtime This will emerge all the following: xmingw-binutils xmingw-gcc (C compiler only) xmingw-w32api (C only) 2. # emerge xmingw-gcc This should re-emerge xmingw-gcc and now that we have xmingw-runtime and xmingw-w32api, we should also get C++ compiler support. 3. Actual Results: The ebuild fails in the install portion complaining that it cannot find the i386-mingw32msvc-ranlib binary. But we installed ranlib when we emerged xmingw-binutils. Expected Results: Install should have completed for xmingw-gcc the second time around. Seems to be a simple path problem in src_install, suggested fix: src_install() { export PATH=$PATH:/opt/xmingw/bin:/opt/xmingw/i386-mingw32msvc/bin make DESTDIR="${D}" install || die "make install failed" } at least that's how I got it to finally re-emerge.
Many thanks. I have added the line into the ebuild. Must of been libtool recompiling the libraries before install.