bugmake - Bugs: bug #41518, Can't build make from Git...

 
 

bug #41518: Can't build make from Git repository with recent autotools

Submitter:  Patrick Palka <parcs>
Submitted:  Sun 09 Feb 2014 03:31:54 AM UTC
   
 
Severity:  3 - Normal Item Group:  Build/Install
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  4.0 Operating System:  POSIX-Based
Fixed Release:  4.1 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 05 Jun 2017 12:19:45 AM UTC, comment #3: 

The subdir-objects option was fixed in GNU make 4.1.  I'm currently able to use autoconf 2.69 and automake 1.15 and it works without any issues.

Thanks for your report!

Paul D. Smith <psmith>
Group administrator
Sun 09 Feb 2014 02:57:34 PM UTC, comment #2: 

That patch also my build failure (minus the redundant AM_PROG_AR hunk).

Patrick Palka <parcs>
Sun 09 Feb 2014 11:16:18 AM UTC, comment #1: 

On MSYS2 we use the following patch:

--- a/w32/Makefile.am 2013-09-16 12:07:00.976000000 +0400
+++ b/w32/Makefile.am 2013-10-18 22:09:50.533600000 +0400
@@ -14,6 +14,7 @@
 #
 # You should have received a copy of the GNU General Public License along with
 # this program.  If not, see <http://www.gnu.org/licenses/>.
+AUTOMAKE_OPTIONS = subdir-objects
 
 noinst_LIBRARIES = libw32.a
 
--- a/configure.ac 2013-10-20 15:20:16.931400000 +0400
+++ b/configure.ac 2013-10-18 22:18:46.650200000 +0400
@@ -46,9 +46,11 @@
 
 # Enable gettext, in "external" mode.
 
-AM_GNU_GETTEXT_VERSION([0.18.1])
+AM_GNU_GETTEXT_VERSION([0.18.3])
 AM_GNU_GETTEXT([external])
 
+AM_PROG_AR
+
 # This test must come as early as possible after the compiler configuration
 # tests, because the choice of the file model can (in principle) affect
 # whether functions and headers are available, whether they work, etc.

Ray Donnelly <raydonnelly>
Sun 09 Feb 2014 03:31:54 AM UTC, original submission:  

On a system with with autoconf 2.69 and automake 1.14.1, running "autoreconf -i" under the GNU make Git repository fails for me like so:

$ autoreconf -f -i
automake: warnings are treated as errors
configure.ac:54: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged.
configure.ac:54: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.ac:54: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.
w32/Makefile.am:20: warning: source file 'subproc/misc.c' is in a subdirectory,
w32/Makefile.am:20: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
w32/Makefile.am:20: warning: source file 'subproc/sub_proc.c' is in a subdirectory,
w32/Makefile.am:20: but option 'subdir-objects' is disabled
w32/Makefile.am:20: warning: source file 'subproc/w32err.c' is in a subdirectory,
w32/Makefile.am:20: but option 'subdir-objects' is disabled
w32/Makefile.am:20: warning: source file 'compat/posixfcn.c' is in a subdirectory,
w32/Makefile.am:20: but option 'subdir-objects' is disabled
autoreconf: automake failed with exit status: 1
bash: exit 1     autoreconf -i -f

I am no autotools expert but I think that the most immediate issue here is that -Werror is passed to AM_INIT_AUTOMAKE, turning all automake warnings into errors.  If I remove -Werror then "autoreconf -i" exits sucessfully (albeit with the same harmless warnings) and I can continue building make.

Patrick Palka <parcs>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by raydonnelly (Posted a comment)
  • -email is unavailable- added by parcs (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-06-05 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.1

    Back to the top

    Powered by Savane 3.13-12ab.
    Corresponding source code