For some reason when it comes to computers, I always have to do it myself. I have hit a lot of snags trying to compile gcc, but the solution to this problem eludes me.
I am trying to compile GCC 4.4.3 and my configure looks like this:
I end up getting this error about 30-40 minutes into the compilation:
./configure --prefix=/mingw_new --build=i686-pc-mingw32 \
--target=i686-pc-mingw32 --with-sysroot=/mingw_new \
--with-build-sysroot=/mingw_new --with-mpfr=/mingw_new/i686-pc-mingw32 \
--with-gmp=/mingw_new/i686-pc-mingw32 --with-ppl=/mingw_new/i686-pc-mingw32 \
--with-cloog=/mingw_new/i686-pc-mingw32 --with-mpc=/mingw_new/i686-pc-mingw32 \
--with-host-libstdcxx='-lstdc++ -lsupc++' --disable-shared --enable-static \
--enable-threads=win32 --enable-languages=c,c++ --disable-rpath \
--disable-win32-registry --enable-version-specific-runtime-libs \
--with-system-zlib --disable-werror --disable-nls --disable-bootstrap \
This is a known error in the whole gcc committee, but nowhere can I actually find a solution to the problem.
checking for ld version... 22051
checking for ld that supports -Wl,--gc-sections... configure: error: Link tests
are not allowed after GCC_NO_EXECUTABLES.
make: *** [configure-target-libstdc++-v3] Error 1
Has anyone ever experienced this problem or know how to approach this? I can usually fix any linking errors that come up but something like this I have no idea. The bad thing is that a config.log isn't created so this is all I really know about it. Is there a way to just completely eliminate link tests? Obviously none of them have failed up to this point so I have reason to believe my build environment is probably ok.
One thing that I have not tried is using a different version compiler. I am basically trying to mimic someone who is known for his gcc releases and am actually using his 4.4.3 build to compile this (maybe some of you have heard of him: komisar).
Anyway, if anyone has any tips or general advice, I'm all ears. Thanks!