F35KER%DHHDESY3.BITNET@cunyvm.cuny.edu (Kerst van Raden) (09/07/89)
Hello make(1) wizards out there! I'm currently porting MINIX-ST to a homebuilt machine with an M68010 processor, 512K memory and a hard and floppy disk. It went quite well and last week I got the system up from floppy for the first time. I installed a hard disk driver, built a filesystem on the disk and installed the system and utilities. Until then everything went fine and I let the system run for several hours unpacking the sources and running tests. Then I put the root filesystem on the harddisk to have more memory for the compiler. Still everything was running fine. I was able to recompile all of the commands. BUT: This morning I made a small change in fs/main.c, for the first time on on the target machine. I said 'make' and make started to recompile all *.c in the current directory. I interrupted and checked the access dates of all *.c *.h and *.o . All .o files were newer then the .c and h files. I tried 'make -n' and make printed the cc commands for all files but not the ld and cv command. I touch(1)ed *.o but make still wanted to recompile everything. During the following hours I removed all *.o and let make recompile them. Again 'make -n' gave cc commands for all files. I checked the date, I checked the filesystem, I fetched a copy of make from another partition of the disk - no change. Finally I went back to my Atari, booted MINIX on it repeated the change in fs/main.c on the floppy and tried make again. This time make stated that 'all: is up to date'. I removed main.o and make(1)ed again. This time make compiled main.c but did not link. I removed fs.mix and make compiled main.c again and this time produced a fs.mix . I checked with ls(1) that everything was really up to date now and tried 'make -n' again. Make again told me it would recompile main.c and link everything to produce fs.mix . At this point I have given up trying. Please, can anybody give me advice what to try next? I'm quite confident that this has nothing to do with my new machine, since it happens on the Atari as well. Also I did never move anything from the new machine to the Atari. I took virgin floppies, put them into the Atari, made a filesystem, copied the files and took them to to the other machine. I would also be happy if someone could provide me with information on the internals of make(1). Many thanks in advance, Kerst BTW: If anybody is interested in my porting work, please mail me.