From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11455 invoked by alias); 5 Jan 2010 06:05:08 -0000 Received: (qmail 11261 invoked by uid 22791); 5 Jan 2010 06:05:07 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from p12018-ipbffx02marunouchi.tokyo.ocn.ne.jp (HELO mail.pizzafactory.jp) (222.147.75.18) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Jan 2010 06:05:03 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.pizzafactory.jp (Postfix) with ESMTP id 7663F58FF6E8 for ; Tue, 5 Jan 2010 15:05:09 +0900 (JST) Received: from mail.pizzafactory.jp ([127.0.0.1]) by localhost (ldap.monami-software.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n9SrBmpUUGKN for ; Tue, 5 Jan 2010 15:05:08 +0900 (JST) Received: from [192.168.0.9] (unknown [192.168.0.9]) by mail.pizzafactory.jp (Postfix) with ESMTP id 4CCA858FF6D7 for ; Tue, 5 Jan 2010 15:05:08 +0900 (JST) From: Masaki Muranaka Content-Type: multipart/mixed; boundary=Apple-Mail-44-896457903 Subject: [sim] canadian cross build for m32c-elf target. Date: Tue, 05 Jan 2010 06:05:00 -0000 Message-Id: To: gdb-patches@sourceware.org Mime-Version: 1.0 (Apple Message framework v1077) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-01/txt/msg00073.txt.bz2 --Apple-Mail-44-896457903 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Content-length: 448 Hello. I had an build time error like follows when I configured with target=3Dm32c= -elf, host=3Di386-pc-mingw32, build=3Dx86_64-darwin. /bin/sh: ./opc2c: cannot execute binary file opc2c must be built by CC_FOR_BUILD instead of CC as it is expected to run = on build machine, right? 2010-01-05 Masaki Muranaka * sim/m32c/Makefile.in : Use CC_FOR_BUILD to build opc2c. -- Masaki Muranaka Monami software --Apple-Mail-44-896457903 Content-Disposition: attachment; filename=0001-Makefile.in-Use-CC_FOR_BUILD-to-build-opc2c.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Makefile.in-Use-CC_FOR_BUILD-to-build-opc2c.patch" Content-Transfer-Encoding: quoted-printable Content-length: 1584 >From 4b170eafcb1f810b70f96cf61040f1577e7b3147 Mon Sep 17 00:00:00 2001=0A= From: Masaki Muranaka =0A= Date: Tue, 5 Jan 2010 14:47:12 +0900=0A= Subject: [PATCH] Makefile.in: Use CC_FOR_BUILD to build opc2c.=0A= =0A= =0A= Signed-off-by: Masaki Muranaka =0A= ---=0A= sim/m32c/Makefile.in | 10 +++++++---=0A= 1 files changed, 7 insertions(+), 3 deletions(-)=0A= =0A= diff --git a/sim/m32c/Makefile.in b/sim/m32c/Makefile.in=0A= index c304ab8..72e9032 100644=0A= --- a/sim/m32c/Makefile.in=0A= +++ b/sim/m32c/Makefile.in=0A= @@ -55,7 +55,7 @@ m32c.c : m32c.opc opc2c=0A= ./opc2c -l m32c.out $(srcdir)/m32c.opc > m32c.c=0A= =20=0A= opc2c : opc2c.o safe-fgets.o=0A= - $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@=0A= + $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) $^ -o $@ $(BUILD_LIBS)= =0A= =20=0A= sample.x : $(srcdir)/sample.S $(srcdir)/sample.ld=0A= ../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample.S -o sample.o= =0A= @@ -82,10 +82,14 @@ load.o : load.h cpu.h mem.h=0A= main.o : cpu.h mem.h misc.h load.h=0A= mem.o : mem.h cpu.h syscalls.h=0A= misc.o : cpu.h misc.h=0A= -opc2c.o : safe-fgets.h=0A= reg.o : cpu.h=0A= -safe-fgets.o : safe-fgets.h=0A= srcdest.c : cpu.h mem.h=0A= syscalls.c : cpu.h mem.h syscalls.h=0A= =20=0A= r8c.o : cpu.h mem.h misc.h int.h=0A= +=0A= +opc2c.o : opc2c.c safe-fgets.h=0A= + $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/opc2c.c=0A= +=0A= +safe-fgets.o : safe-fgets.c safe-fgets.h=0A= + $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/safe-fgets.c=0A= --=20=0A= 1.6.5.2=0A= =0A= --Apple-Mail-44-896457903--