[kaffe] Darwin 7 PPC Build Error

Michael Franz mvfranz at gmail.com
Tue Jan 4 05:43:57 PST 2005


How do I get this patch to work on the tinderbox tests?


On Tue, 04 Jan 2005 07:54:31 +0100, Guilhem Lavaux <guilhem at kaffe.org> wrote:
> Michael Franz wrote:
> > I think I finally have the tinderbox working - more tweaks will be
> > needed.  The current build is failing with:
> > ccache gcc -g -O2 -Wchar-subscripts -Wcomment -Wformat=2
> > -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces
> > -Wparentheses -Wsequence-point -Wreturn-type -Wswitch -Wswitch-default
> > -Wswitch-enum -Wtrigraphs -Wunused-function -Wunused-label
> > -Wunused-parameter -Wunused-variable -Wunused-value -Wunknown-pragmas
> > -Wstrict-aliasing -W -Wfloat-equal -Wundef -Wendif-labels -Wshadow
> > -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align
> > -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return
> > -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
> > -Wmissing-noreturn -Wmissing-format-attribute -Wpacked
> > -Wredundant-decls -Wnested-externs -Winvalid-pch -Winline -Wlong-long
> > -Wdisabled-optimization -fsigned-char -o .libs/jitBasic jitBasic.o
> > jit_stub.o version.o .libs/jitBasicS.o
> > ../../kaffe/kaffevm/.libs/libkaffevm.dylib -L/usr/local/lib
> > /Users/mfranz/development/tinderbox/tinderclient/kaffe/kaffe/kaffe/kaffevm/verifier/.libs/libkaffeverifier.dylib
> > /Users/mfranz/development/tinderbox/tinderclient/kaffe/kaffe/kaffe/kaffevm/kaffe-gc/.libs/libkaffegc.dylib
> > -lm ../../libltdl/.libs/libltdlc.a -ldl
> > ld: warning -L: directory name (/usr/local/lib) does not exist
> > ld: Undefined symbols:
> > _repsem_destroy
> > _repsem_getvalue
> > _repsem_init
> > _repsem_post
> > _repsem_wait
> >
> > Michael
> > 
> > _______________________________________________
> > kaffe mailing list
> > kaffe at kaffe.org
> > http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
> >
> 
> Hi,
> 
> You have to add $(top_builddir)/replace/libreplace.la to the list of
> libraries to be linked with in LIBADD in Makefile.am.
> 
> Here is a patch for this.
> 
> Regards,
> 
> Guilhem.
> 
> 
> Index: test/internal//Makefile.am
> ===================================================================
> RCS file: /cvs/kaffe/kaffe/test/internal/Makefile.am,v
> retrieving revision 1.14
> diff -u -r1.14 Makefile.am
> --- test/internal//Makefile.am  1 Jan 2005 19:57:50 -0000       1.14
> +++ test/internal//Makefile.am  4 Jan 2005 06:55:52 -0000
> @@ -45,10 +45,11 @@
>         -I$(top_srcdir)/kaffe/kaffevm/jni
> 
>  LIBNATIVE = $(top_builddir)/libraries/clib/native/libnative.la
> +LIBREPLACE = $(top_builddir)/replace/libreplace.la
>  LIBKAFFEVM = ../../kaffe/kaffevm/libkaffevm.la $(libjvmpi)
> 
>  jitBasic_LDFLAGS = -export-dynamic
> -jitBasic_LDADD = "-dlopen" $(LIBNATIVE) $(LIBKAFFEVM) $(libxprof) @LIBLTDL@
> +jitBasic_LDADD = "-dlopen" $(LIBNATIVE) $(LIBKAFFEVM) $(LIBREPLACE) $(libxprof) @LIBLTDL@
>  jitBasic_DEPENDENCIES = $(LIBNATIVE) $(LIBKAFFEVM) $(libxprof)
> 
>  STUB = main_stub.c
> Index: test/internal//Makefile.in
> ===================================================================
> RCS file: /cvs/kaffe/kaffe/test/internal/Makefile.in,v
> retrieving revision 1.90
> diff -u -r1.90 Makefile.in
> --- test/internal//Makefile.in  1 Jan 2005 19:57:50 -0000       1.90
> +++ test/internal//Makefile.in  4 Jan 2005 06:55:52 -0000
> @@ -93,7 +93,8 @@
>  @ENABLE_JVMPI_TRUE@    ../../kaffe/jvmpi/libkaffejvmpi.la
>  am__DEPENDENCIES_3 = ../../kaffe/kaffevm/libkaffevm.la \
>         $(am__DEPENDENCIES_2)
> - at NEED_LIBXPROF_TRUE@am__DEPENDENCIES_4 =  \
> +am__DEPENDENCIES_4 = $(top_builddir)/replace/libreplace.la
> + at NEED_LIBXPROF_TRUE@am__DEPENDENCIES_5 =  \
>  @NEED_LIBXPROF_TRUE@   ../../kaffe/xprof/libkaffexprof.la
>  DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/config -I$(top_builddir)/include/kaffe
>  depcomp = $(SHELL) $(top_srcdir)/scripts/depcomp
> @@ -399,9 +400,10 @@
>         -I$(top_srcdir)/kaffe/kaffevm/jni
> 
>  LIBNATIVE = $(top_builddir)/libraries/clib/native/libnative.la
> +LIBREPLACE = $(top_builddir)/replace/libreplace.la
>  LIBKAFFEVM = ../../kaffe/kaffevm/libkaffevm.la $(libjvmpi)
>  jitBasic_LDFLAGS = -export-dynamic
> -jitBasic_LDADD = "-dlopen" $(LIBNATIVE) $(LIBKAFFEVM) $(libxprof) @LIBLTDL@
> +jitBasic_LDADD = "-dlopen" $(LIBNATIVE) $(LIBKAFFEVM) $(LIBREPLACE) $(libxprof) @LIBLTDL@
>  jitBasic_DEPENDENCIES = $(LIBNATIVE) $(LIBKAFFEVM) $(libxprof)
>  STUB = main_stub.c
>  JIT_STUB = jit_stub.c
> 
> 
>




More information about the kaffe mailing list