Bug #80132 [Opn]: Error when running buildconf

From: Date: Wed, 23 Sep 2020 07:54:14 +0000
Subject: Bug #80132 [Opn]: Error when running buildconf
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229162@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80132&edit=1

 ID:                 80132
 Updated by:         nikic@php.net
 Reported by:        m dot aldofirmansyah at gmail dot com
 Summary:            Error when running buildconf
 Status:             Open
 Type:               Bug
 Package:            *Configuration Issues
 Operating System:   Ubuntu 16.04.1
 PHP Version:        8.0Git-2020-09-22 (Git)
 Block user comment: N
 Private report:     N

 New Comment:

Sounds like docker is stripping out your build/ directory then. Maybe it is ignored? (It's
commonly used for build results, so I wouldn't be surprised...)


Previous Comments:
------------------------------------------------------------------------
[2020-09-23 03:02:10] m dot aldofirmansyah at gmail dot com

Try to download and build php8 beta 4 on my vps ubuntu 16.04 it successfully running buildconf and
configure

But when I run the same command on my docker 16.04 it still return same error

------------------------------------------------------------------------
[2020-09-22 11:23:18] cmb@php.net

> the m4 files in build folder doesn't exist

Seems you have a bad checkout.

------------------------------------------------------------------------
[2020-09-22 11:15:02] m dot aldofirmansyah at gmail dot com

the m4 files in build folder doesn't exist

------------------------------------------------------------------------
[2020-09-22 10:54:41] nikic@php.net

> /usr/bin/m4:configure.ac:6: cannot open `build/ax_check_compile_flag.m4': No such file or
> directory

Do those files exist?

------------------------------------------------------------------------
[2020-09-22 10:47:36] m dot aldofirmansyah at gmail dot com

Description:
------------
Error when I'm trying to build php from source

I'm using ubuntu 16.04.1
php from master branch (seems it's php 8)
I have the latest version of autoconf, automake, and m4

buildconf: Checking installation
buildconf: autoconf version 2.69 (ok)
buildconf: Cleaning cache and configure files
buildconf: Rebuilding configure
/usr/bin/m4:configure.ac:6: cannot open `build/ax_check_compile_flag.m4': No such file or
directory
/usr/bin/m4:configure.ac:7: cannot open `build/ax_func_which_gethostbyname_r.m4': No such file
or directory
/usr/bin/m4:configure.ac:8: cannot open `build/ax_gcc_func_attribute.m4': No such file or
directory
/usr/bin/m4:configure.ac:9: cannot open `build/libtool.m4': No such file or directory
/usr/bin/m4:configure.ac:10: cannot open `build/php_cxx_compile_stdcxx.m4': No such file or
directory
/usr/bin/m4:configure.ac:11: cannot open `build/php.m4': No such file or directory
/usr/bin/m4:configure.ac:12: cannot open `build/pkg.m4': No such file or directory
sh: 1: ./build/config-stubs: not found
sh: 1: ./build/config-stubs: not found
autom4te: /usr/bin/m4 failed with exit status: 1
buildconf: Rebuilding main/php_config.h.in
/usr/bin/m4:configure.ac:6: cannot open `build/ax_check_compile_flag.m4': No such file or
directory
/usr/bin/m4:configure.ac:7: cannot open `build/ax_func_which_gethostbyname_r.m4': No such file
or directory
/usr/bin/m4:configure.ac:8: cannot open `build/ax_gcc_func_attribute.m4': No such file or
directory
/usr/bin/m4:configure.ac:9: cannot open `build/libtool.m4': No such file or directory
/usr/bin/m4:configure.ac:10: cannot open `build/php_cxx_compile_stdcxx.m4': No such file or
directory
/usr/bin/m4:configure.ac:11: cannot open `build/php.m4': No such file or directory
/usr/bin/m4:configure.ac:12: cannot open `build/pkg.m4': No such file or directory
sh: 1: ./build/config-stubs: not found
sh: 1: ./build/config-stubs: not found
autom4te: /usr/bin/m4 failed with exit status: 1
autoheader: '/usr/local/bin/autom4te' failed with exit status: 1
buildconf: Run ./configure to proceed with customizing the PHP build.

Test script:
---------------
./buildconf

Expected result:
----------------
able to build php successfully



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=80132&edit=1


Thread (9 messages)

« previous php.bugs (#229162) next »