Like Tree1Likes
  • 1 Post By AndiPersti

master.filelist in Makefile

This is a discussion on master.filelist in Makefile within the C Programming forums, part of the General Programming Boards category; Hi all, I've been trying to build a driver(that someone else wrote) and after configuring I tried to run `make` ...

  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    3

    master.filelist in Makefile

    Hi all,

    I've been trying to build a driver(that someone else wrote) and after configuring I tried to run `make` which yielded the following error:

    ERROR: Could not read ./master.filelist
    make[1]: *** [sort_filelist] Error 2
    make[1]: Leaving directory '~/compression/src/pkgdata'
    make: *** [all-recursive] Error

    After looking into the directory which the makefile expects "master.filelist" to be in(pkgdata) I see a handful of *.filelist files but no master.filelist. I couldn't find much about master.filelist being used elsewhere, but I assume it is a grouping of the *.filelist files?

    Here are the lines in "Makefile" that use master.filelist:
    Code:
    FILELIST_FILE = ~/compression/src/pkgdata/master.filelist
    ...
    filelist-flavorincludeHEADERS:
            @list='$(flavorinclude_HEADERS)'; for p in $$list; do \
               filelistdir="`echo $(FILELIST_FILE) | sed -e 's!/[^/]*$$!!'`"; \
              p="`echo $(flavorincludedir)/$$p | sed -e 's!^$(prefix)!!'`"; \
              echo "$$p" >> "$${filelistdir}/${GLOBUS_FLAVOR_NAME}_dev.filelist"; \
            done
    ...
    filelist-libLTLIBRARIES: $(lib_LTLIBRARIES)
            @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
              filelistdir="`echo $(FILELIST_FILE) | sed -e 's!/[^/]*$$!!'`"; \
              $(GPT_LOCATION)/sbin/gpt_get_lib_names $$p $(DESTDIR)$(libdir) -old | sed -e 's!^$(DESTDIR)$(exec_prefix)!!' -e 's!$(exec_prefix)!!' >> 
    "$${filelistdir}/${GLOBUS_FLAVOR_NAME}_dev.filelist"; \
              $(GPT_LOCATION)/sbin/gpt_get_lib_names $$p $(DESTDIR)$(libdir) -dynamic | sed -e 's!^$(DESTDIR)$(exec_prefix)!!' -e 's!$(exec_prefix)!!' >>
    "$${filelistdir}/${GLOBUS_FLAVOR_NAME}_rtl.filelist"; \
            done
    Any help would be appreciated.

  2. #2
    Registered User
    Join Date
    May 2012
    Posts
    1,066
    Quote Originally Posted by GoldenSmurf View Post
    I've been trying to build a driver(that someone else wrote) and after configuring I tried to run `make` which yielded the following error:
    Can you tell us more about this driver (name, device, os, ...) or is it top secret?
    Can't you ask the guy who wrote it?

    Bye, Andreas
    rags_to_riches likes this.

  3. #3
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,629
    Make can be pretty complicated and there is not enough info here to give you a definitive answer. You could add a --debug flag when you call make, which should give you all the info you need to track down your problem. But be warned, there are huge amounts of output that is very time consuming to sort through.

    Before you get to that point, start simpler. More context (i.e. more lines) from make's output would be helpful. As far back as you need to go to determine which rule it was processing when it failed and which command in that rule it was running that couldn't find it that file. There is a lot more involved than just that master.filelist file, environment/shell variables being key. Add some commands in whatever rule is failing, to print useful information like the values of @list, filelistdir, etc. Perhaps one of those sed commands is broken and you are creating an invalid path from it. Print the current working directory at key places, perhaps you are in a different directory than make expects (not likely based on what you posted, but possible I suppose). Also, it could just be the author made a mistake.

  4. #4
    Registered User
    Join Date
    Jun 2012
    Posts
    3
    Quote Originally Posted by AndiPersti View Post
    Can you tell us more about this driver (name, device, os, ...) or is it top secret?
    Can't you ask the guy who wrote it?
    It is a driver that works with GridFTP and the Globus Toolkit's XIO in order to compress traffic. I'm building it in Ubuntu 11.10 32-bit. I'm currently waiting for a reply from the author but I am trying to figure it out while I wait.

    anduril462, I will start doing what you suggest.

  5. #5
    Registered User
    Join Date
    Jun 2012
    Posts
    3
    So it turned out the Makefile was deleting the file "master.filelist" which is why I could not find it. I worked around this by making "master.filelist" read-only and then running `make`.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. difference makefile makefile.am makefile.in
    By Bargi in forum Linux Programming
    Replies: 7
    Last Post: 10-28-2007, 03:08 PM
  2. Filelist Question
    By 00Sven in forum C Programming
    Replies: 2
    Last Post: 02-16-2006, 02:03 AM
  3. I'm the master of cin/cout...
    By revler in forum C++ Programming
    Replies: 8
    Last Post: 01-14-2004, 07:11 PM
  4. to: master o' web... and other ones of you as well...
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 08-16-2001, 06:34 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21