From patchwork Thu Apr 9 11:51:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas T X-Patchwork-Id: 459713 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9FE2C140079 for ; Thu, 9 Apr 2015 21:52:11 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=sourceware.org header.i=@sourceware.org header.b=MsEg3Xrj; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=Kr z8jJf2NYKNBlD6eQMjS6X46Giu5QapnGJ8QSm6kqu8Ah53qJuBObY4f8p1xSeX6d tIx5l5AHklBgJZfJ6QxGiydY/wIjWDOaGuAn7TeS0TB7LQRs+HeYaYMCaS4xCHLZ K09+4HwGf77UFlaL3yGhR5hqZWrxTQsnyxgOF/0kk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=esF6KrG4 1meApI7odv9NYrf+M5I=; b=MsEg3XrjaA2pE7gu3mUVL3opCbVkXTwFOPU9vfnE 0OP9l3ETtmrIkMiBp/W/F7ZOKMJZZ2PC1mQaMkxwoU+ceWl+o136Stv/tjU0eW8K qL3f42Xp7fGo+ttntlozLi2wf5QlH7wJbdtLKv+ppM3I6pYTCbo8dgM5gbrPxmc8 iKE= Received: (qmail 32044 invoked by alias); 9 Apr 2015 11:52:04 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org Received: (qmail 32027 invoked by uid 89); 9 Apr 2015 11:52:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f54.google.com Received: from mail-wg0-f54.google.com (HELO mail-wg0-f54.google.com) (74.125.82.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 09 Apr 2015 11:52:02 +0000 Received: by wgso17 with SMTP id o17so5504566wgs.1 for ; Thu, 09 Apr 2015 04:51:59 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.194.200.229 with SMTP id jv5mr60051245wjc.59.1428580319503; Thu, 09 Apr 2015 04:51:59 -0700 (PDT) Received: by 10.27.231.130 with HTTP; Thu, 9 Apr 2015 04:51:59 -0700 (PDT) In-Reply-To: References: Date: Thu, 9 Apr 2015 13:51:59 +0200 Message-ID: Subject: Fwd: cross-gdb with expat support From: Thomas T To: crossgcc@sourceware.org FYI, with the following two patches I build a working Microsoft Windows cross compile toolchain including GDB. diff -uNr x-tools_org/bin/lib/ct-ng.1.20.0/scripts/build/debug/300-gdb.sh x-tools/bin/lib/ct-ng.1.20.0/scripts/build/debug/300-gdb.sh --- x-tools_org/bin/lib/ct-ng.1.20.0/scripts/build/debug/300-gdb.sh 2015-04-09 13:16:16.000000000 +0200 +++ x-tools/bin/lib/ct-ng.1.20.0/scripts/build/debug/300-gdb.sh 2015-04-09 13:02:51.535477908 +0200 @@ -16,6 +16,9 @@ if [ "${CT_GDB_CROSS}" = y ]; then need_gdb_src=y + if [ "${CT_TOOLCHAIN_TYPE}" = "canadian" ]; then + need_expat_src=y + fi fi if [ "${CT_GDB_GDBSERVER}" = "y" ]; then @@ -130,6 +133,26 @@ cd "${CT_BUILD_DIR}/build-gdb-cross" cross_extra_config=("${extra_config[@]}") + + + if [ "${CT_TOOLCHAIN_TYPE}" = "canadian" ]; then + # Build libexpat + CT_DoLog EXTRA "Building static cross expat" + CT_mkdir_pushd "${CT_WORK_DIR}/${CT_REAL_HOST}/build-expat-cross" + + CT_DoExecLog CFG \ + "${CT_SRC_DIR}/expat-2.1.0/configure"\ + --host=${CT_HOST} \ + --prefix="${CT_WORK_DIR}/${CT_REAL_HOST}/libexpat-cross" + + CT_DoLog EXTRA "Building cross-expat" + CT_DoExecLog ALL make + CT_DoLog EXTRA "Install cross-expat" + CT_DoExecLog ALL make install + CT_Popd + cross_extra_config+=("--with-libexpat-prefix=${CT_WORK_DIR}/${CT_REAL_HOST}/libexpat-cross") + fi + cross_extra_config+=("--enable-expat") cross_extra_config+=("--with-expat=yes") case "${CT_THREADS}" in ---------- Forwarded message ---------- From: Thomas T Date: 2015-04-03 8:49 GMT+02:00 Subject: cross-gdb with expat support To: crossgcc@sourceware.org Hi, as a lot of others before I have a problem to compile a toolchain with a cross-gdb. I try to build a toolchain for [EXTRA] build = x86_64-unknown-linux-gnu [EXTRA] host = x86_64-w64-mingw32 [EXTRA] target = arm-none-linux-gnueabihf The first problem I solved by myself. I removed the multiple definitions of caddr_t. But now I fail to build the static cross-gdb, with the well known error "expat is missing or unusable". Crosstool-NG is the newest one 1.20, I also tried git/master. I already looked for a patch/ideas at the mailing list, patchwork, google, tried several changes in 300-gdb.sh but didn't found a solution... The build PC runs on Ubuntu 14.04. And, even I do not know if it is required as the host is a WindowsPC I installed libexpat1-dev. Is there currently a well known problem? Which additional infos shall I provide, any ideas? Best Regards Thomas --- For unsubscribe information see http://sourceware.org/lists.html#faq diff -r -u ../4.9.2/gcc/configure ./gcc/configure --- 4.9.2/gcc/configure 2013-01-08 11:41:18.212779007 -0800 +++ 4.9.2/gcc/configure 2013-01-08 11:41:49.396779627 -0800 @@ -9252,7 +9252,7 @@ else cat >>confdefs.h <<_ACEOF -#define caddr_t char * +//#define caddr_t char * _ACEOF fi