GNU bug report logs - #21956
subdir-objecs dies with "rm: cannot remove 'emxp_cm_bl': Is a directory", even git version

Previous Next

Package: automake;

Reported by: Joakim Tjernlund <Joakim.Tjernlund <at> infinera.com>

Date: Thu, 19 Nov 2015 03:07:01 UTC

Severity: normal

Tags: notabug

Done: Mike Frysinger <vapier <at> gentoo.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Joakim Tjernlund <Joakim.Tjernlund <at> infinera.com>
To: 21956 <at> debbugs.gnu.org
Subject: bug#21956: subdir-objecs dies with "rm: cannot remove 'emxp_cm_bl': Is a directory", even git version
Date: Thu, 19 Nov 2015 01:15:09 +0000
automake>= 1.13 (did not test lower than that) dies during make with:
 CCLD     emxp_cm_bl_shell
 rm: cannot remove 'emxp_cm_bl': Is a directory
 Makefile:1070: recipe for target 'emxp_cm_bl' failed

This happens if you have the same name on the containing directory and
in bin_PROGRAMS, like so
  bin_PROGRAMS = emxp_hw_bl
  emxp_hw_bl_SOURCES = emxp_hw_bl/emxp_hw_bl.c

Here is the offending Makefile snippet:
emxp_hw_bl$(EXEEXT): $(emxp_hw_bl_OBJECTS) $(emxp_hw_bl_DEPENDENCIES) $(EXTRA_emxp_hw_bl_DEPENDENCIES) 
	rm -f emxp_hw_bl$(EXEEXT)
	$(AM_V_CCLD)$(emxp_hw_bl_LINK) $(emxp_hw_bl_OBJECTS) $(emxp_hw_bl_LDADD) $(LIBS)



This bug report was last modified 3 years and 182 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.