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 77C4E3870882 for ; Thu, 23 Mar 2023 13:05:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 77C4E3870882 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 99906B800A; Thu, 23 Mar 2023 14:05:11 +0100 (CET) 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 CLSUg6RF3c1e; Thu, 23 Mar 2023 14:05:11 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p50854c47.dip0.t-ipconnect.de [80.133.76.71]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 2E13BAFE45; Thu, 23 Mar 2023 14:05:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=CeBiTec.Uni-Bielefeld.DE; s=20200306; t=1679576711; bh=wD/TgQ53KzYTBsa9Sg3B0Ze5BSPcAHEEzfWPqOh8RT0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=B3kty4INvYrfhB5fTAC3Sh13w/5HSPU/aWhCNkS+Og+mrafrIcknSluM8f/mmecv/ Rup1uz/MEfx3I0t3b/cB1ib8mB77Gc5ImaRKEdFIWvTzudifixZtQTYEJI7EJYOAw/ AYir13mSmsp0aSLfSMARlqP5G4qiHGx/ugpZ004cMA4eL94YJn/IazlioJJOH432WR N8Yjt17p8AnwEecS1uqVq0NHcs1LAFE3t5eEVNfA7JLbBQiGBNQoY7vw6UGR0qjpk6 RpwVWOYONNu1YDbhLw96/10l/FnVWrNzJp6krfh0gy8AnOhv1FmaywFHr+/pV791d6 /R7TESvWYNDwQ== From: Rainer Orth To: Nemo Nusquam via Gdb Cc: Nemo Nusquam Subject: Re: Running gdb-14.0.50 References: <2c0596bd-205b-ac8e-9df8-d9eee39c2421@gmail.com> Date: Thu, 23 Mar 2023 14:05:10 +0100 In-Reply-To: <2c0596bd-205b-ac8e-9df8-d9eee39c2421@gmail.com> (Nemo Nusquam via Gdb's message of "Wed, 22 Mar 2023 18:56:58 -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.4 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 via Gdb writes: > I downloaded gdb-14.0.50.20230322 and built it with the following > configuration script. > > ABI=3D64 \ No need for this unless you're using in-tree gmp/mpfr. > 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'. > SHELL=3D/usr/bin/bash \ If you really need another shell during the build (although the Solaris 11.3 /bin/sh, which is ksh93, should be good enough), specify CONFIG_SHELL instead. > 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. > AS=3D/usr/bin/as \ Again: not used in the gdb build (and not the best way for gcc, either). Omit. > --host=3Dsparcv9-sun-solaris11 \ > --build=3Dsparcv9-sun-solaris11 \ Here's your problem: this is a triple gdb knows nothing about, thus the error when starting. The real thing is called sparcv9-sun-solaris2.11 (i.e. 2.11 instead of 11) and it's admittedly quite unfortunate that config.guess doesn't get this right on its own. Just specify --build=3Dsparcv9-sun-solaris2.11; the other two (host and target) are set implicitly from that. > --enable-64-bit-bfd \ > --enable-tui \ > --with-curses \ I never had a need for any of those. If you do, please explain. > --disable-bootstrap \ Again: gcc only; omit. > Despite specifying both host and build as sparcv9, when I invoke against a > simple C binary, the following happens. > > ../../gdb-14.0.50.20230322/gdb/arch-utils.c:753: internal-error: > initialize_current_architecture: Selection of initial architecture failed > A problem internal to GDB has been detected, > > Is there any other option that will specify a build for sparcv9 alone.=C2= =A0 No > other architecture will be debugged on this machine (T2000 running Solaris > 11.3). Use the correct triple (and omit anything not strictly necessary) and you should be fine. Rainer --=20 ---------------------------------------------------------------------------= -- Rainer Orth, Center for Biotechnology, Bielefeld University