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

 
 

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

Submitted by:  Patrick Palka <parcs>
Submitted on:  Sun 09 Feb 2014 03:31:54 AM UTC  
 
Severity: 3 - NormalItem Group: Build/Install
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 4.0Operating System: POSIX-Based
Fixed Release: NoneTriage Status: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup