I tryied to build gcc 4.5.0 on Linux version 2.6.18-164.6.1.el5, and found the following problems that I couldn't find an answer on Google. I used the following command.
../gcc-4.3.5/configure --prefix=/usr --prefix=/apps --with-gmp=/apps --with-mpc=/apps --with-mpfr=/apps --enable-shared --enable-threads=posix make -j 8
Here is the part when it complained about the error
...
cp: preserving ACL for `./asm/org/objectweb/asm/ClassAdapter.class': Operation not supported
cp: preserving permissions for `./asm/org/objectweb/asm': Operation not supported
cp: preserving permissions for `./asm/org/objectweb': Operation not supported
cp: preserving permissions for `./asm/org': Operation not supported
cp: preserving permissions for `./asm': Operation not supported
make[6]: * [tools.zip] Error 1
make[6]: Leaving directory `/home/gl/gcc4.3obj/x86_64-unknown-linux-gnu/32/libjava/classpath/tools'
make[6]: Entering directory `/home/gl/gcc4.3obj/x86_64-unknown-linux-gnu/32/libjava/classpath'
true DO=all multi-do # make
make[6]: Leaving directory `/home/gl/gcc4.3obj/x86_64-unknown-linux-gnu/32/libjava/classpath'
make[5]: * [all-recursive] Error 1
make[5]: Leaving directory `/home/gl/gcc4.3obj/x86_64-unknown-linux-gnu/32/libjava/classpath'
make[4]: * [all-recursive] Error 1
make[4]: Leaving directory `/home/gl/gcc4.3obj/x86_64-unknown-linux-gnu/32/libjava'
make[3]: * [multi-do] Error 1
make[3]: Leaving directory `/home/gl/gcc4.3obj/x86_64-unknown-linux-gnu/libjava'
make[2]: * [all-multi] Error 2
make[2]: Leaving directory `/home/gl/gcc4.3obj/x86_64-unknown-linux-gnu/libjava'
make[1]: * [all-target-libjava] Error 2
make[1]: Leaving directory `/home/gl/gcc4.3obj'
make: * [all] Error 2
Any clarification and help will be highly appreciated. Thank you.