From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Benc Subject: Re: [bpf PATCH v2] bpf: fix for lex/yacc build error with gcc-5 Date: Thu, 26 Apr 2018 10:43:17 +0200 Message-ID: <20180426104317.338200ea@redhat.com> References: <20180425212245.25999.21181.stgit@john-Precision-Tower-5810> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ast@kernel.org, daniel@iogearbox.net, netdev@vger.kernel.org To: John Fastabend Return-path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:39824 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752018AbeDZInV (ORCPT ); Thu, 26 Apr 2018 04:43:21 -0400 In-Reply-To: <20180425212245.25999.21181.stgit@john-Precision-Tower-5810> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 25 Apr 2018 14:22:45 -0700, John Fastabend wrote: > --- a/tools/bpf/Makefile > +++ b/tools/bpf/Makefile > @@ -76,6 +76,8 @@ $(OUTPUT)bpf_asm: $(OUTPUT)bpf_asm.o $(OUTPUT)bpf_exp.yacc.o $(OUTPUT)bpf_exp.le > $(QUIET_LINK)$(CC) $(CFLAGS) -o $@ $^ > > $(OUTPUT)bpf_exp.lex.c: $(OUTPUT)bpf_exp.yacc.c > +$(OUTPUT)bpf_exp.yacc.o: $(OUTPUT)bpf_exp.yacc.c > +$(OUTPUT)bpf_exp.lex.o: $(OUTPUT)bpf_exp.lex.c Looks better than v1, the first dependency is important. For some reason, I did not need the other two rules. By the way, make invoked from tools/bpf/ has never really worked, even before my patchset. This works correctly: cd tools make bpf Jiri