From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id 660153858CDA for ; Mon, 27 Mar 2023 14:00:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 660153858CDA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=none smtp.mailfrom=cebitec.uni-bielefeld.de Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 1827ABF06E; Mon, 27 Mar 2023 16:00:42 +0200 (CEST) X-Virus-Scanned: amavisd-new at CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g2xBH6SSyIBb; Mon, 27 Mar 2023 16:00:41 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p508558f9.dip0.t-ipconnect.de [80.133.88.249]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 7A085C2A6E; Mon, 27 Mar 2023 16:00:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=CeBiTec.Uni-Bielefeld.DE; s=20200306; t=1679925641; bh=OJge8vB2mJS4wHH9W2AMh1b+qe3KWhP1WlTBKoaDNXQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=POBCs2NhgAZenELB3N6gcVbpvklp2wiOEK6pRXXGpShy/4Z3cBZM5xZkBrnAReGcK GjopKNswtsjIefztzFVC3RW/HVnXTrYzew9p/JiyC4H9T5mB1SLptfZvfKPIH0WBqv /ccyFfPL9h6AnDl2miYvPxY1Nn9mmCfa2Y1zjew8B5CKSi4TchexeT+D2XOq6d03Vp 579Htpyy4HT2tCEyjdXqmcu+AVvFx5A6azTEoz4uUAs6ZTn8k4uCmFnA2sXsr72R/U T20uh3e8uztehOy6M3ERQwkIKSwQ+esz6RckvcxXWyutB0ApwMiFtohjXCp8JMjAHM TK0TvP2XqdFTA== From: Rainer Orth To: Nemo Nusquam Cc: gdb@sourceware.org Subject: Re: Running gdb-14.0.50 References: <2c0596bd-205b-ac8e-9df8-d9eee39c2421@gmail.com> Date: Mon, 27 Mar 2023 16:00:41 +0200 In-Reply-To: (Nemo Nusquam's message of "Sun, 26 Mar 2023 20:53:55 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3787.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KAM_NUMSUBJECT,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Nemo Nusquam writes: >>> CFLAGS=3D'-m64 -g3 -O0' \ >>> CXXFLAGS=3D'-m64 -g3 -O0' \ >> I've asked this before: why do you need a gdb with full debug info? If >> running into problems, start with a bare-minimum configuration, >> i.e. omit CFLAGS/CXXFLAGS completely. If your gcc doesn't create 64-bit >> binaries by default, better use CC=3D'gcc -m64' CXX=3D'g++ -m64'. > > Please read the section on the GDB Wiki: Building GDB Natively > (https://sourceware.org/gdb/wiki/BuildingNatively), where these flags=20 > are specified. This page is obviously targeted at GDB developers. Besides, it states > Of course, you can still do a simple ./configure && make, but you > might actually want to disable a few projects that don't need to be > built (and that take a long time to build). Unless you need to debug gdb with itself, you don't need to build with -g3 -O0. So far, you haven't stated what's your goal in building from a git clone instead of just building the latest release as a regular user. >>> AR=3D/usr/bin/gar \ >> No need for this: the build should be fine with either Solaris ar or GNU >> ar. If it's not, please file a bug report. > > I removed this option and configure built a Makefile that invoked > sparcv9-sun-solaris11-ar, so I put it back in. You absolutely need to remove all remnants of tools with *-*-solaris11-*: those are using an invalid configure triple and thus of no use at all, or rather harmful. If that were sparcv9-sun-solaris2.11-ar, that's just an alternative name of GNU ar. >>> --enable-64-bit-bfd \ >>> --enable-tui \ >>> --with-curses \ >> I never had a need for any of those. If you do, please explain. > > These are leftovers from a very old script.=C2=A0 They were removed. I known: one tends to carry forward stuff like this years after they may have been necessary. That's why I insist of starting with the most basic configure invocation possible and only add stuff if you 200% know what/why you are doing that. > Here is my final configuration script: > > CFLAGS=3D'-g3 -O0' \ > CXXFLAGS=3D'-g3 -O0' \ > CC=3D"/home/build/gcc/64/bin/gcc -m64" \ > CXX=3D"/home/build/gcc/64/bin/g++ -m64" \ > ../gdb-14.0.50.20230322/configure \ > --with-gmp-prefix=3D/usr/local \ > --with-mpfr-prefix=3D/usr/local \ > --build=3Dsparcv9-sun-solaris2.11 \ > --disable-binutils \ > --disable-gold \ > --disable-gprof \ > --disable-gas \ > --disable-intl \ > --disable-ld \ > --disable-sim Looks sensible indeed, although should should consider removing CFLAGS/CXXFLAGS for serious use: the defaults can help performance tremendously ;-) > And here is the configuration reported by the resulting binary. [...] > ("Relocatable" means the directory can be moved with the GDB installation > tree, and GDB will still find it.) Indeed: both gdb and gcc can be for quite some time. Rainer --=20 ---------------------------------------------------------------------------= -- Rainer Orth, Center for Biotechnology, Bielefeld University