On 27/05/2010 23:50, hinde...@apache.org wrote:
Author: hindessm
Date: Thu May 27 22:50:12 2010
New Revision: 949033
URL: http://svn.apache.org/viewvc?rev=949033&view=rev
Log:
Allow x86 builds to be built on x86_64 with -Dos.arch=x86. At least for
-Dhy.select=true, getting awt to build would be need more thought.
Modified:
harmony/enhanced/java/trunk/classlib/depends/build/platform/linux.x86.mk
Modified:
harmony/enhanced/java/trunk/classlib/depends/build/platform/linux.x86.mk
URL:
http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/depends/build/platform/linux.x86.mk?rev=949033&r1=949032&r2=949033&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/depends/build/platform/linux.x86.mk
(original)
+++ harmony/enhanced/java/trunk/classlib/depends/build/platform/linux.x86.mk
Thu May 27 22:50:12 2010
@@ -14,6 +14,8 @@
# limitations under the License.
DEFINES += -DLINUX -DLINUX_X86 -DHYX86 -DIPv6_FUNCTION_SUPPORT
-PLATFORM += -march=pentium3
+PLATFORM += -m32 -march=pentium3
+ASFLAGS += -a32
+LDFLAGS += -m32
OSLIBS += -ldl
HY_CAN_LINK_DEBUG = yes
I am just trying to compile Harmony for the first time, which is on a
Linux x86 (32 bit) machine. However I am getting an error early on when
trying to compile what looks like the portlib in
src/main/native/thread/unix. This is the first assembly file in the
build and as is complaining with:
Fatal error: invalid listing option '3'
make: *** [x86/thrhelp.o] Error 1
as -a32 -o x86/thrhelp.o x86/thrhelp.s
I think this is because '-a32' is not a valid option for as (the
assembler). When you made this change did you mean the option --32?
I have changed it to ASFLAGS += --32 on my machin and the build gets further.
Colin.