Performance Update
Christian Thalinger
Christian.Thalinger at Sun.COM
Wed Jul 15 10:21:15 PDT 2009
Christian Thalinger wrote:
>> No, you don't. On Ubuntu it should be as easy as:
>>
>> $ setarch i386 make
>
> Yeah, right :-/ I'm still trying to get it fully built, but I'm almost
> there. At least you need the ia32-libs package and a few others (mostly
> X, if not already installed).
>
> Furthermore there are patches required. I will post them here and will
> try to push them to the appropriate repositories. Hopefully only
> another couple of hours... :-)
Sorry, I got sidetracked. Here is a patch that should enable 32-bit
builds in 64-bit Linux environments. I will split it and post it to
build-dev and bsd-port-dev later.
Let me know if it works.
-- Christian
diff --git a/make/common/Defs-linux.gmk b/make/common/Defs-linux.gmk
--- a/make/common/Defs-linux.gmk
+++ b/make/common/Defs-linux.gmk
@@ -109,9 +109,11 @@
# We need this frame pointer to make it easy to walk the stacks.
# This should be the default on X86, but ia64 and amd64 may not have
this
# as the default.
-CFLAGS_REQUIRED_amd64 += -fno-omit-frame-pointer -D_LITTLE_ENDIAN
-CFLAGS_REQUIRED_i586 += -fno-omit-frame-pointer -D_LITTLE_ENDIAN
+CFLAGS_REQUIRED_amd64 += -m64 -fno-omit-frame-pointer -D_LITTLE_ENDIAN
+CFLAGS_REQUIRED_i586 += -m32 -fno-omit-frame-pointer -D_LITTLE_ENDIAN
CFLAGS_REQUIRED_ia64 += -fno-omit-frame-pointer -D_LITTLE_ENDIAN
+LDFLAGS_COMMON_amd64 += -m64
+LDFLAGS_COMMON_i586 += -m32
CFLAGS_REQUIRED_sparcv9 += -m64 -mcpu=v9
LDFLAGS_COMMON_sparcv9 += -m64 -mcpu=v9
CFLAGS_REQUIRED_sparc += -m32 -mcpu=v9
diff --git a/src/share/native/com/sun/java/util/jar/pack/main.cpp
b/src/share/native/com/sun/java/util/jar/pack/main.cpp
--- a/src/share/native/com/sun/java/util/jar/pack/main.cpp
+++ b/src/share/native/com/sun/java/util/jar/pack/main.cpp
@@ -24,8 +24,6 @@
*/
#ifdef _ALLBSD_SOURCE
#include <stdint.h>
-#else
-#include <sys/stdint.h>
#endif
#include <sys/types.h>
diff --git a/src/share/native/java/lang/fdlibm/include/fdlibm.h
b/src/share/native/java/lang/fdlibm/include/fdlibm.h
--- a/src/share/native/java/lang/fdlibm/include/fdlibm.h
+++ b/src/share/native/java/lang/fdlibm/include/fdlibm.h
@@ -27,7 +27,6 @@
#ifdef __OpenBSD__
#include <sys/types.h>
#endif
-#include <machine/endian.h>
#include "jfdlibm.h"
#ifdef __NEWVALID /* special setup for Sun test regime */
diff --git a/src/share/native/sun/awt/medialib/mlib_image.h
b/src/share/native/sun/awt/medialib/mlib_image.h
--- a/src/share/native/sun/awt/medialib/mlib_image.h
+++ b/src/share/native/sun/awt/medialib/mlib_image.h
@@ -30,7 +30,6 @@
#ifdef __OpenBSD__
#include <sys/types.h>
#endif
-#include <machine/endian.h>
#include <mlib_types.h>
#include <mlib_status.h>
diff --git a/src/solaris/back/util_md.h b/src/solaris/back/util_md.h
--- a/src/solaris/back/util_md.h
+++ b/src/solaris/back/util_md.h
@@ -31,7 +31,6 @@
#include <limits.h>
#include <sys/types.h>
-#include <machine/endian.h>
#ifdef _LP64
typedef unsigned long UNSIGNED_JLONG;
More information about the mlvm-dev
mailing list