From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id G5uLOsYPCWQZVAkAWB0awg (envelope-from ) for ; Wed, 08 Mar 2023 17:44:22 -0500 Received: by simark.ca (Postfix, from userid 112) id E23731E223; Wed, 8 Mar 2023 17:44:22 -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=OsxgeE+E; 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.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.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 931B91E110 for ; Wed, 8 Mar 2023 17:44:22 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D3C81385782B for ; Wed, 8 Mar 2023 22:44:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3C81385782B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678315460; bh=/oa2Y+MvQirSskwcgYrlY3dSGqpc69Y0ucwO72unwbY=; h=References:In-Reply-To:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=OsxgeE+EjNCAKpMkUm3Dp+HpOV/xtgHrVO8PbWT/N6gYau5axrj5RrUAn9T97mRWp 3Gd1tRrfQDg1jx6syIsopp88DDL5NX53T+cq+OBbX1albv2utszxkVG55VW2O3qDAb V/QoUQU1Yt0BDAXLMx2Z9+hPJhMv2UYnqM0rzO2g= Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id 4A24D3858D33 for ; Wed, 8 Mar 2023 22:43:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4A24D3858D33 Received: by mail-pf1-x433.google.com with SMTP id c10so236415pfv.13 for ; Wed, 08 Mar 2023 14:43:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678315433; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/oa2Y+MvQirSskwcgYrlY3dSGqpc69Y0ucwO72unwbY=; b=bc24UQ6AbGR298nrs0KvUc1uZhhDZdRBgG9NEYk6sohhu5I2RUaqAiqD6sGGvgA93A e7GKVex8jUEwDVnnzHCHmchUGDc1lKsdT3nkusN23XyYGnXTd4rtmdBTh+sh4aM7crQm MrYGusWSKAweYog92cZBUJevqUi0ZX3Y0shqy0VoUh+ICSL2B9NixhP3/cuRlsJ2MAMQ wl7tMpIV5hBDqTZYFmaZX+m9Xh6ZScNCBJW7fBXSJdcoLHWAK/tiweorFA/lvNczH5nx RisnrxyW2GGZ8gIZ+u5JXteg+MYuU5lq0Dp+f/QnWt5bspQcotMgnYKJzsVv7JGfZ+UF rzMw== X-Gm-Message-State: AO0yUKWKrw1YVnsMKUaReBGtxlO5kp1zll8foj7kh3d2gYfj61kWi7hr z3OFxv7aOf7OFvG5TaBfCxetHnctGPB/n1ilAuEIZe8bbTaa3A== X-Google-Smtp-Source: AK7set9cRSxgL+hOZ+JBMGHhXq75CVNG9YYw4qRZgdSwACMTZYq6aPdLaiEyN/xcxVBc9FEfP3wr6mEqTjG5PdZyxHM= X-Received: by 2002:a63:2953:0:b0:503:7be1:f812 with SMTP id bu19-20020a632953000000b005037be1f812mr7240387pgb.7.1678315433170; Wed, 08 Mar 2023 14:43:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 8 Mar 2023 14:43:41 -0800 Message-ID: Subject: Re: Unable to build GDB 13.1 on Solaris 11.3 Sparc To: Nemo Nusquam Cc: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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: Andrew Pinski via Gdb Reply-To: Andrew Pinski Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" On Wed, Mar 8, 2023 at 1:34=E2=80=AFPM 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=3D'-g3 -O0' \ > CFLAGS=3D'-g3 -O0' \ > NM=3D/usr/bin/gnm \ > SHELL=3D/usr/bin/bash \ > AR=3D/usr/bin/gar \ > AS=3D/usr/bin/as \ > CC=3D/home/build/gcc/git/bin/gcc \ > CXX=3D/home/build/gcc/git/bin/g++ \ > ../configure \ > --with-mpc=3D/usr/local \ > --with-gmp=3D/usr/local \ > --with-mpfr=3D/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=3D . 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=3D and --with--mpfr=3D 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. This issue was recorded as https://sourceware.org/bugzilla/show_bug.cgi?id=3D28500 . Thanks, Andrew Pinski > > I have libgmp (and building gcc 13 uses it) in /usr/local/lib: > > /usr/local/lib/libgmp.a: current ar archive, 32-bit symbol table > /usr/local/lib/libgmp.la: commands text > /usr/local/lib/libgmp.so: ELF 64-bit MSB dynamic lib SPARCV9 > Version 1, UltraSPARC3 Extensions Required, dynamically linked, not > stripped, no debugging information available > /usr/local/lib/libgmp.so.10: ELF 64-bit MSB dynamic lib SPARCV9 > Version 1, UltraSPARC3 Extensions Required, dynamically linked, not > stripped, no debugging information available > /usr/local/lib/libgmp.so.10.4.1: ELF 64-bit MSB dynamic lib > SPARCV9 Version 1, UltraSPARC3 Extensions Required, dynamically linked, > not stripped, no debugging information available > > Now I note that the Makefile is compiling to 32-bit objects but I have a > 32-bit libgmp.a. (I tried adding "-m64" but that caused other problems.) > > I am stumped. How do I proceed? > > N.