From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id BB1403858010 for ; Mon, 14 Mar 2022 20:53:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BB1403858010 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.90,181,1643702400"; d="scan'208";a="75724073" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 14 Mar 2022 12:53:41 -0800 IronPort-SDR: MZ2jg288BnhM4qk6FE3d53vYfyXdZcznbwi9SgGbEG+edwmIvaut8510iqROYaxfRHbI6Zd497 jz5B464oiqfYa1hY9HyuYM0yINLPKMrPT+mMtanv29b47BsWcX0x2yPsPbrWembsQPzwxGyj+B 7J+8XsFwmpB4gSkLqcHu0EoaTXeyi/THaNX7HyWQoaudoVuCGM9CB1KSUmUuYBILZno6jNSoFT 70BNQpk/P5C6RVgvc9yYWKiruGoTNVDabsUX6zzuteP6+TgdQlSFXJKSkyWkntCm1OV46QFVjK r+Y= Date: Mon, 14 Mar 2022 20:53:36 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Tobias Burnus CC: Binutils , Vladimir Mezentsev , Nick Clifton Subject: =?UTF-8?Q?Re=3A_Build_issues_due_to_patch_=22gprofng=3A_a?= =?UTF-8?Q?_new_GNU_profiler=22_=E2=80=93_CLOCK=5FMONOTONIC=5FRA?= =?UTF-8?Q?W_not_defined?= In-Reply-To: Message-ID: References: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3114.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2022 20:53:44 -0000 On Mon, 14 Mar 2022, Tobias Burnus wrote: > Hi Vladimir, hi Nick, > > Friday's commit "gprofng: a new GNU profiler", > https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=bb368aad297fe3ad40cf397e6fc85aa471429a28 > > broke the build here (build server using on purpose an older Linux/glibc): I'm seeing other errors as well from my glibc bot . Building a cross from x86_64-linux-gnu to aarch64-linux-gnu, I get: libtool: link: gcc -shared -fPIC -DPIC .libs/synctrace.o -Wl,--version-script -Wl,/scratch/jmyers/bmg/many12/src/binutils/gprofng/libcollector/mapfile.aarch64-Linux -Wl,--no-as-needed -Wl,-lrt -Wl,-ldl -Wl,-soname -Wl,libgp-sync.so -o .libs/libgp-sync.so /usr/bin/ld: .libs/libgp-sync.so: version node not found for symbol pthread_cond_wait@@GLIBC_2.3.2 /usr/bin/ld: failed to set dynamic section sizes: bad value collect2: error: ld returned 1 exit status make[6]: *** [Makefile:573: libgp-sync.la] Error 1 Using mapfile.aarch64-Linux - which has symbol versions appropriate for the target - is fundamentally incorrect when building a library for the host. (You can't build libraries for the target at all when building binutils; binutils is an early bootstrap step, before building GCC, before building glibc.) And on a system with older host compiler (GCC 5), --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-glibc-linux-gnu, I get a series of errors of the form: QLParser.yy: In function 'QL::Parser::symbol_type QL::yylex(QL::Result&)': QLParser.yy:267:82: error: invalid initialization of non-const reference of type 'const Expression*&' from an rvalue of type 'const Expression*' (I might ask incidentally why the Bison output files QLParser.tab.cc and QLParser.tab.hh are checked in - normally binutils doesn't commit Bison output files to the repository on master, although it makes sure to include them in release tarballs. If there's a Bison version dependency issue, then arrange not to build gprofng when the installed Bison is too old.) -- Joseph S. Myers joseph@codesourcery.com