Hello again, I think this may be useful to others trying to build gdb in Cygwin:
- the problem reported below was caused by CR/LF ending of the script's lines - Cygwin converts most of DOS's CR/LFs into LFs, but apparently not all - however, I'm told the gdb distribution (gdb-7.3.1.tar.gz) does NOT have CR/LFs anywhere, only LFs - the original LFs were "generously" converted into CR/LFs when I extracted the archive with WinZip (bad idea!) - extracting the package within Cygwin with 'tar xvfz gdb-7.3.1.tar.gz' solved the problem below. Unfortunately I'm having another problem building gdb... but I'm starting another thread for that. Cheers, Emanuel manu0507 wrote: > > Hello, > > Having only found gdb 7.2 pre-built for Win-64, I decided I'd try and > build the 7.3.1 myself, using MinGW64. To do so, I first installed the > latest Cygwin environment (1.7.9-1), which appears to be running > flawlessly. > Once in Cygwin, I cd'd to the previously extracted gdb-7.3.1 and tried > what appears to be the first thing to do according to the documentation, > namely running configure. But no luck, here's what I got: > > Manu@Holland /cygdrive/d/Installs/gdb_7_3_1/gdb-7.3.1 > $ ./configure > ./configure: line 14: $'\r': command not found > ./configure: line 29: syntax error near unexpected token `newline' > '/configure: line 29: ` ;; > > This looks to me like a problem with line ends... any idea? > > Many thanks for your help, > > Emanuel > > -- View this message in context: http://old.nabble.com/Trouble-building-gdb-7.3.1-in-Cygwin-on-Win7-64-tp32982638p32996025.html Sent from the Gnu - gdb - Bugs mailing list archive at Nabble.com. _______________________________________________ bug-gdb mailing list bug-gdb@gnu.org https://lists.gnu.org/mailman/listinfo/bug-gdb