I'm trying to use crossdev to build the complete toolchain for m68k. I have successfully done this once before but it doesn't seem to work anymore. When compiling gcc (3.4.4 or 3.4.5) for stage 1, it bombs out, starting with this.
In file included from ./gthr-default.h:1,
/var/tmp/cross/m68k-linux/portage/gcc-3.4.5/work/gcc-3.4.5/gcc/gthr-posix.h:43:21: pthread.h: No such file or directory
/var/tmp/cross/m68k-linux/portage/gcc-3.4.5/work/gcc-3.4.5/gcc/gthr-posix.h:44:20: unistd.h: No such file or directory
This problem is widely mentioned on Google. It happens because it's asking for kernel headers when glibc hasn't been compiled yet. Most people suggest using --disable-threads to compile gcc the first time. Is this absolutely necessary and can this be resolved for crossdev? I don't really understand why this is only happening now when I managed to successfully cross-compile gcc 3.4.4 a while back.
we patch gcc stage1 so it doesnt require headers
you didnt post any of the logs that crossdev told you to, nor did you post `emerge info` like you were supposed to
Created attachment 80317 [details]
Created attachment 80318 [details]
Sorry. I thought that would be enough info for you to go on.
If it helps at all, I managed to compile a native version of gcc 3.4.5 for m68k-linux without any problems.
ok, the problem is your target