[kaffe] Cross compilation failure and patch

Kiyo Inaba inaba at src.ricoh.co.jp
Wed Aug 25 06:00:16 PDT 2004


Hi,

I forgot to submit one more bug report.

If we cross compile with the latest kaffe, it failes to detect GNU C
library version number and got

    checking the GNU C library version number... configure: error: cannot run test program while cross compiling

For NetBSD, it is so sure that it uses its own library and attached patch
solves the problem. For linux, please have some nice idea...

Sorry for 'selfish' patch :-)

BTW, sooner or later, we need to change the directory name from 'netbsd1'
to 'netbsd' to avoid confusion.

Kiyo

diff -Naur kaffe-snap-040819.orig/ChangeLog kaffe-snap-040819/ChangeLog
--- kaffe-snap-040819.orig/ChangeLog	Wed Aug 18 23:29:50 2004
+++ kaffe-snap-040819/ChangeLog	Wed Aug 25 21:44:48 2004
@@ -1,3 +1,14 @@
+2004-08-25  Kiyo Inaba  <inaba at src.ricoh.co.jp>
+
+	* config/alpha/netbsd1/config.frag,
+	config/arm/netbsd1/config.frag,
+	config/i386/netbsd1/config.frag,
+	config/m68k/netbsd1/config.frag,
+	config/mips/netbsd1/config.frag,
+	config/powerpc/netbsd1/config.frag,
+	config/sparc/netbsd1/config.frag:
+	Supply GNU C library version number when cross compiled.
+
 2004-08-18  Dalibor Topic  <robilad at kaffe.org>
 
 	* config/Makefile.am:
diff -Naur kaffe-snap-040819.orig/config/alpha/netbsd1/config.frag kaffe-snap-040819/config/alpha/netbsd1/config.frag
--- kaffe-snap-040819.orig/config/alpha/netbsd1/config.frag	Tue Jul 29 03:28:40 2003
+++ kaffe-snap-040819/config/alpha/netbsd1/config.frag	Wed Aug 25 21:40:58 2004
@@ -5,4 +5,5 @@
 
 if [ "$cross_compiling" = yes ]; then
   ac_cv_c_char_unsigned=${ac_cv_c_char_unsigned='no'}
+  ac_cv_gnu_library_version=${ac_cv_gnu_library_version='no'}
 fi
diff -Naur kaffe-snap-040819.orig/config/arm/netbsd1/config.frag kaffe-snap-040819/config/arm/netbsd1/config.frag
--- kaffe-snap-040819.orig/config/arm/netbsd1/config.frag	Tue Jul 29 03:28:40 2003
+++ kaffe-snap-040819/config/arm/netbsd1/config.frag	Wed Aug 25 21:41:07 2004
@@ -5,4 +5,5 @@
 
 if [ "$cross_compiling" = yes ]; then
   ac_cv_c_char_unsigned=${ac_cv_c_char_unsigned='no'}
+  ac_cv_gnu_library_version=${ac_cv_gnu_library_version='no'}
 fi
diff -Naur kaffe-snap-040819.orig/config/i386/netbsd1/config.frag kaffe-snap-040819/config/i386/netbsd1/config.frag
--- kaffe-snap-040819.orig/config/i386/netbsd1/config.frag	Tue Jul 29 03:28:41 2003
+++ kaffe-snap-040819/config/i386/netbsd1/config.frag	Wed Aug 25 21:41:13 2004
@@ -3,4 +3,5 @@
 #
 if [ "$cross_compiling" = yes ]; then
   ac_cv_c_char_unsigned=${ac_cv_c_char_unsigned='no'}
+  ac_cv_gnu_library_version=${ac_cv_gnu_library_version='no'}
 fi
diff -Naur kaffe-snap-040819.orig/config/m68k/netbsd1/config.frag kaffe-snap-040819/config/m68k/netbsd1/config.frag
--- kaffe-snap-040819.orig/config/m68k/netbsd1/config.frag	Wed Jun 23 01:04:58 2004
+++ kaffe-snap-040819/config/m68k/netbsd1/config.frag	Wed Aug 25 21:41:29 2004
@@ -5,4 +5,5 @@
 LDFLAGS="$LDFLAGS -lm68k"
 if [ "$cross_compiling" = yes ]; then
   ac_cv_c_char_unsigned=${ac_cv_c_char_unsigned='no'}
+  ac_cv_gnu_library_version=${ac_cv_gnu_library_version='no'}
 fi
diff -Naur kaffe-snap-040819.orig/config/mips/netbsd1/config.frag kaffe-snap-040819/config/mips/netbsd1/config.frag
--- kaffe-snap-040819.orig/config/mips/netbsd1/config.frag	Tue Jul 29 03:28:41 2003
+++ kaffe-snap-040819/config/mips/netbsd1/config.frag	Wed Aug 25 21:41:44 2004
@@ -5,4 +5,5 @@
 
 if [ "$cross_compiling" = yes ]; then
   ac_cv_c_char_unsigned=${ac_cv_c_char_unsigned='no'}
+  ac_cv_gnu_library_version=${ac_cv_gnu_library_version='no'}
 fi
diff -Naur kaffe-snap-040819.orig/config/powerpc/netbsd1/config.frag kaffe-snap-040819/config/powerpc/netbsd1/config.frag
--- kaffe-snap-040819.orig/config/powerpc/netbsd1/config.frag	Tue Jul 29 03:28:42 2003
+++ kaffe-snap-040819/config/powerpc/netbsd1/config.frag	Wed Aug 25 21:42:11 2004
@@ -5,6 +5,7 @@
 
 if [ "$cross_compiling" = yes ]; then
   ac_cv_c_char_unsigned=${ac_cv_c_char_unsigned='no'}
+  ac_cv_gnu_library_version=${ac_cv_gnu_library_version='no'}
 fi
 
 if test "$with_setjmp" = "glibc"; then
diff -Naur kaffe-snap-040819.orig/config/sparc/netbsd1/config.frag kaffe-snap-040819/config/sparc/netbsd1/config.frag
--- kaffe-snap-040819.orig/config/sparc/netbsd1/config.frag	Tue Jul 29 03:28:42 2003
+++ kaffe-snap-040819/config/sparc/netbsd1/config.frag	Wed Aug 25 21:42:18 2004
@@ -3,4 +3,5 @@
 #
 if [ "$cross_compiling" = yes ]; then
   ac_cv_c_char_unsigned=${ac_cv_c_char_unsigned='no'}
+  ac_cv_gnu_library_version=${ac_cv_gnu_library_version='no'}
 fi



More information about the kaffe mailing list