CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" \
./configure --prefix=/home/xyz/emacs26 --disable-largefile --without-pop --without-sound \
--with-x-toolkit=no --without-xpm --without-jpeg --without-tiff --without-gif --without-png --without-rsvg --without-xft \
--without-libotf --without-m17n-flt --without-toolkit-scroll-bars --without-xaw3d --without-xim --without-gpm \
--without-dbus --without-gconf -without-x \
--without-selinux --disable-acl --with-modules --without-makeinfo \
--without-gnutls

yesterday, I manually open emacs and make byte-compile on the ucs-normalize.el, then run make again, it worked.

today, I just do make clean && make distclean, delete all .elc files, sh autogen.sh, configure with above options,
make success without error.


On Tue, Feb 12, 2019 at 12:39 AM Eli Zaretskii <eliz@gnu.org> wrote:
> From: hx <silent2600@gmail.com>
> Date: Mon, 11 Feb 2019 09:21:20 +0800
>
> can't compile emacs26 today after git pull,
> CentOS7 X64:
>
> make[2]: Entering directory `/emacs-26-src/lisp'
>   ELC      ../lisp/international/ucs-normalize.elc
>
> In toplevel form:
> international/ucs-normalize.el:266:56:Error: Symbol’s function definition is void: regexp-opt-charset
> make[2]: *** [../lisp/international/ucs-normalize.elc] Error 1

I think I understand why, but just so I'm sure: can you tell how you
configured this build?  What was the command line with which you
invoked the 'configure' script?