Re: [ANNOUNCEMENT] GDB 15.1 released!

Stuff Received <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On 2024-07-11 16:08, Jeffrey Walton wrote:
> 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.
> 
> Jeff

Jeff:

Invoking "gmake check" with the Solaris 11.3 linker causes the following 
error.

libtool: link: /home/build/gcc/13.3.0/bin/gcc -m64 -funwind-tables 
-frandom-seed=ctesta -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute 
-Wcast-qual -g -g -O2 -Wl,--compress-debug-sections=zlib-gabi -o ctesta 
ctesta-btest.o ctesta-testlib.o  ./.libs/libbacktrace.a
ld: fatal: unrecognized '--compress-debug-sections' cmp-type: zlib-gabi

Basically, libtool invokes ld with a gld option.  This does not happen 
with the basic build/install.  I built gdb with the Solaris ld.

S.
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.