fail to build with USE="X ansi readline" emerge dev-lisp/gcl USE="-X -ansi -readline" emerge dev-lisp/gcl if [ "./default.el" != "" ] ; then \ if test -f "/var/tmp/portage/dev-lisp/gcl-2.6.14/image./default.el" ; then \ cat /var/tmp/portage/dev-lisp/gcl-2.6.14/image./default.el | sed -e '/BEGIN gcl/,/END gcl/d' > /var/tmp/portage/dev-lisp/gcl-2.6.14/image/usr/share/emacs/site-lisp/gcl//temp_emacs_default ; \ mv /var/tmp/portage/dev-lisp/gcl-2.6.14/image./default.el /var/tmp/portage/dev-lisp/gcl-2.6.14/image./default.el.prev ; \ rm -f /var/tmp/portage/dev-lisp/gcl-2.6.14/image./default.elc ; \ cat add-default.el >> /var/tmp/portage/dev-lisp/gcl-2.6.14/image/usr/share/emacs/site-lisp/gcl//temp_emacs_default ; cp /var/tmp/portage/dev-lisp/gcl-2.6.14/image/usr/share/emacs/site-lisp/gcl//temp_emacs_default /var/tmp/portage/dev-lisp/gcl-2.6.14/image./default.el ; \ rm -f /var/tmp/portage/dev-lisp/gcl-2.6.14/image/usr/share/emacs/site-lisp/gcl//temp_emacs_default ; else \ cp add-default.el /var/tmp/portage/dev-lisp/gcl-2.6.14/image./default.el ; fi ; \ chmod a+r /var/tmp/portage/dev-lisp/gcl-2.6.14/image./default.el ; fi cp: cannot create regular file '/var/tmp/portage/dev-lisp/gcl-2.6.14/image./default.el': No such file or directory chmod: cannot access '/var/tmp/portage/dev-lisp/gcl-2.6.14/image./default.el': No such file or directory make[2]: *** [makefile:8: install] Error 1 make[2]: Leaving directory '/var/tmp/portage/dev-lisp/gcl-2.6.14/work/gcl-2.6.14/elisp' make[1]: *** [makefile:200: install1] Error 2 make[1]: Leaving directory '/var/tmp/portage/dev-lisp/gcl-2.6.14/work/gcl-2.6.14' make: *** [makefile:185: install] Error 2 * ERROR: dev-lisp/gcl-2.6.14::gentoo failed (install phase): * emake failed Reproducible: Always
Created attachment 850378 [details] full build log
incidently, it built fine here with: ansi readline -X
Interestingly, both combinations were built without issues here on qemu, I'll give it a try on unmatched board.
I don't get this error, but I do get a different one. Loading binary of GCL_PCL_PKG... ;; Loading #p"/var/tmp/portage/dev-lisp/gcl-2.6.15_pre3/work/gcl-Version_2_6_15pre3/gcl/unixport/../pcl/gcl_pcl_pkg.o" Unknown reloc type 57 Error: ERROR "The assertion !emsg(\"Unknown reloc type %lu\\n\", tp) on line 186 of sfaslelf.c in function relocate failed: Success" Fast links are on: do (si::use-fast-links nil) for debugging Signalled by LOAD. ERROR "The assertion !emsg(\"Unknown reloc type %lu\\n\", tp) on line 186 of sfaslelf.c in function relocate failed: Success" Broken at LOAD. Type :H for Help. 1 Return to top level. >>make[1]: *** [makefile:35: gcl_pcl_boot.c] Error 255 make[1]: Leaving directory '/var/tmp/portage/dev-lisp/gcl-2.6.15_pre3/work/gcl-Version_2_6_15pre3/gcl/pcl' make: *** [makefile:90: unixport/saved_pcl_gcl] Error 2
Should we consider then adding -fno-asynchronous-unwind-tables, or is that the wrong approach?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc5945848571723b42e3b01bb36c4aa09dacaa27 commit dc5945848571723b42e3b01bb36c4aa09dacaa27 Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2024-06-25 16:29:52 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2024-06-25 16:31:19 +0000 dev-lisp/gcl: Apply upstream patch for risc-v relocations Closes: https://bugs.gentoo.org/893938 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> dev-lisp/gcl/files/gcl-2.6.15-riscv.patch | 67 +++++++++++++++++++++++++++++++ dev-lisp/gcl/gcl-2.6.15_pre3.ebuild | 6 ++- 2 files changed, 72 insertions(+), 1 deletion(-)