emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

autogen.sh and configure errors


From: Arthur Miller
Subject: autogen.sh and configure errors
Date: Sat, 02 Jan 2021 15:12:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

I just pulled Emacs and got some configure errors. So I removed my old
sources, cloned new from Savannah and tried to configure again and I am
getting same errors:

#+begin_src sh

 2021-01-02 14:50:37 ⌚  pascal in ~/repos
○ → rm -fr ./emacs

 2021-01-02 14:50:51 ⌚  pascal in ~/repos
○ → git clone https://git.savannah.gnu.org/git/emacs.git
Klonar till "emacs"...
remote: Counting objects: 921420, done.
remote: Compressing objects: 100% (164155/164155), done.
remote: Total 921420 (delta 758106), reused 919022 (delta 756030)
Tar emot objekt: 100% (921420/921420), 301,55 MiB | 9,97 MiB/s, klart.
Analyserar delta: 100% (758106/758106), klart.

 2021-01-02 14:53:22 ⌚  pascal in ~/repos
○ → cd emacs

 2021-01-02 14:53:38 ⌚  pascal in ~/repos/emacs
± |master ✓| → ./autogen.sh
Checking whether you have the necessary tools...
(Read INSTALL.REPO for more details on building Emacs)
Checking for autoconf (need at least version 2.65) ... ok
Your system has the required tools.
Building aclocal.m4 ...
Running 'autoreconf -fi -I m4' ...
configure.ac:1771: warning: Checking for headers with the preprocessor is
configure.ac:1771: deprecated. Specify prerequisite code to AC_CHECK_HEADER
configure.ac:1771: instead of using fourth argument `-'. (Many headers need
configure.ac:1771: no prerequisites. If you truly need to test whether
configure.ac:1771: something passes the preprocessor but not the compiler,
configure.ac:1771: use AC_PREPROC_IFELSE.)
./lib/autoconf/headers.m4:115: _AC_CHECK_HEADER_PREPROC is expanded from...
./lib/autoconf/headers.m4:56: AC_CHECK_HEADER is expanded from...
./lib/autoconf/headers.m4:217: AC_CHECK_HEADERS is expanded from...
configure.ac:1771: the top level
configure.ac:1772: warning: The macro `AC_HEADER_TIME' is obsolete.
configure.ac:1772: You should run autoupdate.
./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from...
configure.ac:1772: the top level
configure.ac:4708: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:4708: You should run autoupdate.
./lib/autoconf/general.m4:2919: AC_TRY_LINK is expanded from...
configure.ac:4708: the top level
Configuring local git repository...
'.git/config' -> '.git/config.~1~'
git config transfer.fsckObjects 'true'
git config diff.cpp.xfuncname '!^[ 
\t]*[A-Za-z_][A-Za-z_0-9]*:[[:space:]]*($|/[/*])
^((::[[:space:]]*)?[A-Za-z_][A-Za-z_0-9]*[[:space:]]*\(.*)$
^((#define[[:space:]]|DEFUN).*)$'
git config diff.elisp.xfuncname 
'^\([^[:space:]]*def[^[:space:]]+[[:space:]]+([^()[:space:]]+)'
git config diff.m4.xfuncname '^((m4_)?define|A._DEFUN(_ONCE)?)\([^),]*'
git config diff.make.xfuncname 
'^([$.[:alnum:]_].*:|[[:alnum:]_]+[[:space:]]*([*:+]?[:?]?|!?)=|define .*)'
git config diff.shell.xfuncname 
'^([[:space:]]*[[:alpha:]_][[:alnum:]_]*[[:space:]]*\(\)|[[:alpha:]_][[:alnum:]_]*=)'
git config diff.texinfo.xfuncname '^@node[[:space:]]+([^,[:space:]][^,]+)'
Installing git hooks...
'build-aux/git-hooks/commit-msg' -> '.git/hooks/commit-msg'
'build-aux/git-hooks/pre-commit' -> '.git/hooks/pre-commit'
'build-aux/git-hooks/prepare-commit-msg' -> '.git/hooks/prepare-commit-msg'
'.git/hooks/applypatch-msg.sample' -> '.git/hooks/applypatch-msg'
'.git/hooks/pre-applypatch.sample' -> '.git/hooks/pre-applypatch'
You can now run './configure'.

 2021-01-02 14:53:45 ⌚  pascal in ~/repos/emacs
± |master ✓| → autoupdate
configure.ac:1772: warning: Update your code to rely only on HAVE_SYS_TIME_H,
then remove this warning and the obsolete code below it.
All current systems provide time.h; it need not be checked for.
Not all systems provide sys/time.h, but those that do, all allow
you to include it and time.h simultaneously.

 2021-01-02 14:55:14 ⌚  pascal in ~/repos/emacs
± |master U:1 ✗| → ./autogen.sh
Checking whether you have the necessary tools...
(Read INSTALL.REPO for more details on building Emacs)
Checking for autoconf (need at least version ) ... unable to check

Building Emacs from the repository requires the following specialized programs:
autoconf (minimum version )

Your system seems to be missing the following tool(s):
autoconf (unable to check)

If you think you have the required tools, please add them to your PATH
and re-run this script.

Otherwise, please try installing them.
On systems using rpm and yum, try: "yum install PACKAGE"
On systems using dpkg and apt, try: "apt-get install PACKAGE"
Then re-run this script.

If you do not have permission to do this, or if the version provided
by your system is too old, it is normally straightforward to build
these packages from source.  You can find the sources at:

https://ftp.gnu.org/gnu/PACKAGE/

Download the package (make sure you get at least the minimum version
listed above), extract it using tar, then run configure, make,
make install.  Add the installation directory to your PATH and re-run
this script.

If you know that the required versions are in your PATH, but this
script has made an error, then you can simply re-run this script with
the --no-check option.

Please report any problems with this script to bug-gnu-emacs@gnu.org .

 2021-01-02 14:55:26 ⌚  pascal in ~/repos/emacs
± |master U:1 ✗| → autoconf --version
autoconf (GNU Autoconf) 2.70
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>, <https://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

 2021-01-02 14:56:21 ⌚  pascal in ~/repos/emacs
± |master U:1 ✗| → ./autogen.sh --no-check
Running 'autoreconf -fi -I m4' ...
configure.ac:1771: warning: Checking for headers with the preprocessor is
configure.ac:1771: deprecated. Specify prerequisite code to AC_CHECK_HEADER
configure.ac:1771: instead of using fourth argument `-'. (Many headers need
configure.ac:1771: no prerequisites. If you truly need to test whether
configure.ac:1771: something passes the preprocessor but not the compiler,
configure.ac:1771: use AC_PREPROC_IFELSE.)
./lib/autoconf/headers.m4:115: _AC_CHECK_HEADER_PREPROC is expanded from...
./lib/autoconf/headers.m4:56: AC_CHECK_HEADER is expanded from...
./lib/autoconf/headers.m4:217: AC_CHECK_HEADERS is expanded from...
configure.ac:1771: the top level
configure.ac:1772: warning: Update your code to rely only on HAVE_SYS_TIME_H,
configure.ac:1772: then remove this warning and the obsolete code below it.
configure.ac:1772: All current systems provide time.h; it need not be checked 
for.
configure.ac:1772: Not all systems provide sys/time.h, but those that do, all 
allow
configure.ac:1772: you to include it and time.h simultaneously.
You can now run './configure'.

± |master U:1 ✗| → git checkout feature/native-comp
error: Dina lokala ändringar av följande filer skulle skrivas över av 
utcheckning:
        configure.ac
Checka in dina ändringar eller använd "stash" innan du byter gren.
Avbryter

#+end_src

As seen when I try to change to native-comp branch it says configure.ac is
changed; I didn't change it.

Finally after stashing and runing autoge.sh, I get followin when I run
configure:


 2021-01-02 15:06:47 ⌚  pascal in ~/repos/emacs
± |feature/native-comp {1} ✓| → ./configure –-without-makeinfo –-with-cairo 
–-without-modules –-without-compress-install –-with-x-toolkit=no –-with-gnutls 
–-without-gconf –-without-xwidgets –-without-toolkit-scroll-bars 
-–without-xaw3d –-without-gsettings –-with-mailutils –-with-nativecomp 
--with-json --without-included-regex --without-libgmp CFLAGS='-O3 -mtune=native 
-march=native'                                                                  
                                                                                
                                                                                
                                                                                
  
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: –-without-makeinfo
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: –-with-cairo
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: –-without-modules
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: –-without-compress-install
configure: error: invalid variable name: `–-with-x-toolkit'

My system or what am I doing wrong? I see nobody else complains so I
guess it is something on my side :-).

Linux pascal 5.10.3-arch1-1 #1 SMP PREEMPT Sun, 27 Dec 2020 10:50:46 +0000 
x86_64 GNU/Linux



reply via email to

[Prev in Thread] Current Thread [Next in Thread]