From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 0eiHO4EjCmSKFQoAWB0awg (envelope-from ) for ; Thu, 09 Mar 2023 13:20:49 -0500 Received: by simark.ca (Postfix, from userid 112) id E0B131E223; Thu, 9 Mar 2023 13:20:49 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=CaYgGlod; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_REPLYTO_END_DIGIT,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_MED,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 6EB6E1E0D3 for ; Thu, 9 Mar 2023 13:20:49 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A8CB33858028 for ; Thu, 9 Mar 2023 18:20:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A8CB33858028 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678386048; bh=pYT7g2HN7tyXaOXMfOyORer2IUQTBqMB5IjhAWjZdoA=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=CaYgGlodun0rp/EfbyJR3axX9gxk3soZ7nOohNTtRv7F3lGQnsoQxcn0R3mooQrbW +S6VhndgPxCKaVstdz8debaB0aw1St2F6Gx1lnjhSTTkuMRZcjW1LvyAVR0fasd8Ld j5ZFHGsbMx85je+ZOdswtnl4uv90hOyiFIj465Mg= Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by sourceware.org (Postfix) with ESMTPS id 258553858D20 for ; Thu, 9 Mar 2023 18:20:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 258553858D20 Received: by mail-il1-x12d.google.com with SMTP id t1so1498952iln.8 for ; Thu, 09 Mar 2023 10:20:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678386021; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pYT7g2HN7tyXaOXMfOyORer2IUQTBqMB5IjhAWjZdoA=; b=C2+J0cIkiVeXadBjLOBOS/sWw4g1NEARANVjdG8xvJqpVfF7G26hEbTzCHGmSU1/8R 3mDUdrdqu6sSxjhaM85YcvcOrJaNMjOBvxxWCKRDX58QDCw+sGdohdHkHnhgmV5/jIkh T7mIHJWYQNRr6W8JGy/P4iKN3CXt0OQQmiwE8KqbMaMUlJRYH0i5MnYWwRYbKBklhf/e iy1gzBKLzYiMfgRDDW6s2qCzbNJqlBZbvh/h186e8+1ilSAoOvhplBKLZ0X/9QmtoIfm UrOPjTEzBPSIJbbHGTMTFo/uoL1doceXU7nTXwYTUDZv3mJ6/XcXPJthWyhVVxdDrSy1 fr6Q== X-Gm-Message-State: AO0yUKW2B1DiEdSWD37E1S0jxCyC+MbSYGSSAA218skHfR6WCN+WFLEk Qv5SnD2+vTdELZ+Q6Pxu5bQ= X-Google-Smtp-Source: AK7set/1ppuEVUzdNxE7alAqdWYx6OrYsyvTvXxe1NyPdAQuslewre3KfHJuCeHTjYQYPEQQOLJdKw== X-Received: by 2002:a05:6e02:20c7:b0:310:c746:d35d with SMTP id 7-20020a056e0220c700b00310c746d35dmr21516791ilq.25.1678386021334; Thu, 09 Mar 2023 10:20:21 -0800 (PST) Received: from [10.0.1.25] (198.27.14-65.ip.mltn.standardbroadband.ca. [198.27.14.65]) by smtp.gmail.com with ESMTPSA id n19-20020a02a913000000b003c2b67fac92sm6109472jam.81.2023.03.09.10.20.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Mar 2023 10:20:20 -0800 (PST) Message-ID: <054b1e04-e336-c7d2-80dd-a3d29a483142@gmail.com> Date: Thu, 9 Mar 2023 13:20:19 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: Unable to build GDB 13.1 on Solaris 11.3 Sparc Content-Language: en-CA To: Andrew Pinski Cc: gdb@sourceware.org References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Nemo Nusquam via Gdb Reply-To: Nemo Nusquam Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" On 2023-03-08 17:43, Andrew Pinski wrote: > On Wed, Mar 8, 2023 at 1:34 PM Nemo Nusquam via Gdb wrote: >> I am trying (and failing) to build GDB 13.1 on Solaris 11.3 Sparc. >> >> Here is my configuration script. >> >> CXXFLAGS='-g3 -O0' \ >> CFLAGS='-g3 -O0' \ >> NM=/usr/bin/gnm \ >> SHELL=/usr/bin/bash \ >> AR=/usr/bin/gar \ >> AS=/usr/bin/as \ >> CC=/home/build/gcc/git/bin/gcc \ >> CXX=/home/build/gcc/git/bin/g++ \ >> ../configure \ >> --with-mpc=/usr/local \ >> --with-gmp=/usr/local \ >> --with-mpfr=/usr/local \ >> --enable-64-bit-bfd \ >> --enable-tui \ >> --with-curses \ >> --disable-bootstrap \ >> --disable-binutils \ >> --disable-ld \ >> --disable-gprof \ >> --disable-gprofng \ >> --disable-gold \ >> --disable-gas \ >> --disable-sim >> >> (Some flags taken from https://sourceware.org/gdb/wiki/BuildingNatively .) >> >> The makefile creates ./gdb inside the build directory and then stops as >> follows: >> >> checking for libgmp... no >> configure: error: GMP is missing or unusable >> gmake[1]: *** [Makefile:11447: configure-gdb] Error 1 >> gmake[1]: Leaving directory '/home/build/opt/gdb-13.1/bld' > This was a known issue in GDB 13.1, It has been fixed/changed on the > trunk and will be included with GDB 14. For pre-GDB 14, the option you > want to use for configure is --with-libgmp-prefix= . libmpfr is > similar you need to use --with-libmpfr-prefix . > These options are documented in the installation documentation for GDB > 13 but they were not part of the toplevel configure which is why they > were not mentioned there. The options --with-gmp= and --with--mpfr= > were only originally used for building GCC (GCC, GDB, binutils [and > newlib] all share the same toplevel configure/make file system) and > this was why folks got confused and even more I made the fix for this > to use these options also for GDB. Thank you, Andrew.  I will try rebuilding as you suggest. > This issue was recorded as > https://sourceware.org/bugzilla/show_bug.cgi?id=28500 . I tried searching but I erroneously assumed it was a Solaris problem and found nothing relevant. > Thanks, > Andrew Pinski Thank you, N. [...]