Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4938939ybl; Wed, 22 Jan 2020 07:24:57 -0800 (PST) X-Google-Smtp-Source: APXvYqw5znzp1Ss4iSB2bJpDOU59LX+0+176W74DrMa+NI+FjHtLLsbdmGTPLijA4L/gtrD10lg5 X-Received: by 2002:a9d:3a66:: with SMTP id j93mr8035803otc.25.1579706696896; Wed, 22 Jan 2020 07:24:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579706696; cv=none; d=google.com; s=arc-20160816; b=bZvNfbRvbAqxUuILjQqSwahbyou3buVG9nWE0RSkzDoaQCnlv9bFUei7CfFGUnNRoh pAI3xzHVdrqmL0ftvQH95Ma7VEwucf6AAqV5r7ETB5SsHMcQp98JpQF9/dUnrrXkSfnC QkVQZ3cqszx0pkiMPNS3HZym3EsPYKTTz/CkAevgWy2F0HLwMhbm67a6i8S26c7XeDZv fYpIP4m+50t2uA1VWky5jFUuvd36oxZdefYQUDJlZ1k8XCEga2U7pvTlx5MXb1Sx+OD4 pXAyqGbuWoKX6ZJjHqdq9l9iDT3NC24HKOTAlY/dyNqTRdqgNtYH6WvxF1cikPX1+IYP Y5rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=p2PdKnVWhblkqCyfNLUjHrEaTYiP6hp3ap+JAXEg36s=; b=skS2iYAMuoUdeJpk+z34kQyNZvIzUORqnDtBYueUVsUvjpETyCLXVGewst2FCFY38j OoqkBS0luMcGyPFrFB6fEG4cHcGylxTwOmb/vpv2+L2YB7aSfowuVsgEtwe0wb6cFYwZ yHYcc5THgOX7yHjasVhKVR3pnYMXmavdK9GpSHlFTrmCIKA1mQuXu0d0HPd5rkxUshsr rqy+7FVGoeiBZNCBdBBdZ6nvZN2MxmrIsjr+HY1zALB+ivEFidpts0H25dKYMfUIr4bC VjUaupTKLn+s3pW6N3xy36iFkkBLIMksJzORX/dukBi8e7eIfbyQzDfInwNNNsOL7Foy osCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=N8HCV5Ju; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si23798997otq.217.2020.01.22.07.24.34; Wed, 22 Jan 2020 07:24:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=N8HCV5Ju; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725943AbgAVPYY (ORCPT + 99 others); Wed, 22 Jan 2020 10:24:24 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:40434 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725802AbgAVPYY (ORCPT ); Wed, 22 Jan 2020 10:24:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579706663; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p2PdKnVWhblkqCyfNLUjHrEaTYiP6hp3ap+JAXEg36s=; b=N8HCV5JuTF4amatb51bbOMBXEmncOyh1rLscLr/9714Uax0St9NBO0yf51IkZp9Tkq2LDc jOqIkvRiymBo/xyQLxmK4IOX9ypDHLOpqU4dGZLxVlkNv497Ad/SoTqOqfAWwEIXu/HQ6c IaAaQydprWCRFZ35ZuQnbX9xgr0wUuU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-428--IW-CnW8P1qazW83UGvZUA-1; Wed, 22 Jan 2020 10:24:21 -0500 X-MC-Unique: -IW-CnW8P1qazW83UGvZUA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C68F0102CE29; Wed, 22 Jan 2020 15:24:19 +0000 (UTC) Received: from madhat.boston.devel.redhat.com (madhat.boston.devel.redhat.com [10.19.60.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2D2415C1BB; Wed, 22 Jan 2020 15:24:19 +0000 (UTC) Subject: Re: [nfs-utils PATCH] locktest: Makefile.am: remove host compiler costraint To: Petr Vorel Cc: Giulio Benetti , linux-nfs@vger.kernel.org, Mike Frysinger References: <20200115160806.99991-1-giulio.benetti@benettiengineering.com> <20200119191047.GB11432@dell5510> From: Steve Dickson Message-ID: <6606c604-61ef-a3fa-8ced-1d9dfb822f64@RedHat.com> Date: Wed, 22 Jan 2020 10:24:18 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20200119191047.GB11432@dell5510> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Petr, On 1/19/20 2:10 PM, Petr Vorel wrote: > Hi, > >> Currently locktest can be built only for host because CC_FOR_BUILD is >> specified as CC, but this leads to build failure when passing CFLAGS not >> available on host gcc(i.e. -mlongcalls) and most of all locktest would >> be available on target systems the same way as rpcgen etc. So remove CC >> and LIBTOOL assignments. > >> Signed-off-by: Giulio Benetti > Reviewed-by: Petr Vorel > Tested-by: Petr Vorel > NOTE: as I understand it's a compilation issue of a tool, so I didn't run > rpcgen, I just test various compilation variants for buildroot. Just to be clear... Giulio's patch, removing CC and LIBTOOL from the locktest/Makefile.am does allows your cross build to succeed, correct? steved. > > Kind regards, > Petr > >> --- >> tools/locktest/Makefile.am | 3 --- >> 1 file changed, 3 deletions(-) > >> diff --git a/tools/locktest/Makefile.am b/tools/locktest/Makefile.am >> index 3156815d..e8914655 100644 >> --- a/tools/locktest/Makefile.am >> +++ b/tools/locktest/Makefile.am >> @@ -1,8 +1,5 @@ >> ## Process this file with automake to produce Makefile.in > >> -CC=$(CC_FOR_BUILD) >> -LIBTOOL = @LIBTOOL@ --tag=CC >> - >> noinst_PROGRAMS = testlk >> testlk_SOURCES = testlk.c >> testlk_CFLAGS=$(CFLAGS_FOR_BUILD) >