You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by YiBin Hu <ba...@gmail.com> on 2008/10/20 09:04:29 UTC

Can Harmony be built on Xeon(64 bit) architecture

Hi,  all
When I tried to built harmony on a Xeon E7310(64-bit)  host, it failed and
told me "CPU you selected does not support x86-64 instruction set",
I wonder whether harmony can be built on Xeon(64 bit) architecture, and how
to fix the building error.

Many thanks
-- 
Best Regards
Barry.Hu
Software School of Fudan University

Re: Can Harmony be built on Xeon(64 bit) architecture

Posted by Mark Hindess <ma...@googlemail.com>.
In message <b1...@mail.gmail.com>,
0561018@fudan.edu.cn writes:
>
> I download the src (apache-harmony-src-r629320) to the host, and
> use hotspot jdk1.6 when built the harmony, I just copied the
> common_resource/depends, and working_classlib/depends files from a
> well-built 32-bit host harmony, maybe this is the problem, how do you
> thhink?

Copying depends trees shouldn't be an issue since platform dependent
files are downloaded to platform-specific subdirectories.

Please make sure you are using a 64-bit JRE or try building with the
additional ant options:

  -Dhy.arch=x86_64 -Dos.arch=x86_64

Regards,
 Mark.





Re: Can Harmony be built on Xeon(64 bit) architecture

Posted by 胡益斌 <05...@fudan.edu.cn>.
Mark,chen:
I download the src (apache-harmony-src-r629320) to the host, and use hotspot
jdk1.6
when built the harmony, I just copied the common_resource/depends, and
working_classlib/depends files from
a well-built 32-bit host harmony, maybe this is the problem, how do you
thhink?


2008/10/20 Chen Yang <ch...@gmail.com>

> Mark:
>   Thanks for your correction.
>   I thought it's the problem of his host, but after communicating with
> Chunrong, it looks like that Yibin may be using the 32-bit JRE.
> --
>  Chen
>
> On Mon, Oct 20, 2008 at 4:27 PM, Mark Hindess
> <ma...@googlemail.com>wrote:
>
> >
> > In message <8432f67d0810200112k6563d24dr7a7ab2cba1660856@mail.gmail.com
> >,
> > "Chen Yang" writes:
> > >
> > > Please try to remove the *-march=pentium3* from the gcc's option list,
> > > that option caused the problem. Hope it helps.
> >
> > Yibin,
> >
> > Ignore this.  Or you'll end you spend days trying to manual covert all
> > of the 32-bit compiler options to 64-bit versions.  See my previous note
> > for some other ideas.
> >
> > Chen Yang,
> >
> > I don't think this will be helpful.  For some reason, the classlib build
> > is using the flags for a 32-bit build.  We need to understand why it
> > thinks that is the platform it should be building for rather than trying
> > to manually fix the build flags (you'd also need to fix -DHYX86 to
> > -DHYX86_64, -DLINUX_X86 to -DLINUX_X86_64, etc).
> >
> > Regards,
> >  Mark
> >
> >
> >
> >
> >
>
>
> --
> Chen
>
> chen.c.yang@gmail.com
>



-- 
Best Regards Barry.Hu Software School of Fudan University

Re: Can Harmony be built on Xeon(64 bit) architecture

Posted by Chen Yang <ch...@gmail.com>.
Mark:
   Thanks for your correction.
   I thought it's the problem of his host, but after communicating with
Chunrong, it looks like that Yibin may be using the 32-bit JRE.
--
 Chen

On Mon, Oct 20, 2008 at 4:27 PM, Mark Hindess
<ma...@googlemail.com>wrote:

>
> In message <84...@mail.gmail.com>,
> "Chen Yang" writes:
> >
> > Please try to remove the *-march=pentium3* from the gcc's option list,
> > that option caused the problem. Hope it helps.
>
> Yibin,
>
> Ignore this.  Or you'll end you spend days trying to manual covert all
> of the 32-bit compiler options to 64-bit versions.  See my previous note
> for some other ideas.
>
> Chen Yang,
>
> I don't think this will be helpful.  For some reason, the classlib build
> is using the flags for a 32-bit build.  We need to understand why it
> thinks that is the platform it should be building for rather than trying
> to manually fix the build flags (you'd also need to fix -DHYX86 to
> -DHYX86_64, -DLINUX_X86 to -DLINUX_X86_64, etc).
>
> Regards,
>  Mark
>
>
>
>
>


-- 
Chen

chen.c.yang@gmail.com

Re: Can Harmony be built on Xeon(64 bit) architecture

Posted by Mark Hindess <ma...@googlemail.com>.
In message <84...@mail.gmail.com>,
"Chen Yang" writes:
>
> Please try to remove the *-march=pentium3* from the gcc's option list,
> that option caused the problem. Hope it helps.

Yibin,

Ignore this.  Or you'll end you spend days trying to manual covert all
of the 32-bit compiler options to 64-bit versions.  See my previous note
for some other ideas.

Chen Yang,

I don't think this will be helpful.  For some reason, the classlib build
is using the flags for a 32-bit build.  We need to understand why it
thinks that is the platform it should be building for rather than trying
to manually fix the build flags (you'd also need to fix -DHYX86 to
-DHYX86_64, -DLINUX_X86 to -DLINUX_X86_64, etc).

Regards,
 Mark





Re: Can Harmony be built on Xeon(64 bit) architecture

Posted by Chen Yang <ch...@gmail.com>.
hi Yibin:
  Please try to remove the *-march=pentium3* from the gcc's option list,
that option caused the problem. Hope it helps.
--
 Chen

../shared/libglob.o ../shared/libglob.c
 2008/10/20 chunrong lai <ch...@gmail.com>:
>  You can also post the running result of "Gcc -v" and "Uname -a" for
better
> description.
> 2008/10/20 胡益斌 <05...@fudan.edu.cn>
>
>> Thank you
>> My OS is Debian 4.1.1-21
>> gcc version is gcc version 4.1.2
>> glibc version is 2.3.6
>> Error Detail:
>> make-all:
>>
>> -build-native:
>>     [echo] Making "" in
>>
>>
/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/modules/portlib/src/main/native/common/unix
>>     [exec] cc -DLINUX -DLINUX_X86 -DHYX86 -DIPv6_FUNCTION_SUPPORT
>> -D_REENTRANT
>>
>>
-I/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/deploy/include
>>
>>
-I/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/deploy/jdk/include
>> -I. -I../shared/ -fpic -march=pentium3 -ggdb -O0    -c -o
>> ../shared/libglob.o ../shared/libglob.c
>>     [exec] ../shared/libglob.c:1: error: CPU you selected does not
support
>> x86-64 instruction set
>>     [exec] ../shared/libglob.c:1: error: CPU you selected does not
support
>> x86-64 instruction set
>>     [exec] make: *** [../shared/libglob.o] Error 1
>>
>> BUILD FAILED
>> /home/yzm/huyibin/test/m5/apache-harmony-src-r629320/build.xml:349: The
>> following error occurred while executing this line:
>>
>>
/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/build.xml:148:
>> The following error occurred while executing this line:
>>
>>
/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/make/build-native.xml:73:
>> The following error occurred while executing this line:
>>
>>
/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/modules/portlib/build.xml:101:
>> The following error occurred while executing this line:
>>
>>
/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/make/properties.xml:492:
>> exec returned: 2
>>
>> 2008/10/20 chunrong lai <ch...@gmail.com>
>>
>> >    I can build/run harmony in 64bits architecture without problem,
>> include
>> > windows64/Linux64.
>> >    I think that you can describe your environment, include the
>> > OS/toolchain, more clearly and what are the detailed error message (in
>> > which
>> > step of Harmony building). In my memory Harmony checks the OS to decide
>> > either 64bits binaries or 32 bits binaries will be built.
>> >
>> > -chunrong
>> >
>> > On Mon, Oct 20, 2008 at 3:04 PM, YiBin Hu <ba...@gmail.com>
wrote:
>> >
>> > > Hi,  all
>> > > When I tried to built harmony on a Xeon E7310(64-bit)  host, it
failed
>> > and
>> > > told me "CPU you selected does not support x86-64 instruction set",
>> > > I wonder whether harmony can be built on Xeon(64 bit) architecture,
and
>> > how
>> > > to fix the building error.
>> > >
>> > > Many thanks
>> > > --
>> > > Best Regards
>> > > Barry.Hu
>> > > Software School of Fudan University
>> > >
>> >
>>
>>
>>
>> --
>>  Best Regards Barry.Hu Software School of Fudan University
>>
>
  --
Chen
 chen.c.yang@gmail.com

Re: Can Harmony be built on Xeon(64 bit) architecture

Posted by YiBin Hu <ba...@gmail.com>.
oh, certainly,  This may be more detailed:
OS:
Linux r900 2.6.18-6-amd64 #1 SMP Sun Feb 10 17:50:19 UTC 2008 x86_64
GNU/Linux
gcc:
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --enable-checking=release
x86_64-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)


2008/10/20 chunrong lai <ch...@gmail.com>

>  You can also post the running result of "Gcc -v" and "Uname -a" for better
> description.
> 2008/10/20 胡益斌 <05...@fudan.edu.cn>
>
> > Thank you
> > My OS is Debian 4.1.1-21
> > gcc version is gcc version 4.1.2
> > glibc version is 2.3.6
> > Error Detail:
> > make-all:
> >
> > -build-native:
> >     [echo] Making "" in
> >
> >
> /home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/modules/portlib/src/main/native/common/unix
> >     [exec] cc -DLINUX -DLINUX_X86 -DHYX86 -DIPv6_FUNCTION_SUPPORT
> > -D_REENTRANT
> >
> >
> -I/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/deploy/include
> >
> >
> -I/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/deploy/jdk/include
> > -I. -I../shared/ -fpic -march=pentium3 -ggdb -O0    -c -o
> > ../shared/libglob.o ../shared/libglob.c
> >     [exec] ../shared/libglob.c:1: error: CPU you selected does not
> support
> > x86-64 instruction set
> >     [exec] ../shared/libglob.c:1: error: CPU you selected does not
> support
> > x86-64 instruction set
> >     [exec] make: *** [../shared/libglob.o] Error 1
> >
> > BUILD FAILED
> > /home/yzm/huyibin/test/m5/apache-harmony-src-r629320/build.xml:349: The
> > following error occurred while executing this line:
> >
> >
> /home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/build.xml:148:
> > The following error occurred while executing this line:
> >
> >
> /home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/make/build-native.xml:73:
> > The following error occurred while executing this line:
> >
> >
> /home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/modules/portlib/build.xml:101:
> > The following error occurred while executing this line:
> >
> >
> /home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/make/properties.xml:492:
> > exec returned: 2
> >
> > 2008/10/20 chunrong lai <ch...@gmail.com>
> >
> > >    I can build/run harmony in 64bits architecture without problem,
> > include
> > > windows64/Linux64.
> > >    I think that you can describe your environment, include the
> > > OS/toolchain, more clearly and what are the detailed error message (in
> > > which
> > > step of Harmony building). In my memory Harmony checks the OS to decide
> > > either 64bits binaries or 32 bits binaries will be built.
> > >
> > > -chunrong
> > >
> > > On Mon, Oct 20, 2008 at 3:04 PM, YiBin Hu <ba...@gmail.com>
> wrote:
> > >
> > > > Hi,  all
> > > > When I tried to built harmony on a Xeon E7310(64-bit)  host, it
> failed
> > > and
> > > > told me "CPU you selected does not support x86-64 instruction set",
> > > > I wonder whether harmony can be built on Xeon(64 bit) architecture,
> and
> > > how
> > > > to fix the building error.
> > > >
> > > > Many thanks
> > > > --
> > > > Best Regards
> > > > Barry.Hu
> > > > Software School of Fudan University
> > > >
> > >
> >
> >
> >
> > --
> >  Best Regards Barry.Hu Software School of Fudan University
> >
>



-- 
Best Regards Barry.Hu Software School of Fudan University

Re: Can Harmony be built on Xeon(64 bit) architecture

Posted by chunrong lai <ch...@gmail.com>.
 You can also post the running result of "Gcc -v" and "Uname -a" for better
description.
2008/10/20 胡益斌 <05...@fudan.edu.cn>

> Thank you
> My OS is Debian 4.1.1-21
> gcc version is gcc version 4.1.2
> glibc version is 2.3.6
> Error Detail:
> make-all:
>
> -build-native:
>     [echo] Making "" in
>
> /home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/modules/portlib/src/main/native/common/unix
>     [exec] cc -DLINUX -DLINUX_X86 -DHYX86 -DIPv6_FUNCTION_SUPPORT
> -D_REENTRANT
>
> -I/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/deploy/include
>
> -I/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/deploy/jdk/include
> -I. -I../shared/ -fpic -march=pentium3 -ggdb -O0    -c -o
> ../shared/libglob.o ../shared/libglob.c
>     [exec] ../shared/libglob.c:1: error: CPU you selected does not support
> x86-64 instruction set
>     [exec] ../shared/libglob.c:1: error: CPU you selected does not support
> x86-64 instruction set
>     [exec] make: *** [../shared/libglob.o] Error 1
>
> BUILD FAILED
> /home/yzm/huyibin/test/m5/apache-harmony-src-r629320/build.xml:349: The
> following error occurred while executing this line:
>
> /home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/build.xml:148:
> The following error occurred while executing this line:
>
> /home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/make/build-native.xml:73:
> The following error occurred while executing this line:
>
> /home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/modules/portlib/build.xml:101:
> The following error occurred while executing this line:
>
> /home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/make/properties.xml:492:
> exec returned: 2
>
> 2008/10/20 chunrong lai <ch...@gmail.com>
>
> >    I can build/run harmony in 64bits architecture without problem,
> include
> > windows64/Linux64.
> >    I think that you can describe your environment, include the
> > OS/toolchain, more clearly and what are the detailed error message (in
> > which
> > step of Harmony building). In my memory Harmony checks the OS to decide
> > either 64bits binaries or 32 bits binaries will be built.
> >
> > -chunrong
> >
> > On Mon, Oct 20, 2008 at 3:04 PM, YiBin Hu <ba...@gmail.com> wrote:
> >
> > > Hi,  all
> > > When I tried to built harmony on a Xeon E7310(64-bit)  host, it failed
> > and
> > > told me "CPU you selected does not support x86-64 instruction set",
> > > I wonder whether harmony can be built on Xeon(64 bit) architecture, and
> > how
> > > to fix the building error.
> > >
> > > Many thanks
> > > --
> > > Best Regards
> > > Barry.Hu
> > > Software School of Fudan University
> > >
> >
>
>
>
> --
>  Best Regards Barry.Hu Software School of Fudan University
>

Re: Can Harmony be built on Xeon(64 bit) architecture

Posted by Mark Hindess <ma...@googlemail.com>.
In message <b1...@mail.gmail.com>, 
0561018@fudan.edu.cn said:
> Thank you
> My OS is Debian 4.1.1-21
> gcc version is gcc version 4.1.2
> glibc version is 2.3.6

Sorry to request yet more information, but can you provide the output from

  ant -f working_classlib/build.xml properties
  java -version

Are you building with a 64-bit jre?  If you are building with a 32-bit jre
on a 64-bit platform then you will need to pass a few extra options to
ant - "-Dhy.arch=x86_64 -Dos.arch=x86_64" IIRC - but it is generally better
just to build with a "correct" jre.

Regards,
 Mark.



Re: Can Harmony be built on Xeon(64 bit) architecture

Posted by 胡益斌 <05...@fudan.edu.cn>.
Thank you
My OS is Debian 4.1.1-21
gcc version is gcc version 4.1.2
glibc version is 2.3.6
Error Detail:
make-all:

-build-native:
     [echo] Making "" in
/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/modules/portlib/src/main/native/common/unix
     [exec] cc -DLINUX -DLINUX_X86 -DHYX86 -DIPv6_FUNCTION_SUPPORT
-D_REENTRANT
-I/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/deploy/include
-I/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/deploy/jdk/include
-I. -I../shared/ -fpic -march=pentium3 -ggdb -O0    -c -o
../shared/libglob.o ../shared/libglob.c
     [exec] ../shared/libglob.c:1: error: CPU you selected does not support
x86-64 instruction set
     [exec] ../shared/libglob.c:1: error: CPU you selected does not support
x86-64 instruction set
     [exec] make: *** [../shared/libglob.o] Error 1

BUILD FAILED
/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/build.xml:349: The
following error occurred while executing this line:
/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/build.xml:148:
The following error occurred while executing this line:
/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/make/build-native.xml:73:
The following error occurred while executing this line:
/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/modules/portlib/build.xml:101:
The following error occurred while executing this line:
/home/yzm/huyibin/test/m5/apache-harmony-src-r629320/working_classlib/make/properties.xml:492:
exec returned: 2

2008/10/20 chunrong lai <ch...@gmail.com>

>    I can build/run harmony in 64bits architecture without problem, include
> windows64/Linux64.
>    I think that you can describe your environment, include the
> OS/toolchain, more clearly and what are the detailed error message (in
> which
> step of Harmony building). In my memory Harmony checks the OS to decide
> either 64bits binaries or 32 bits binaries will be built.
>
> -chunrong
>
> On Mon, Oct 20, 2008 at 3:04 PM, YiBin Hu <ba...@gmail.com> wrote:
>
> > Hi,  all
> > When I tried to built harmony on a Xeon E7310(64-bit)  host, it failed
> and
> > told me "CPU you selected does not support x86-64 instruction set",
> > I wonder whether harmony can be built on Xeon(64 bit) architecture, and
> how
> > to fix the building error.
> >
> > Many thanks
> > --
> > Best Regards
> > Barry.Hu
> > Software School of Fudan University
> >
>



-- 
Best Regards Barry.Hu Software School of Fudan University

Re: Can Harmony be built on Xeon(64 bit) architecture

Posted by chunrong lai <ch...@gmail.com>.
    I can build/run harmony in 64bits architecture without problem, include
windows64/Linux64.
    I think that you can describe your environment, include the
OS/toolchain, more clearly and what are the detailed error message (in which
step of Harmony building). In my memory Harmony checks the OS to decide
either 64bits binaries or 32 bits binaries will be built.

-chunrong

On Mon, Oct 20, 2008 at 3:04 PM, YiBin Hu <ba...@gmail.com> wrote:

> Hi,  all
> When I tried to built harmony on a Xeon E7310(64-bit)  host, it failed and
> told me "CPU you selected does not support x86-64 instruction set",
> I wonder whether harmony can be built on Xeon(64 bit) architecture, and how
> to fix the building error.
>
> Many thanks
> --
> Best Regards
> Barry.Hu
> Software School of Fudan University
>