Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6489362yba; Wed, 1 May 2019 13:23:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxando1f5KMCU/ZaHj120LSeebCU2jz7SJkV4+KwpyZOX4X5NTxZN9zZHg3R2WAUo30DRx X-Received: by 2002:a62:4607:: with SMTP id t7mr10905297pfa.138.1556742185453; Wed, 01 May 2019 13:23:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556742185; cv=none; d=google.com; s=arc-20160816; b=jPDYOy/9GkumPoOsHsBV9fvudTNLJI5nqP/B06l/4ly54rX3pvQsKFqL9e4X72D+5G V+sZVgEY4qjkR36IHKrEXeUA/KYdjgY/F3NXojbWYqzGsTbMu6X+UkunmWCW50q+yQXd VeJJOId4KxGgZoqJhiyyoxFmmCTB+Uu8RQFyqOjcEXFP5gaUqzPNo5XsXJF6A9uGpc5s pkoa1EQ9DAOHg/quJi8yxx4Zad687GcV9HMvv6jQfPsQm9pNoIm7MEUTXB8F4d8/pdEj z0iQjZa9r2ZTvrOyvb27LfhCcnms7OrVRKTUellScqgpGvDVc1p2ZlHEb8hJQfJlfsM0 nyrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:date:message-id :from:references:cc:to:subject; bh=iAu2JMFmA7NhCucF3/Gh4GEoChU8Gd4FwtDv8f0Cfe0=; b=ADGu72lp3jaoYVYxtyc9jqNFWhliu+DBapRZjykr/2pe1k1TACusuGrMKTVzv1mm2W YIH71Gv9oAvbqIxHyYxHPxYX0Jjul2mvL2gZ4ZGCcYKwbYe2sR2M4yDvVpjCmmk4nXfx Qjzb2J0XPijiOOnRd8wSon9+A/uWgXYUEGYmHzj1R37D1B1kaPS9RIFosWLRLfaRopda 67dRvH/aImliETzN2JnIVqPz4DdQmkYdnkhHCuMMuQtC9MM/052LCLu+hQ0M8aURGfxA mvEpHZCjgIy5sXYAtmPLoeK7N8iRsKzUcjnKGnV3x0QKUHYfGZhm1CCYXDKRYYhlnSB3 CTQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3si39160142pgj.136.2019.05.01.13.22.50; Wed, 01 May 2019 13:23:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726289AbfEAUUG (ORCPT + 99 others); Wed, 1 May 2019 16:20:06 -0400 Received: from mx2.yrkesakademin.fi ([85.134.45.195]:47720 "EHLO mx2.yrkesakademin.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726077AbfEAUUG (ORCPT ); Wed, 1 May 2019 16:20:06 -0400 Subject: Re: perf build broken in 5.1-rc7 To: Arnaldo Carvalho de Melo CC: Song Liu , Linux List Kernel Mailing , Peter Zijlstra , Ingo Molnar References: <560abacf-da1d-7f55-755c-2086096bdf2c@mageia.org> <20190501130751.GB21436@kernel.org> <932c4e06-c4db-7bb8-769d-75651d092450@mageia.org> <20190501173158.GC21436@kernel.org> From: Thomas Backlund Message-ID: Date: Wed, 1 May 2019 23:20:02 +0300 MIME-Version: 1.0 In-Reply-To: <20190501173158.GC21436@kernel.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-WatchGuard-Spam-ID: str=0001.0A0C0209.5CC9FF75.001F,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-WatchGuard-Spam-Score: 0, clean; 0, virus threat unknown X-WatchGuard-Mail-Client-IP: 85.134.45.195 X-WatchGuard-Mail-From: tmb@mageia.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Den 01-05-2019 kl. 20:31, skrev Arnaldo Carvalho de Melo: > Em Wed, May 01, 2019 at 05:09:59PM +0300, Thomas Backlund escreveu: >> Den 01-05-2019 kl. 16:07, skrev Arnaldo Carvalho de Melo: >>> Em Tue, Apr 30, 2019 at 04:31:14PM +0300, Thomas Backlund escreveu: >>> Can you check the output for >>> /tmp/build/perf/feature/test-disassembler-four-args.make.output in your >>> system? And also check what is the prototype for the disassembler() >>> routine on mageia7? >> I guess this is what fails the test: > >> cat /tmp/build/perf/feature/test-disassembler-four-args.make.output >> /usr/bin/ld: /usr/lib64/libbfd.a(plugin.o): in function `try_load_plugin': >> /home/iurt/rpmbuild/BUILD/binutils-2.32/objs/bfd/../../bfd/plugin.c:243: >> undefined reference to `dlopen' >> /usr/bin/ld: >> /home/iurt/rpmbuild/BUILD/binutils-2.32/objs/bfd/../../bfd/plugin.c:271: >> undefined reference to `dlsym' >> /usr/bin/ld: >> /home/iurt/rpmbuild/BUILD/binutils-2.32/objs/bfd/../../bfd/plugin.c:256: >> undefined reference to `dlclose' >> /usr/bin/ld: >> /home/iurt/rpmbuild/BUILD/binutils-2.32/objs/bfd/../../bfd/plugin.c:246: >> undefined reference to `dlerror' > >> as we allow dynamic linking and loading > >> And we use linker flags: > >> rpm --eval %ldflags >> ?-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id >> -Wl,--enable-new-dtags > Would this help? > > diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config > index fe3f97e342fa..6d65874e16c3 100644 > --- a/tools/perf/Makefile.config > +++ b/tools/perf/Makefile.config > @@ -227,7 +227,7 @@ FEATURE_CHECK_LDFLAGS-libpython-version := $(PYTHON_EMBED_LDOPTS) > > EATURE_CHECK_LDFLAGS-libaio = -lrt > > -FEATURE_CHECK_LDFLAGS-disassembler-four-args = -lbfd -lopcodes > +FEATURE_CHECK_LDFLAGS-disassembler-four-args = -lbfd -lopcodes -ldl > > CFLAGS += -fno-omit-frame-pointer > CFLAGS += -ggdb3 > Yeah, that fixes it and /tmp/build/perf/feature/test-disassembler-four-args.make.output is now empty as wanted. So I guess: Reported-by: Thomas Backlund Tested-by: Thomas Backlund Thanks! -- Thomas