From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-il1-x12d.google.com with SMTP id t1so1498952iln.8 for ; Thu, 09 Mar 2023 10:20:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; 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 :from:to:cc:subject:date:message-id:reply-to; bh=pYT7g2HN7tyXaOXMfOyORer2IUQTBqMB5IjhAWjZdoA=; b=paqFDkxGMRVIfnekGcxa4zuFxYCFvY/g5AXnfI0nk7u48k3zGjch6g4w+6TuKL3cKS pPi4P+LoiIBv8Z61JfEpkICr8mcHcw+s36v6WODAZybsKExIWC80Xy0GRd7+7MR4UxLT hi6x0YbuBakpgmY45ysT3XJxyjZboXq0X9+nGereWlOy6/BF9rTgjYyISKs9brbMwnxs X5A4TIv1qE3eCxZbmJWREcwZsJh65NoUqetF1K3d4kApFyGJ7yZcaGu5eWUbOzzVnF6e QPXYObMNMaYIkZuOm8tszKE/MIWurJNyJfQDfFooFjB6nq+8+c+2OyieQNDi/y8rdiWx ma0g== 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: From: Nemo Nusquam In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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. [...]