Fix PR 31956 causes new --wrap problems

H.J. Lu hjl.tools@gmail.com
Thu Aug 1 02:22:17 GMT 2024


On Wed, Jul 31, 2024 at 7:16 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> On Wed, Jul 31, 2024 at 4:17 PM Nathan Scott <nathans@redhat.com> wrote:
> >
> > Hi all,
> >
> > Thanks for looking into this!
> >
> > On Thu, Aug 1, 2024 at 5:10 AM Sam James <sam@gentoo.org> wrote:
> > >
> > > Nick Clifton <nickc@redhat.com> writes:
> > > [...]
> > >
> > > I started to look at this to see if I could at the least reproduce it
> > > and extract+minimise a testcase.
> > > [...]
> > > Could you or Nathan file a Binutils PR with some instructions that
> > > reproduce the failure from a pcp tarball? I will try a bit more later but
> > > so far no luck.
> >
> > I think the quickest path will be to clone PCP from here:
> > https://github.com/performancecopilot/pcp/
> >
> > then either ./Makepkgs in the top-level directory, or ./configure && make
>
> I got
>
> /usr/bin/ld: /usr/lib64/libbfd.a(compress.o): undefined reference to
> symbol 'ZSTD_compress'
> /usr/bin/ld: /lib64/libzstd.so.1: error adding symbols: DSO missing
> from command line
> collect2: error: ld returned 1 exit status

After adding -lzstd, "make" finished on Fedora 40.  But I didn't see LTO
being used for build.  In anycase, please open a binutils bug with steps
to reproduce the bug.

> > The failure occurs while building the PCP testsuite, which is one of the
> > final parts of the build.
> >
> > cheers.
> >
> > --
> > Nathan
> >
> > > >
> > > > Cheers
> > > >   Nick
> > > >
> > > > https://bugzilla.redhat.com/show_bug.cgi?id=2301454
> > > >
> > > > https://sourceware.org/bugzilla/show_bug.cgi?id=31956
> > >
> > > thanks,
> > > sam
> >
>
>
> --
> H.J.



-- 
H.J.


More information about the Binutils mailing list