From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86993 invoked by alias); 3 Jul 2017 09:21:42 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 86976 invoked by uid 89); 3 Jul 2017 09:21:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=canadian, reflects, Hx-languages-length:1514 X-HELO: mail-yw0-f180.google.com Received: from mail-yw0-f180.google.com (HELO mail-yw0-f180.google.com) (209.85.161.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 03 Jul 2017 09:21:40 +0000 Received: by mail-yw0-f180.google.com with SMTP id a12so20645015ywh.3 for ; Mon, 03 Jul 2017 02:21:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Kp482gQ9CesjzaOYph6re4B4HWUZIJWUayahGGQaseQ=; b=oePDg5DjFqI44J5gSLN37Rz50LpgPhDXc1mGshTu39tZGWmi3eUb9S+d8xBaVtas9n LEOmOtJmVBCZnxDYAwnakUHlzs2CR63H5recZawIEHY3NOLpOHuC9nxR5344mmnDY5jG RL5ZahnME+eeWf8Yg+0seDhmx9u4XlNzgYqz3voOaYIw1pWluCXU3tE2GK4O2sY3YQ9f lnhrmjruZuy9u6Gp2LhMpelbaMUSeX/pk7CuKdURxi41VaCn+AvS9Nrm6VSZHAVU9pxx bdcFbml6bhIKBbxlmDYkDjTBgCI1+bMHCCNa2Qir9SSFEE3dr3Y1VFKgi9KXLYSFtqTH TVBw== X-Gm-Message-State: AKS2vOwj9x2My7kpv4vXyValtXGTBLZ5/1/MKBNpzoaGMdbWy63gPz6F hAPztboJs4QoNfiFX8sNqhjGKXeiy2mS4c4= X-Received: by 10.129.162.86 with SMTP id z83mr27751940ywg.103.1499073698504; Mon, 03 Jul 2017 02:21:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.53.8 with HTTP; Mon, 3 Jul 2017 02:21:38 -0700 (PDT) In-Reply-To: References: From: Yvan Roux Date: Mon, 03 Jul 2017 09:21:00 -0000 Message-ID: Subject: Re: [Libgomp, Fortran] Fix canadian cross build To: "gcc-patches@gcc.gnu.org" Cc: Jakub Jelinek , Paolo Bonzini Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00068.txt.bz2 On 23 June 2017 at 15:44, Yvan Roux wrote: > Hello, > > Fortran parts of libgomp (omp_lib.mod, openacc.mod, etc...) are > missing in a canadian cross build, at least when target gfortran > compiler comes from PATH and not from GFORTRAN_FOR_TARGET. > > Back in 2010, executability test of GFORTRAN was added to fix libgomp > build on cygwin, but when the executable doesn't contain the path, > "test -x" fails and part of the library are not built. > > This patch fixes the issue by using M4 macro AC_PATH_PROG (which > returns the absolute name) instead of AC_CHECK_PROG in the function > defined in config/acx.m4: NCN_STRICT_CHECK_TARGET_TOOLS. I renamed it > into NCN_STRICT_PATH_TARGET_TOOLS to keep the semantic used in M4. > > Tested by building cross and candian cross toolchain (host: > i686-w64-mingw32) for arm-linux-gnueabihf with issue and with a > complete libgomp. > > ok for trunk ? ping? > Thanks > Yvan > > config/ChangeLog > 2017-06-23 Yvan Roux > > * acx.m4 (NCN_STRICT_CHECK_TARGET_TOOLS): Renamed to ... > (NCN_STRICT_PATH_TARGET_TOOLS): ... this. It reflects the replacement > of AC_CHECK_PROG by AC_PATH_PROG to get the absolute name of the > program. > (ACX_CHECK_INSTALLED_TARGET_TOOL): Use renamed function. > > ChangeLog > 2017-06-23 Yvan Roux > > * configure.ac: Use NCN_STRICT_PATH_TARGET_TOOLS instead of > NCN_STRICT_CHECK_TARGET_TOOLS. > * configure: Regenerate.