Bug 18864 - Power PC build fails on Cygwin due to use of ln.
Summary: Power PC build fails on Cygwin due to use of ln.
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: sim (show other bugs)
Version: 7.9
: P2 critical
Target Milestone: ---
Assignee: Mike Frysinger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-24 17:16 UTC by Keith
Modified: 2021-10-03 15:38 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith 2015-08-24 17:16:17 UTC
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
Comment 1 Mike Frysinger 2021-10-03 15:38:07 UTC
should be fixed now by falling back to symlinks and then copy