Skip to contentSkip to conversation

distclean failure

DISCUSSION Christoph Egger 4 participants 10 messages Aug 1, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

cleaning the source tree fails.
gmake tries to enter a non-existing directory.

gmake[2]: Entering directory `xen-staging.hg/stubdom/c' rm -f *.a *.o
gmake[2]: Leaving directory `xen-staging.hg/stubdom/c' gmake -C grub clean
gmake[2]: Entering directory `xen-staging.hg/stubdom/grub' rm -fr dirs *.a *.o stage2 netboot
gmake[2]: Leaving directory `xen-staging.hg/stubdom/grub' gmake -C libxc clean
gmake: Entering an unknown directory
gmake: *** libxc: No such file or directory. Stop.
gmake: Leaving an unknown directory
gmake[1]: *** [clean] Error 2
gmake[1]: Leaving directory `xen-staging.hg/stubdom'
gmake: *** [distclean] Error 2

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
#1 lore raw
Quoted 1 line · Christoph Egger, le Fri 01 Aug 2008 16:14:56 +0200, a écrit :

gmake: *** libxc: No such file or directory. Stop.

Ah, right.

Samuel

stubdom: fix clean target after distclean

stubdom/Makefile +2 -2
diff -r 3dedb6209991 stubdom/Makefile
@@ -321,8 +321,8 @@ clean:
 	$(MAKE) -C caml clean
 	$(MAKE) -C c clean
 	$(MAKE) -C grub clean
-	$(MAKE) -C libxc clean
-	$(MAKE) -C ioemu clean
+	[ ! -d libxc ] || $(MAKE) -C libxc clean
+	[ ! -d ioemu ] || $(MAKE) -C ioemu clean
 
 # clean the cross-compilation result
 .PHONY: crossclean
#2 lore raw
Quoted 16 lines · On Friday 01 August 2008 16:18:20 Samuel Thibault wrote:
Quoted 1 line · Christoph Egger, le Fri 01 Aug 2008 16:14:56 +0200, a écrit :

gmake: *** libxc: No such file or directory. Stop.

Ah, right.

Samuel

stubdom: fix clean target after distclean

diff -r 3dedb6209991 stubdom/Makefile

stubdom/Makefile clean: · line 328

Quoted 10 lines
stubdom/Makefile +2 -2
@@ -321,8 +321,8 @@ clean:
 	$(MAKE) -C caml clean
 	$(MAKE) -C c clean
 	$(MAKE) -C grub clean
-	$(MAKE) -C libxc clean
-	$(MAKE) -C ioemu clean
+	[ ! -d libxc ] || $(MAKE) -C libxc clean
+	[ ! -d ioemu ] || $(MAKE) -C ioemu clean
 
 # clean the cross-compilation result
 .PHONY: crossclean

Yes, this patch works. Tnx.

Christoph

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
#3 lore raw

Keir: In c/s 18211, why $$(MAKE) instead of $(MAKE) ?

Christoph

Quoted 31 lines · On Friday 01 August 2008 16:26:33 Christoph Egger wrote:
Quoted 16 lines · On Friday 01 August 2008 16:18:20 Samuel Thibault wrote:
Quoted 1 line · Christoph Egger, le Fri 01 Aug 2008 16:14:56 +0200, a écrit :

gmake: *** libxc: No such file or directory. Stop.

Ah, right.

Samuel

stubdom: fix clean target after distclean

diff -r 3dedb6209991 stubdom/Makefile

stubdom/Makefile clean: · line 328

Quoted 10 lines
stubdom/Makefile +2 -2
@@ -321,8 +321,8 @@ clean:
 	$(MAKE) -C caml clean
 	$(MAKE) -C c clean
 	$(MAKE) -C grub clean
-	$(MAKE) -C libxc clean
-	$(MAKE) -C ioemu clean
+	[ ! -d libxc ] || $(MAKE) -C libxc clean
+	[ ! -d ioemu ] || $(MAKE) -C ioemu clean
 
 # clean the cross-compilation result
 .PHONY: crossclean

Yes, this patch works. Tnx.

Christoph

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
#4 lore raw

Oops. Cut-n-paste error after the patch didn't apply straight from the email text. Fixed.

-- Keir

Quoted 40 lines · Christoph Egger

Keir: In c/s 18211, why $$(MAKE) instead of $(MAKE) ?

Christoph

Quoted 31 lines · On Friday 01 August 2008 16:26:33 Christoph Egger wrote:
Quoted 21 lines · On Friday 01 August 2008 16:18:20 Samuel Thibault wrote:
Quoted 1 line · Christoph Egger, le Fri 01 Aug 2008 16:14:56 +0200, a écrit :

gmake: *** libxc: No such file or directory. Stop.

Ah, right.

Samuel

stubdom: fix clean target after distclean

diff -r 3dedb6209991 stubdom/Makefile

stubdom/Makefile Fri Aug 01 15:17:46 2008 +0100 renamed from stubdom/Makefile Fri Aug 01 12:18:02 2008 +0100 +0 -0
@@ -321,8 +321,8 @@ clean:

$(MAKE) -C caml clean
$(MAKE) -C c clean
$(MAKE) -C grub clean
- $(MAKE) -C libxc clean
- $(MAKE) -C ioemu clean

Quoted 5 lines
+ [ ! -d libxc ] || $(MAKE) -C libxc clean
+ [ ! -d ioemu ] || $(MAKE) -C ioemu clean
 # clean the cross-compilation result
 .PHONY: crossclean

Yes, this patch works. Tnx.

Christoph

#5 lore raw
In reply to Samuel Thibault
Quoted 19 lines · Samuel Thibault
Quoted 2 lines · Christoph Egger, le Fri 01 Aug 2008 16:14:56 +0200, a écrit :

gmake: *** libxc: No such file or directory. Stop.

Ah, right.

Samuel

stubdom: fix clean target after distclean

diff -r 3dedb6209991 stubdom/Makefile

stubdom/Makefile clean: · line 326

Quoted 8 lines
stubdom/Makefile +2 -2
@@ -321,8 +321,8 @@ clean:
 	$(MAKE) -C caml clean
 	$(MAKE) -C c clean
 	$(MAKE) -C grub clean
-	$(MAKE) -C libxc clean
-	$(MAKE) -C ioemu clean
+	[ ! -d libxc ] || $(MAKE) -C libxc clean
+	[ ! -d ioemu ] || $(MAKE) -C ioemu clean
 

Are you sure you don't not need a double negative there?

J

#6 lore raw
Quoted 4 lines · Jeremy Fitzhardinge, le Fri 01 Aug 2008 13:27:29 -0700, a écrit :

stubdom/Makefile clean: · line 325

Quoted 2 lines
stubdom/Makefile +2 -0
+	[ ! -d libxc ] || $(MAKE) -C libxc clean
+	[ ! -d ioemu ] || $(MAKE) -C ioemu clean

Are you sure you don't not need a double negative there?

Mmm, why? The clean target succeeds if either there is not even libxc/ioemu directories, or the make clean there works.

Samuel

#7 lore raw
Quoted 11 lines · Samuel Thibault
Quoted 5 lines · Jeremy Fitzhardinge, le Fri 01 Aug 2008 13:27:29 -0700, a écrit :

stubdom/Makefile clean: · line 325

Quoted 3 lines
stubdom/Makefile +2 -0
+	[ ! -d libxc ] || $(MAKE) -C libxc clean
+	[ ! -d ioemu ] || $(MAKE) -C ioemu clean

Are you sure you don't not need a double negative there?

Mmm, why? The clean target succeeds if either there is not even libxc/ioemu directories, or the make clean there works.

I'm just pointing out that

	[ -d libxc ] && $(MAKE) -C libxc clean

is more straightforward.

J

#8 lore raw
Quoted 13 lines · Jeremy Fitzhardinge, le Fri 01 Aug 2008 13:40:31 -0700, a écrit :
Quoted 11 lines · Samuel Thibault
Quoted 5 lines · Jeremy Fitzhardinge, le Fri 01 Aug 2008 13:27:29 -0700, a écrit :

stubdom/Makefile clean: · line 325

Quoted 3 lines
stubdom/Makefile +2 -0
+	[ ! -d libxc ] || $(MAKE) -C libxc clean
+	[ ! -d ioemu ] || $(MAKE) -C ioemu clean

Are you sure you don't not need a double negative there?

Mmm, why? The clean target succeeds if either there is not even libxc/ioemu directories, or the make clean there works.

Quoted 5 lines

I'm just pointing out that

	[ -d libxc ] && $(MAKE) -C libxc clean

is more straightforward.

But it makes the rule fail if the directory doesn't exist.

Samuel

#9 lore raw
Quoted 18 lines · Samuel Thibault
Quoted 16 lines · Jeremy Fitzhardinge, le Fri 01 Aug 2008 13:40:31 -0700, a écrit :
Quoted 14 lines · Samuel Thibault
Quoted 7 lines · Jeremy Fitzhardinge, le Fri 01 Aug 2008 13:27:29 -0700, a écrit :

stubdom/Makefile clean: · line 325

Quoted 4 lines
stubdom/Makefile +2 -0
+	[ ! -d libxc ] || $(MAKE) -C libxc clean
+	[ ! -d ioemu ] || $(MAKE) -C ioemu clean

Are you sure you don't not need a double negative there?

Mmm, why? The clean target succeeds if either there is not even libxc/ioemu directories, or the make clean there works.

Quoted 9 lines
Quoted 6 lines

I'm just pointing out that

	[ -d libxc ] && $(MAKE) -C libxc clean

is more straightforward.

But it makes the rule fail if the directory doesn't exist.

Blerk. OK.

J