All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Compiling makedumpfile from source
@ 2021-06-11  9:07 HAGIO KAZUHITO(萩尾 一仁)
  2021-06-28  6:31 ` manty kuma
  0 siblings, 1 reply; 13+ messages in thread
From: HAGIO KAZUHITO(萩尾 一仁) @ 2021-06-11  9:07 UTC (permalink / raw)
  To: manty kuma; +Cc: kexec-ml

-----Original Message-----
> When i try to makedumpfile without vmcorefile, it complains that
> "/tmp/vmcoreinfo no such file or directory" and fails to collect the dump.
> 
> From the README it appears to me that makedumpfile can get vmcoreinfo
> from /proc/vmcore
> Is there any special CONFIG needed to support this?

hmm, at least CONFIG_CRASH_CORE=y would be needed.

Kazu

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Compiling makedumpfile from source
@ 2021-06-11  5:00 HAGIO KAZUHITO(萩尾 一仁)
       [not found] ` <CAB6A5-DEHa22MF8itbqkRiOC3TE2KZo6yLPE23Kb5ci=80VJXw@mail.gmail.com>
  0 siblings, 1 reply; 13+ messages in thread
From: HAGIO KAZUHITO(萩尾 一仁) @ 2021-06-11  5:00 UTC (permalink / raw)
  To: manty kuma; +Cc: kexec-ml

-----Original Message-----
> Thank you.
> for example, i am trying to compile: elfutils-0.182 package downloaded
> from https://sourceware.org/elfutils/ftp/0.182/
> After successfully configuring it, make fails with following error.

Ah, I thought by mistake that you failed to compile makedumpfile.
Probably you should ask it to the elfutils community.

btw, if you can use makedumpfile with dynamic libraries, maybe you
can use the distribution's packages without building elfutils.
I'm not familiar with Debian/Ubuntu, but I built a makedumpfile on
an Ubuntu machine once with the following packages:
  libdw-dev libelf-dev zlib1g-dev libbz2-dev
and "make LINKTYPE=dynamic", please see FAQ.002 in README.

Kazu

> 
> ----------------------------------------
> Making all in libdwfl
>   CC       zstd.o
> In file included from zstd.c:4:0:
> gzip.c: In function ‘__libdw_unzstd’:
> gzip.c:278:39: error: passing argument 1 of ‘ZSTD_decompressStream’
> from incompatible pointer type [-Werror=incompatible-pointer-types]
>        result = ZSTD_decompressStream (dctx, &output, &input);
>                                        ^~~~
> In file included from gzip.c:53:0,
>                  from zstd.c:4:
> /usr/include/zstd.h:308:20: note: expected ‘ZSTD_DStream * {aka struct
> ZSTD_DStream_s *}’ but argument is of type ‘ZSTD_DCtx * {aka struct
> ZSTD_DCtx_s *}’
>  ZSTDLIB_API size_t ZSTD_decompressStream(ZSTD_DStream* zds,
> ZSTD_outBuffer* output, ZSTD_inBuffer* input);
>                     ^~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> Makefile:681: recipe for target 'zstd.o' failed
> make[2]: *** [zstd.o] Error 1
> ----------------------------------------
> 
> Seems like the configure file is not checking for specific version of
> libzstd-dev and it is not compatible with my current libzstd-dev
> My current version is as follows:
> ---
> $ apt-show-versions libzstd-dev
> libzstd-dev:amd64/stretch 1.1.2-1+deb9u1 uptodate
> ---
> 
> Thank you.
> 
> Regards,
> Manty
> On Fri, Jun 11, 2021 at 10:13 AM HAGIO KAZUHITO(萩尾 一仁)
> <k-hagio-ab@nec.com> wrote:
> >
> > Hi Manty,
> >
> > -----Original Message-----
> > > What version of elfutils is needed by `makedumpfile`?
> > > elfutils-0.144 is mentioned in README.
> > > I tried this one but the compilation is broken.
> > >
> > > https://sourceware.org/elfutils/ftp/0.144/
> > >
> > > Should I try to use the latest one instead?
> >
> > It could be built with elfutils-0.144 or later at the point of v1.6.7, and
> > I can build the latest makedumpfile with elfutils-0.148, 0.164, 0.182 on
> > some RHEL environments on hand with "make LINKTYPE=dynamic".
> >
> > What command do you use to build?  and what error do you see?
> >
> > Thanks,
> > Kazu
> >
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: Compiling makedumpfile from source
@ 2021-06-11  1:13 HAGIO KAZUHITO(萩尾 一仁)
  2021-06-11  3:19 ` manty kuma
  0 siblings, 1 reply; 13+ messages in thread
From: HAGIO KAZUHITO(萩尾 一仁) @ 2021-06-11  1:13 UTC (permalink / raw)
  To: manty kuma, kexec-ml

Hi Manty,

-----Original Message-----
> What version of elfutils is needed by `makedumpfile`?
> elfutils-0.144 is mentioned in README.
> I tried this one but the compilation is broken.
> 
> https://sourceware.org/elfutils/ftp/0.144/
> 
> Should I try to use the latest one instead?

It could be built with elfutils-0.144 or later at the point of v1.6.7, and
I can build the latest makedumpfile with elfutils-0.148, 0.164, 0.182 on
some RHEL environments on hand with "make LINKTYPE=dynamic".

What command do you use to build?  and what error do you see?

Thanks,
Kazu

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-07-29  3:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-11  9:07 Compiling makedumpfile from source HAGIO KAZUHITO(萩尾 一仁)
2021-06-28  6:31 ` manty kuma
2021-06-28  7:07   ` HAGIO KAZUHITO(萩尾 一仁)
2021-07-08 11:17     ` manty kuma
2021-07-09  1:45       ` manty kuma
2021-07-27  5:54         ` manty kuma
2021-07-28  5:43           ` HAGIO KAZUHITO(萩尾 一仁)
2021-07-29  3:50             ` manty kuma
  -- strict thread matches above, loose matches on Subject: below --
2021-06-11  5:00 HAGIO KAZUHITO(萩尾 一仁)
     [not found] ` <CAB6A5-DEHa22MF8itbqkRiOC3TE2KZo6yLPE23Kb5ci=80VJXw@mail.gmail.com>
2021-06-11  8:38   ` manty kuma
2021-06-11  1:13 HAGIO KAZUHITO(萩尾 一仁)
2021-06-11  3:19 ` manty kuma
2021-06-11  5:04   ` manty kuma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.