Re: [ANNOUNCEMENT] GDB 15.1 released!

Rainer Orth via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Jeffrey Walton via Gdb <[email protected]> writes:

> On Thu, Jul 11, 2024 at 4:00 PM Stuff Received <[email protected]> wrote:
>>
>> On 2024-07-07 14:02, Joel Brobecker via Gdb-announce via Gdb wrote (in
>> part):
>> >
>> >              GDB 15.1 released!
>> >
>> > Release 15.1 of GDB, the GNU Debugger, is now available.  GDB is
>> > a source-level debugger for Ada, C, C++, Fortran, Go, Rust, and many
>> > other languages.  GDB can target (i.e., debug programs running on)
>> > more than a dozen different processor architectures, and GDB itself
>> > can run on most popular GNU/Linux, Unix and Microsoft Windows variants.
>> GDB 15.1 successfully builds with GCC-13.3.0 and runs on Solaris 11.3/Sparc.
>>
>> I was unable to run the testsuite because I could not convince the build
>> to use /usr/gnu/bin/ld (or /usr/bin/gld).  The variable LD=/usr/bin/gld
>> passed to the configure script is ignored.
>
> Regarding /usr/bin/gld, from <https://gcc.gnu.org/install/specific.html>:
>
>     For linking, the Solaris linker is preferred. If you want to use the
>     GNU linker instead, the version in Solaris 11.4, from GNU binutils
>     2.30.1 or newer (in /usr/gnu/bin/ld and /usr/bin/gld), works, as does
>     the version from GNU binutils 2.42. However, it generally lacks
>     platform specific features, so better stay with Solaris ld. To use the
>     LTO linker plugin (-fuse-linker-plugin) with GNU ld, GNU binutils must
>     be configured with --enable-largefile. To use Solaris ld, we recommend
>     to configure with --without-gnu-ld --with-ld=/usr/bin/ld to guarantee
>     the right linker is found irrespective of the user’s PATH.

right: gcc simply doesn't support switching the linker used at runtime.
Solaris ld and GNU ld are way too different to allow for that.

However, I wonder why you would want to do so: I usually build and test
gdb on Solaris with a gcc configured to use /usr/bin/ld without issues.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.