From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 83087 invoked by alias); 4 Feb 2020 10:51:19 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 83078 invoked by uid 89); 4 Feb 2020 10:51:18 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HTo:U*gdb X-HELO: mail-lj1-f174.google.com Received: from mail-lj1-f174.google.com (HELO mail-lj1-f174.google.com) (209.85.208.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 04 Feb 2020 10:51:17 +0000 Received: by mail-lj1-f174.google.com with SMTP id n18so18050768ljo.7 for ; Tue, 04 Feb 2020 02:51:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ZftdCCpHrj2xfhocmD3fOrN9MYRXYiOTs93puJC3l9M=; b=di1m/etkhNy4avzyWRGUbt0ba0hisabHT1J8NwSS1DqU2MRInK0tHBvcnLzQNNoKX6 my2v7LX3KVxyVVIgXNQAMp/6ncDG82sKclZW9BrClplPKMwsuupR68XWtR3+uJ5axvPD psmX+j17mKJStDJwZ2Bq2uhcG1tSuxRhemNN3cQtgzjEAErlUjw29QBlEQFWllYqvMyY QTin4AIiIKo5xo0kTG7RR2a51CsBpFoqe0Mf2x5EtjGBRY0JpY2Ah2+ahsILuRxb3CjU BPq7ygTrOC19zxaMR+xgZ48r8sRzKik2r5sVm+EkYGlP4sR77Bc8sBJmeriOkLgt9sJs 3Hug== MIME-Version: 1.0 From: William Tambe Date: Tue, 04 Feb 2020 10:51:00 -0000 Message-ID: Subject: Forced to use --enable-unit-tests=no otherwise cross-compilation fail To: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2020-02/txt/msg00011.txt.bz2 With Binutils 2.34, I have to use --enable-unit-tests=no with ./configure otherwise cross-compilation fail trying to link gdbarch-selftests.o: /usr/bin/ld: gdbarch-selftests.o: in function `_initialize_gdbarch_selftests()': /binutils-gdb-build/gdb/../../binutils-gdb/gdb/gdbarch-selftests.c:168: undefined reference to `selftests::register_test_foreach_arch(std::__cxx11::basic_string, std::allocator > const&, void (*)(gdbarch*))' Why is it now required to use --enable-unit-tests=no when cross-compiling ?