Igor Marnat wrote:
FYI I have built to Mac-OSX cross compiler based on 3.4.3. The runtime build failed since I have no OSX libc headers (and no OSX binutils...). But it got past configure stage and attempted to compile files.
Waldek, thank you very much for your answer, it directed me to the right way. I've managed to build cross compiler for ppc from GPC 20050217 version. Just for the information: in <gpc_source_dir>/p/rts/configure I've added string host_alias=i686-pc-linux-gnu
just before strings
build=$build_alias host=$host_alias target=$target_alias
and things went better, gpc understood that it's being built as a cross-compiler. I didn't make the patch because it is not a real one but perhaps it will be useful information for someone.
Also configure is a generated file (by autoconf) so we couldn't apply such a patch anyway. I currently don't have the time to investigate the issue further, but probably in the end we either need to change the autoconf input (this would be a patch for us to apply), or fix something in autoconf itself (which would be a thing for the autoconf maintainers) -- or use another autoconf versions (I know they differ quite a bit, and I currently don't really follow them) ...
Frank