I don't seem to be able to reproduce that problem. When build_detect_platform is -x then make clean && make succeeds. Could you post the error messages?
I already posted error messages, you can see them above.
Ah, okay. That does seem to be the same issue, the error messages match the ones in this earlier report+fix:
https://bitcointalk.org/index.php?topic=270852.msg3029801#msg3029801After an initial failure resulting in the above errors, change the file permission and then reset the state with:
chmod +x src/leveldb/build_detect_platform
cd src
make clean -f makefile.unix
make -f makefile.unix -e PIE=1 USE_UPNP=-
Then it should compile without issues.
The cleanup is automatically performed when compiling the gui wallet but not when compiling the headless daemon from inside the
./src subdirectory. It's caught me out a couple of times.
Cheers
Graham