make: don't know how to make all. Stop

Archie Cobbs archie at whistle.com
Wed Aug 12 09:44:33 PDT 1998


Oliver Thuns writes:
> I tried to compile kaffe-snap from 11-08-98, but I get the same error
> as with the beta release. Does anybody know what's wrong? I made a
> ./configure --prefix=/opt/kaffe and then make.
> 
> ibmath.so
> touch lib.exp
> ld -Bshareable -o libmath.so.1.00 BigInteger.o -lgmp -lm -lc  -lgmp
> rm -f libmath.so
> ln -s libmath.so.1.00 libmath.so
> gcc  -g -O2 -I. -I../../../include -I./../../../include
> -I../../../config -I./..
> /../../config  -c -fPIC Classpath.c -o Classpath.o
> true --def ./libmanagement.def --output-exp lib.exp --output-lib
> libmanagement.a
>  --dllname libmanagement.so
> touch lib.exp
> sed -n "s%^\(kaffe_[^(]*\).*$%KAFFE_NATIVE(\1)%p" ./*.c >
> external_wrappers.h
> ld -Bshareable -o libmanagement.so Classpath.o -lgmp -lm -lc
> make: don't know how to make all. Stop
> *** Error code 1

Not sure, but you may be encountering and error that I've seen
where the build will fail if configure detects that you don't
have X11 installed.

This is because libraries/clib/Makefile will descend into the
"awt" subdirectory no matter what, even though there's no
libraries/clib/awt/Makefile.

Contrary to the comment in libraries/clib/Makefile, this subdirectory
always exists; it's the Makefile that may not exist.

The patch below fixes this bug.

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com

diff -ur kaffe-last/libraries/clib/Makefile.in external-source/libraries/clib/Makefile.in
--- kaffe-last/libraries/clib/Makefile.in	Wed Jul 22 15:39:08 1998
+++ external-source/libraries/clib/Makefile.in	Wed Aug 12 09:39:22 1998
@@ -11,28 +11,28 @@
 subdirs=	native net zip math management awt
 
 #
-# only recurse into existing subdirectories, the awt directory might 
-# not exist unless we have X11
+# only recurse into subdirectories that contain generated makefiles.
+# for example, awt might not have one if we don't have X11 installed
 #
 
 all:
 	@for i in $(subdirs); \
-		do (test ! -d $$i || (cd $$i && $(MAKE) all)) || exit 1 ; done
+		do (test ! -f $$i/Makefile || (cd $$i && $(MAKE) all)) || exit 1 ; done
 
 clean:
 	for i in $(subdirs); \
-		do (test ! -d $$i || (cd $$i && $(MAKE) clean)) ; done
+		do (test ! -f $$i/Makefile || (cd $$i && $(MAKE) clean)) ; done
 
 distclean:
 	for i in $(subdirs); do \
-		(test ! -d $$i || (cd $$i && $(MAKE) distclean)) ; done
+		(test ! -f $$i/Makefile || (cd $$i && $(MAKE) distclean)) ; done
 	rm -f Makefile .depend
 	-rmdir $(subdirs)
 
 install:
 	for i in $(subdirs); do \
-		(test ! -d $$i || (cd $$i && $(MAKE) install)) || exit 1 ; done
+		(test ! -f $$i/Makefile || (cd $$i && $(MAKE) install)) || exit 1 ; done
 
 depend:
 	for i in $(subdirs); do \
-		(test ! -d $$i || (cd $$i && $(MAKE) depend)) || exit 1 ; done
+		(test ! -f $$i/Makefile || (cd $$i && $(MAKE) depend)) || exit 1 ; done


More information about the kaffe mailing list