unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* help to debug on Debian riscv64 fail to build
@ 2023-08-18 11:09 Bo YU
  2023-08-18 12:21 ` Eli Zaretskii
  2023-08-18 13:46 ` Andreas Schwab
  0 siblings, 2 replies; 4+ messages in thread
From: Bo YU @ 2023-08-18 11:09 UTC (permalink / raw)
  To: emacs-devel

Hi!
(please ccing me)

Now Debian riscv64 rebootstrap official port[0],
but the emacs fail to build[1]:

the log is here:
```
...
Backtrace:
../src/bootstrap-emacs(+0x156034)[0x2ab96be034]
../src/bootstrap-emacs(+0x50c72)[0x2ab95b8c72]
../src/bootstrap-emacs(+0x50e1c)[0x2ab95b8e1c]
../src/bootstrap-emacs(+0x1543ee)[0x2ab96bc3ee]
../src/bootstrap-emacs(+0x15446e)[0x2ab96bc46e]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f986bc800]
../src/bootstrap-emacs(+0x1bf90a)[0x2ab972790a]
../src/bootstrap-emacs(+0x1bfa60)[0x2ab9727a60]
../src/bootstrap-emacs(+0x1bfd4c)[0x2ab9727d4c]
../src/bootstrap-emacs(+0x1bd86a)[0x2ab972586a]
../src/bootstrap-emacs(+0x1bf278)[0x2ab9727278]
../src/bootstrap-emacs(Ffuncall+0xc2)[0x2ab97160c6]
/<<PKGBUILDDIR>>/debian/build-gtk/native-lisp/29.1-879b3864/comp-7672a6ed-a6af04d9.eln(F636f6d702d696e7465726e2d66756e632d696e2d63747874_comp_intern_func_in_ctxt_0+0x4a2)[0x3f8fb4d364]
../src/bootstrap-emacs(Ffuncall+0xc2)[0x2ab97160c6]
../src/bootstrap-emacs(+0x1b741e)[0x2ab971f41e]
../src/bootstrap-emacs(+0x1e96d6)[0x2ab97516d6]
../src/bootstrap-emacs(Ffuncall+0xc2)[0x2ab97160c6]
../src/bootstrap-emacs(+0x1ae3a0)[0x2ab97163a0]
../src/bootstrap-emacs(eval_sub+0x542)[0x2ab9719080]
../src/bootstrap-emacs(+0x1b2854)[0x2ab971a854]
../src/bootstrap-emacs(eval_sub+0x6c8)[0x2ab9719206]
../src/bootstrap-emacs(+0x1b1f80)[0x2ab9719f80]
../src/bootstrap-emacs(Ffuncall+0xc2)[0x2ab97160c6]
/<<PKGBUILDDIR>>/debian/build-gtk/native-lisp/29.1-879b3864/comp-7672a6ed-a6af04d9.eln(F636f6d702d7370696c6c2d6c6170_comp_spill_lap_0+0x7e)[0x3f8fb4dbe8]
../src/bootstrap-emacs(Ffuncall+0xc2)[0x2ab97160c6]
/<<PKGBUILDDIR>>/debian/build-gtk/native-lisp/29.1-879b3864/comp-7672a6ed-a6af04d9.eln(F636f6d702d2d6e61746976652d636f6d70696c65_comp__native_compile_0+0x4ea)[0x3f8fb7c770]
../src/bootstrap-emacs(Ffuncall+0xc2)[0x2ab97160c6]
/<<PKGBUILDDIR>>/debian/build-gtk/native-lisp/29.1-879b3864/comp-7672a6ed-a6af04d9.eln(F62617463682d6e61746976652d636f6d70696c65_batch_native_compile_0+0xfa)[0x3f8fb7d5e4]
../src/bootstrap-emacs(Ffuncall+0xc2)[0x2ab97160c6]
/<<PKGBUILDDIR>>/debian/build-gtk/native-lisp/29.1-879b3864/comp-7672a6ed-a6af04d9.eln(F62617463682d627974652b6e61746976652d636f6d70696c65_batch_bytenative_compile_0+0xd6)[0x3f8fb7d88a]
../src/bootstrap-emacs(Ffuncall+0xc2)[0x2ab97160c6]
../src/bootstrap-emacs(eval_sub+0x542)[0x2ab9719080]
../src/bootstrap-emacs(+0x1b1ad4)[0x2ab9719ad4]
../src/bootstrap-emacs(eval_sub+0x6c8)[0x2ab9719206]
../src/bootstrap-emacs(+0x1b1b34)[0x2ab9719b34]
../src/bootstrap-emacs(eval_sub+0x6c8)[0x2ab9719206]
../src/bootstrap-emacs(+0x1b2aae)[0x2ab971aaae]
../src/bootstrap-emacs(eval_sub+0x6c8)[0x2ab9719206]
../src/bootstrap-emacs(+0x1b19f6)[0x2ab97199f6]
../src/bootstrap-emacs(eval_sub+0x6c8)[0x2ab9719206]
../src/bootstrap-emacs(+0x1b2aae)[0x2ab971aaae]
...
make[5]: *** [Makefile:282:
/<<PKGBUILDDIR>>/debian/build-src/lisp/minibuffer.elc] Segmentation
fault
make[4]: *** [Makefile:841:
/<<PKGBUILDDIR>>/debian/build-src/lisp/minibuffer.elc] Error 2
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-gtk/src'
make[3]: *** [Makefile:546: src] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-gtk'
make[3]: Entering directory '/<<PKGBUILDDIR>>/debian/build-gtk'
***
*** "make all" failed with exit status 2.
***
*** You could try to:
*** - run "make bootstrap", which might fix the problem
*** - run "make V=1", which displays the full commands invoked by make,
***   to further investigate the problem
***
make[3]: *** [Makefile:416: advice-on-failure] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-gtk'
make[2]: *** [Makefile:372: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-gtk'
make[1]: *** [debian/rules:352: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:200: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2023-08-18T10:54:39Z
```
This time I build it with Debian package way, but I should build with
upstream tar first. I would like to get your help here how to debug
the issue effectively?

TIA,

BR,
Bo


[0]: https://lists.debian.org/debian-riscv/2023/07/msg00053.html
[1]: https://buildd.debian.org/status/package.php?p=emacs



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

* Re: help to debug on Debian riscv64 fail to build
  2023-08-18 11:09 help to debug on Debian riscv64 fail to build Bo YU
@ 2023-08-18 12:21 ` Eli Zaretskii
  2023-08-18 13:46 ` Andreas Schwab
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2023-08-18 12:21 UTC (permalink / raw)
  To: Bo YU; +Cc: emacs-devel

> From: Bo YU <tsu.yubo@gmail.com>
> Date: Fri, 18 Aug 2023 19:09:58 +0800
> 
> This time I build it with Debian package way, but I should build with
> upstream tar first. I would like to get your help here how to debug
> the issue effectively?

My suggestion is to run the failing command under GDB, and when Emacs
crashes, produce a backtrace and post it.

To see the failing command, say "make V=1".

Also, please post the configure command you used to configure the
build, and also please tell which version of Emacs you tried to build.



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

* Re: help to debug on Debian riscv64 fail to build
  2023-08-18 11:09 help to debug on Debian riscv64 fail to build Bo YU
  2023-08-18 12:21 ` Eli Zaretskii
@ 2023-08-18 13:46 ` Andreas Schwab
  2023-08-28  2:33   ` Bo YU
  1 sibling, 1 reply; 4+ messages in thread
From: Andreas Schwab @ 2023-08-18 13:46 UTC (permalink / raw)
  To: Bo YU; +Cc: emacs-devel

On Aug 18 2023, Bo YU wrote:

> Now Debian riscv64 rebootstrap official port[0],
> but the emacs fail to build[1]:

Build successfully here:

https://build.opensuse.org/package/live_build_log/openSUSE:Factory:RISCV/emacs/standard/riscv64

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



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

* Re: help to debug on Debian riscv64 fail to build
  2023-08-18 13:46 ` Andreas Schwab
@ 2023-08-28  2:33   ` Bo YU
  0 siblings, 0 replies; 4+ messages in thread
From: Bo YU @ 2023-08-28  2:33 UTC (permalink / raw)
  To: Andreas Schwab, Eli Zaretskii; +Cc: emacs-devel

Hi!

On Fri, Aug 18, 2023 at 9:46 PM Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> On Aug 18 2023, Bo YU wrote:
>
> > Now Debian riscv64 rebootstrap official port[0],
> > but the emacs fail to build[1]:
>
> Build successfully here:
>
> https://build.opensuse.org/package/live_build_log/openSUSE:Factory:RISCV/emacs/standard/riscv64
>

The issue maybe due to libgccjit-13-dev:
https://bugs.launchpad.net/ubuntu/+source/gcc-12/+bug/2011487

So if not to pass with-native-compilation to build on Debian riscv64:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050653

I will always put my eyes on the issue.

BR,
Bo



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

end of thread, other threads:[~2023-08-28  2:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-18 11:09 help to debug on Debian riscv64 fail to build Bo YU
2023-08-18 12:21 ` Eli Zaretskii
2023-08-18 13:46 ` Andreas Schwab
2023-08-28  2:33   ` Bo YU

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).