buggnubg - Bugs: bug #47669, 'make distclean' fails with an...

 
 

bug #47669: 'make distclean' fails with an error

Submitter:  None
Submitted:  Tue 12 Apr 2016 10:31:05 AM UTC
   
 
Originator Name:  Jeremy Moore Originator Email:  * -email is unavailable-
Item Group:  Installation Error Category:  Compile and link errors
Release:  * 1.00 - 1.05Pre Privacy:  Public
Operating System:  Linux Severity:  3 - Normal
Open/Closed:  Closed Assigned to:  None
Priority:  5 - Normal Status:  Fixed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 15 Apr 2016 11:05:37 AM UTC, comment #2: 

If the Windows build uses autoconf, it should be OK. According to the manual it will create a copy if symlinks aren't available:


 -- Macro: AC_CONFIG_LINKS (DEST:SOURCE..., [CMDS], [INIT-CMDS])
     Make `AC_OUTPUT' link each of the existing files SOURCE to the
     corresponding link name DEST.  Makes a symbolic link if possible,
     otherwise a hard link if possible, otherwise a copy.


Are there are any instructions for creating the Windows binaries? I'd be happy to test it out if so.

Anonymous
Wed 13 Apr 2016 08:50:37 PM UTC, comment #1: 

Will a symlink work with cygwin or whatever is used for the Windows builds ?

Another possibility would be to use a dummy lib/output.c that includes ../output.c (or vice-versa). Somewhat similar to what is done with evallock.c.

Philippe Michel <plm>
Group administrator
Tue 12 Apr 2016 10:31:05 AM UTC, original submission:  

Steps to reproduce:
1. Fresh checkout from CVS as of 2016-04-07
2. ./autogen.sh
3. ./configure
4. make distclean

Expected:
All files created at step 3 should be removed

Actual:
Errors of the form 'Makefile:802: .deps/analysis.Po: No such file or directory', and a few files left behind.

Tool versions:
automake 1.15, autoconf 2.69, make 4.1

Analysis:
The lib submake builds ../output.c in place, making use of ../$(DEPDIR) to do so. Automake therefore generates this distclean rule in lib/Makefile:

distclean: distclean-am
-rm -rf ../$(DEPDIR) ./$(DEPDIR)

When the lib submake completes, control returns to the top-level makefile, which fails on a string of 'include ./$(DEPDIR)/*' directives because the directory has been deleted.

Would it be acceptable to symlink output.c into the lib subdir during configuration instead of building it in place?


--- a/configure.ac
+++ b/configure.ac
@@ -378,6 +378,7 @@ dnl

 AX_EXT()
 AC_MSG_CHECKING([for SIMD CPU instructions])
+AC_CONFIG_LINKS([lib/output.c:output.c])
 AC_ARG_ENABLE( simd, [  --enable-simd=TYPE      enable SIMD usage for newer cpus(TYPE=yes,fma,avx,sse2,no)], simdcpu=$enableval, simdcpu="undef")
 if test "x$simdcpu" = "xundef" || test "x$simdcpu" = "xyes"; then
     if test "x$ax_cv_have_fma_ext" = "xyes"; then
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -10,7 +10,7 @@ LIBADD = @GLIB_LIBS@

 noinst_LTLIBRARIES = libevent.la libsimd.la

-libsimd_la_SOURCES = neuralnetsse.c inputs.c ../output.c
+libsimd_la_SOURCES = neuralnetsse.c inputs.c output.c
 libsimd_la_CFLAGS = $(AM_CFLAGS) $(SIMD_CFLAGS)

 libevent_la_SOURCES = list.c neuralnet.c mt19937ar.c isaac.c md5.c simd.h mm_malloc.h cache.c \


Or, feel free to tell me to mind my own business, I'm new around here :)

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #36898:  distclean_error.log added by None (9KiB - text/x-log)
file #36899:  distclean.patch added by None (968B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by plm (Posted a comment)
  • -email is unavailable- added by None (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-01 plm Open/ClosedOpen Closed
        StatusConfirmed Fixed
    2016-04-13 plm OS Type64Bit Any
        Processor TypeIntel Any
        StatusNone Confirmed
    2016-04-12 None Attached File- Added distclean_error.log, #36898
        Attached File- Added distclean.patch, #36899

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code