Building gdb on Cygwin under Windows 7, the "run" target of sim/ppc/Makefile.in uses "ln psim$(EXEEXT) run$(EXEEXT)" even though configure detects a broken ln. I replaced the ln with cp (like the configure script said it was using) and the build worked. I tried replacing ln with $(LN) but LN wasn't defined in the build's sim/ppc/Makefile. The relevant bits from running configure: checking whether ln works... no, using cp checking whether ln -s works... no, using cp -p The relevant bit from the build: gcc/4.9.2/gdb-7.8.1/sim/ppc/main.c i686-pc-mingw32-gcc -O2 -pipe -D__USE_MINGW_ACCESS -static-libstdc++ -static-libgcc -s -Wl,--stack,12582912 -o psim.exe main.o libsim.a ../../bfd/libbfd.a ../../intl/libintl.a ../../libiberty/libiberty.a rm -f run.exe ln psim.exe run.exe Makefile:559: recipe for target 'run' failed make[2]: *** [run] Error 1 make[2]: Leaving directory '/home/cross-gcc/4.9.2/powerpc-eabi-build/gdb/sim/ppc' Makefile:129: recipe for target 'all' failed make[1]: *** [all] Error 1 make[1]: Leaving directory '/home/cross-gcc/4.9.2/powerpc-eabi-build/gdb/sim' Makefile:8089: recipe for target 'all-sim' failed make: *** [all-sim] Error 2
should be fixed now by falling back to symlinks and then copy
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=46039d3632e32d9a404c1f18cf55f14c894e4627