bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug libctf/29547] binutils-2.39: fails to build against cctools nm (no


From: slyich at gmail dot com
Subject: [Bug libctf/29547] binutils-2.39: fails to build against cctools nm (no '-B' option support)
Date: Wed, 14 Sep 2022 08:08:09 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29547

--- Comment #6 from Sergei Trofimovich <slyich at gmail dot com> ---
(In reply to Nick Alcock from comment #5)
> Something else! What if nm emits actual successful output? No nm out there
> is going to include its own name in the output in that case. We have to look
> for the expected format of the output (at least slightly) and consider the
> option accepted if that matches.
> 
> Anyway, I have something that might just work: try the
> users/nalcock/libtool-nm branch on binutils-gdb git. (It doesn't break x86
> Linux, Solaris 2.11 or FreeBSD 13, which is all I've tested so far.)

Still fails in a similar way:

./libtool: eval: line 1115: syntax error near unexpected token `|'
./libtool: eval: line 1115:
`/nix/store/kpc4vpii3zrnz53b87xvid0rxlqb66cc-cctools-binutils-darwin-949.0.1/bin/nm
-B  .libs/libctf_la-ctf-archive.o .libs/libctf_la-ctf-dump.o
.libs/libctf_la-ctf-create.o .libs/libctf_la-ctf-decl.o
.libs/libctf_la-ctf-error.o .libs/libctf_la-ctf-hash.o
.libs/libctf_la-ctf-labels.o .libs/libctf_la-ctf-dedup.o
.libs/libctf_la-ctf-link.o .libs/libctf_la-ctf-lookup.o
.libs/libctf_la-ctf-open.o .libs/libctf_la-ctf-serialize.o
.libs/libctf_la-ctf-sha1.o .libs/libctf_la-ctf-string.o
.libs/libctf_la-ctf-subr.o .libs/libctf_la-ctf-types.o
.libs/libctf_la-ctf-util.o .libs/libctf_la-ctf-open-bfd.o   |  |
/nix/store/69mrs7lcp77cln6d02gfw5hxiq3g8mkp-gnused-4.8/bin/sed 's/.* //' | sort
| uniq > .libs/libctf.exp'
make[3]: *** [Makefile:687: libctf.la] Error 2

Trying to extract why it still fails to detect symbol extraction with the
following patch:

--- a/libctf/configure
+++ b/libctf/configure
@@ -5972,6 +5972,14 @@ else
        # placating systems like Darwin and HP-UX, which mention the name of nm
        # in error output.
        #   nm: unknown option "B" ignored
+
+       echo "=============" >&2
+       "$tmp_nm" -B "$tmp_nm_to_nm" 2>&1
+       echo "=============" >&2
+       echo "=============" >&2
+       "$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | $GREP -v '^ *$' | $GREP -v 'nknown
' | $GREP -v 'nvalid ' | sed '1q'
+       echo "=============" >&2
+


checking for BSD- or MS-compatible name lister (nm)... =============
error:
/nix/store/kpc4vpii3zrnz53b87xvid0rxlqb66cc-cctools-binutils-darwin-949.0.1/bin/nm:
invalid argument -B
Usage:
/nix/store/kpc4vpii3zrnz53b87xvid0rxlqb66cc-cctools-binutils-darwin-949.0.1/bin/nm
[-agnopruUmxjlfAP[s segname sectname] [-] [-t format] [[-arch <arch_flag>] ...]
[file ...]
=============
=============
Usage:
/nix/store/kpc4vpii3zrnz53b87xvid0rxlqb66cc-cctools-binutils-darwin-949.0.1/bin/nm
[-agnopruUmxjlfAP[s segname sectname] [-] [-t format] [[-arch <arch_flag>] ...]
[file ...]
=============
/nix/store/kpc4vpii3zrnz53b87xvid0rxlqb66cc-cctools-binutils-darwin-949.0.1/bin/nm
-B

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]