[Bug 258001] editors/emacs-devel: Build fails at configure phase with non-clean environment and NATIVECOMP option enabled

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 23 Aug 2021 07:25:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258001

            Bug ID: 258001
           Summary: editors/emacs-devel: Build fails at configure phase
                    with non-clean environment and NATIVECOMP option
                    enabled
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: emacs@FreeBSD.org
          Reporter: yasu@utahime.org
          Assignee: emacs@FreeBSD.org
             Flags: maintainer-feedback?(emacs@FreeBSD.org)

Build of this port fails at configure phase as following if (1)
ports-mgmt/porttools is installed in build environment and (2) NATIVECOMP
option is ON.

----------------------------------------------------------------------
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for main in -lXbsd... no
checking for pthread library... -lpthread
checking for thread support... yes
checking for getaddrinfo_a in -lanl... no
checking for gnutls >= 2.12.2... yes
checking for jansson >= 2.7... yes
checking for libkqueue... no
checking for library containing kqueue... none required
checking for library containing inflateEnd... -lz
checking for dlopen... (cached) yes
checking for dladdr... yes
checking for dlfunc... yes
usage: dirname string [...]
usage: dirname string [...]
checking for gcc_jit_context_acquire in -lgccjit... no
configure: error: ELisp native compiler was requested, but libgccjit was not
found.
Please try installing libgccjit or a similar package.
If you are sure you want Emacs be compiled without ELisp native compiler,
pass the --without-native-compilation option to configure.
===>  Script "configure" failed unexpectedly.
Please report the problem to emacs@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/editors/emacs-devel/work-nox/emacs-3572613/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make: stopped in /usr/ports/editors/emacs-devel
----------------------------------------------------------------------

Full build log:
https://www.utahime.org/FreeBSD/poudriere/data/logs/bulk/130amd64-default-emacs/2021-08-23_13h20m28s/logs/emacs-devel-nox-28.0.50.20210815,2.log

Note that in order to reproduce the build error with poudriere
/usr/ports/editors/emacs-devel/Makefile is modified so ports-mgmt/porttools is
added to BUILD_DEPENDS.

-- 
You are receiving this mail because:
You are the assignee for the bug.