gcc 4.9.3 : x86_64-pc-cygwin
ld 2.25
Target system:
gcc 4.9.3 : i686-elf
ld 2.25
And here goes the problem - binutils compile without any issues wheras gcc bumps out with this error:
I started off on my own experience to build a cross compiler. Binutils compiled successfully whereas gcc stalled at the same place every time. Then flushed out whole Cygwin package, removed any trace of cygwin and went on to read the wiki page to see if I'm missing something. In fact, to be sure, I followed every single step and installed all the necessary packages, as mentioned. Guess what? This time, ld won't even compile. So I'd to fix all the dependency issues manually as it seems that article doesn't cover all required packages at all (for e.g diffutils). Now that I've got ld to compile, I'm pretty much same with gcc. Same error. I'm tempted to say this is incompatibility issue unless someone has something else to say.fail (msg, strlen (msg), "stack smashing detected: terminated");
^
../../../gcc-4.9.3/libssp/ssp.c:169:3: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
../../../gcc-4.9.3/libssp/ssp.c:169:14: warning: incompatible implicit declaration of built-in function 'strlen'
fail (msg, strlen (msg), "stack smashing detected: terminated");
^
../../../gcc-4.9.3/libssp/ssp.c: In function '__chk_fail':
../../../gcc-4.9.3/libssp/ssp.c:176:14: warning: incompatible implicit declaration of built-in function 'strlen'
fail (msg, strlen (msg), "buffer overflow detected: terminated");
^
Makefile:459: recipe for target 'ssp.lo' failed
make[3]: *** [ssp.lo] Error 1
make[3]: Leaving directory '/usr/src/build-gcc/i686-elf/libssp'
Makefile:328: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/src/build-gcc/i686-elf/libssp'
Makefile recipe for target 'all-target-libssp' failed
make[1]: *** [all-target-libssp] Error 2
make[1]: Leaving directory '/usr/src/build-gcc'
Makefile:844: recipe for target 'all' failed
make: *** [all] Error 2
I'm going for a fallback to version 4.92. This is pretty much a waste of time, so I ask, "Has anyone managed to get gcc 4.9.3 & ld 2.25 working?"