I am about to build my first Linux from scratch....
I've done everything exactly as it's written in the book - at least i think i did.
Now, building the glibc results to the following problem:
checking for .preinit_array/.init_array/.fini_array support... no
configure: error: Need linker with .init_array/.fini_array support.
With this message, glibc-2.18/configure tool breaks up in the config.log it says at some point:
collect2: fatal error: cannot find 'ld'
I guess these errors are related.
I am running a 64-bit machine. some people with similar errors said, that this might be the cause of the error - but that should not be, right?
I hope that some of you can help me with this, or at least explain what's going on there.
I have the ld and the readelf in my /tools folder, why isn't it found?
I had the same
configure: error: Need linker with .init_array/.fini_array support.error while buildingglibcon a x86_64 grsec linux box. In my case the perp was theCFLAGSenvironment variable (set in~/local/share/config.site) and in particular the switch for position independent code,-fPicwhich was causing this problem. Its a more-or-less known bug.