From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 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-pf1-x433.google.com with SMTP id c10so236415pfv.13 for ; Wed, 08 Mar 2023 14:43:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678315433; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/oa2Y+MvQirSskwcgYrlY3dSGqpc69Y0ucwO72unwbY=; b=p0Mqdg47rBMDqVi+SG2qjFyBNN5I5ZdsGnVbJ9E61szasZ306O7XJW5wMj48g8FL8M 0wuMjsudZbJ/SR602xvEgoyDrwBlj8Wea17oSqJpRWY+Spa0L7v/oViuUMxkLUg3Ns6M kY7urfz/M5W1j0VorqwkKv2ZyapKVnt0gfxFDf2nfg02Y1n8HKzFoct+8Du03LLoYY/y ZYHfI/8SFsgt85GIn5/hxxE++gouAFF3dK3enPZyysX18cJ7YQ27DY3qEGf+XqL4Rnu3 APjng4MFDGg4yp7stGpk0mCHDdKXCXQnwGF7L3xSn9C3/wiWWTh3726tbWww4+kSa1Pk 7R6Q== 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: From: Andrew Pinski 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-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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 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.