[Crash-utility] [PATCH 0/5] let make flexible for multiple host
Dave Anderson
anderson at redhat.com
Tue Apr 17 14:44:07 UTC 2012
----- Original Message -----
> Hi Dave,
>
> This patch set will make configure or build flexible for host environment,
> in particular dealing with cross compiler.
> Please consider about this proposal.
>
> patch#1:
> By declaring tables about target and host relationships,
> cleanup corresponding code and the new build combination will be
> adapted briefly.
>
> Remaining patches:
> Try to relieve cross compiler burden by using explicit host_cross option.
> I'm using cross compiler environ host=x86 for target=ppc,
> and might attempt target=<another arch> in the near future.
> I stocked private patches to accomplish cross compiling
> but I'd like to discard them permanently with your agreement.
>
> Thanks,
> Toshi
I am presuming that you have successfully built a PPC binary on an
x86 or x86_64 host, and then you have copied the binary to a PPC host
that doesn't have a resident compiler? But then again, looking at your
patch as is, it looks like you can only allow "target=PPC" on a PPC64 host,
which is already supported?:
static struct host_table {
... [ cut ] ...
}, ppc[] = {
{
.host = PPC64,
.cflags = "-m32 -D_FILE_OFFSET_BITS=64 -fPIC",
.gdb_conf_flags = "--target=ppc-elf-linux CFLAGS=-m32",
}
};
In any case, I would prefer that you specifically address your
particular PPC-on-X86 build issue, because I'm not sure what
other combinations would be particularly useful.
I'm not particularly interested in speculative changes. The only
future architecture support I can see on the horizon is 64-bit ARM,
and that is a few a few years away. And we are lucky that x86 and
ARM have the same endianness and data-type sizes, so we can continue
(hopefully) to build x86_64 binaries to analyze 64-bit ARM vmcores
on x86_64 hosts.
Also, note that your patch fails because it collides with Rabin's queued
fix for building SIAL for target=ARM and target=PPC builds:
[Crash-utility] [PATCH] build sial with TARGET_CFLAGS
https://www.redhat.com/archives/crash-utility/2012-March/msg00113.html
Dave
>
> Toshikazu Nakayama (5):
> configure: retake the way of host compiler detection
> Makefile: wrap cc, gcc and ar with common make valiables
> make: add host_cross option
> build_data: handle CC valiable
> configure: handle cross compile with target=ppc host_cross=x86
>
> Makefile | 144 +++++++++--------
> configure.c | 441
> ++++++++++++++++++++++-----------------------------
> extensions/Makefile | 10 +-
> extensions/sial.mk | 6 +-
> extensions/snap.mk | 6 +-
> 5 files changed, 289 insertions(+), 318 deletions(-)
>
>
>
>
>
>
>
> --
> Crash-utility mailing list
> Crash-utility at redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility
>
More information about the Crash-utility
mailing list