[Autoconf] Unable to made dist-clean

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
Post Reply
Lachu
Elite
Posts: 472
Joined: Sat May 04, 2013 2:19 pm

[Autoconf] Unable to made dist-clean

Post by Lachu »

I do not known if it is filled already. If not, I fill bug report.

Code: Select all

slawomir@09626e79f872:/src> make dist-clean
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --enable-devel --enable-ruledit=experimental --with-qt5 --no-create --no-recursion
configure: WARNING: unrecognized options: --enable-devel
configure: error: Attempted to configure source directory. You have to use separate build dir
make: *** [Makefile:753: config.status] Error 1

Code: Select all

slawomir@09626e79f872:/src/build-autoconf> ../autogen.sh --enable-devel --enable-ruledit=experimental --with-qt5 
+ checking for autoconf >= 2.65 ... found 2.69, ok.
+ checking for autoheader >= 2.65 ... found 2.69, ok.
+ checking for automake >= 1.13 ... found 1.15.1, ok.
+ checking for aclocal >= 1.13 ... found 1.15.1, ok.
+ checking for libtoolize >= 2.2 ... found 2.4.6, ok.
+ checking for python3 >= 3.5 ... found 3.6.15, ok.
+ checking for xgettext >= 0.16 ... found 0.20.2, ok.
+ checking for msgfmt >= 0.16 ... found 0.20.2, ok.
+ running aclocal ...
+ running autoheader ... 
+ running libtoolize ... 
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'bootstrap'.
libtoolize: copying file 'bootstrap/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
+ running aclocal for libtool installed files...
+ running autoconf ... 
+ running automake ... 
configure.ac:20: installing 'bootstrap/compile'
configure.ac:82: installing 'bootstrap/missing'
ai/Makefile.am: installing 'bootstrap/depcomp'
+ removing config.cache ... 
+ running configure ... 

using:  --enable-devel --enable-ruledit=experimental --with-qt5

configure: WARNING: unrecognized options: --enable-devel
checking build system type... x86_64-suse-linux-gnu
checking host system type... x86_64-suse-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether byte ordering is bigendian... no
checking for emscripten... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
configure: error: source directory already configured; run "make distclean" there first

configure failed

Code: Select all

slawomir@09626e79f872:/src/build-autoconf> make -C.. distclean
make: Entering directory '/src'
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --enable-devel --enable-ruledit=experimental --with-qt5 --no-create --no-recursion
configure: WARNING: unrecognized options: --enable-devel
configure: error: Attempted to configure source directory. You have to use separate build dir
make: *** [Makefile:753: config.status] Error 1
make: Leaving directory '/src'
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: [Autoconf] Unable to made dist-clean

Post by cazfi »

Workaround: Check out older commit where build directory == source directory was still allowed and make distclean for source directory there.
Lachu
Elite
Posts: 472
Joined: Sat May 04, 2013 2:19 pm

Re: [Autoconf] Unable to made dist-clean

Post by Lachu »

cazfi wrote: Sun Mar 26, 2023 6:53 am Workaround: Check out older commit where build directory == source directory was still allowed and make distclean for source directory there.
There is nothing better than simple solution.

I added workaround section to page: https://freeciv.fandom.com/wiki/Buildin ... orkarounds

This page is historical, so what to do?
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: [Autoconf] Unable to made dist-clean

Post by cazfi »

Anyway, this happens just once as people update past the point where we disallowed using sourcedir as builddir, i.e., basically when people move to 3.3 development, and affect only those people who have been using sourcedir as builddir (we have been recommending against that for a long time)
Post Reply