Has anyone here successfully compiled gcc-4.7.1 yet? I'm trying on x86_64, but keep running into failures with gnat linking its shared libraries. The error in question is this:
/usr/x86_64-slackware-linux/bin/ld: adadecode.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
adadecode.o: could not read symbols: Bad value
Indeed, looking earlier in the log, adadecode.c does not appear to be compiled using -fPIC in spite of it appearing in CFLAGS. I tried adding --with-pic to the ./configure options with no noticeable change. Suspecting something had changed in ld, I tried earlier versions of binutils (as -current has a binutils package newer than gcc), but that did not help either. So, I tried compiling gcc-4.7.0 again to see if it would fail. It did not. It also does not seem to be using -fPIC, but it doesn't create a compile error in this case and the gnat package contains all the expected files.
Any help appreciated. Meanwhile it looks like we'll be sticking with 4.7.0.