Greetings, I've just compiled (succesfully) gcc-4.0.1 on my slackware box. It's a Pentium II 266MHz, running linux-2.6.12.3, (old)gcc-3.3.4, glibc-2.3.4. I used squashfs to hold the unpacked tarball during compilation.
../gcc-4.0.1/configure --enable-libada --enable-bootstrap=lean \ --enable-threads --prefix=/usr/local/ \ --with-gcc-version-trigger=/root/quak/base/gcc-4.0.1/gcc/version.c \ --enable-languages=c,c++,java,objc make CFLAGS='-O' LIBCFLAGS='-O2' LIBCXXFLAGS='-O2 -fno-implicit-templates' \ bootstrap I had to restart the compilation a few times because of lack of diskspace or memory (java) but that's propably my problem. The first real problem appeared with stage1-gcc/java/jcf-write.o, there is an unused variable the compiler warns about and -Werror is in CFLAGS. So I had to add "java/jcf-write.o-warn = -Wno-error" to stage1-gcc/Makefile (line 208 in my case, just after the "reload1.o-warn = -Wno-error"). It appeared again with stage2-gcc. Same problem, just different Makefile. (I should have propably changed it in the source, but it was r/o being on squashfs). I didn't notice it in stage3 but I'm not 100% sure. The second problem was that the make install failed with something like no rule to make ../zlib/libz.a, so: ln -s stage3-zlib zlib ln -s stage3-libiberty libiberty ln -s stage3-libcpp libcpp ln -s stage3-intl intl ln -s stage3-gcc gcc and magically, make install workes fine. Thanks, keep up the good work, Martin HRADIL P.S. the compilation ran from 2005-07-27 to 2005-08-01. Average load ~ 6. Java compilation swapped heavily (100MB was not enough) (and I have 128MB RAM). Also I can't really compile a newer version (another week) or try it on a different machine (none such), sorry :(.