You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Nathan Beyer <nd...@apache.org> on 2008/03/23 22:06:29 UTC

[build][classlib] mac os x/x86 missing make file

-clean-native-tests:
     [echo] Making "clean" in
/Users/nathan/harmony/working_classlib/modules/portlib/src/test/native/init/unix
     [exec] /Users/nathan/harmony/working_classlib/deploy/build/make/defines.mk:38:
/Users/nathan/harmony/working_classlib/deploy/build/make/platform/macosx.x86.mk:
No such file or directory
     [exec] make: *** No rule to make target
`/Users/nathan/harmony/working_classlib/deploy/build/make/platform/macosx.x86.mk'.

There seems to be a missing make file for the macosx.x86 combination.
When I peek into that directory, there's a macosx.ppc32.mk file. What
do I need to modify add to get the classlib build to support x86?

-Nathan

Re: [build][classlib] mac os x/x86 missing make file

Posted by Nathan Beyer <nb...@gmail.com>.
On Mon, Mar 24, 2008 at 6:38 AM, Mark Hindess
<ma...@googlemail.com> wrote:
>
>  On 23 March 2008 at 22:42, "Nathan Beyer" <nd...@apache.org> wrote:
>  > I made some changes to get this going a bit -
>  > http://svn.apache.org/viewvc?view=rev&revision=640300
>  >
>  > I've also begun a wiki page here -
>  > http://wiki.apache.org/harmony/DevConfiguration_Mac_OS_X_(Leopard)
>  >
>  > I'm stuck again with some failures that I'm not clear about, so if any
>  > experts are watching, please take a look at this snippet of my build
>  > log.
>  >
>
> > -build-native-thread:
>  >      [echo] Making "" in
>  > /Users/nathan/harmony/working_classlib/modules/portlib/src/main/native/thread
>  > /unix
>  >      [exec] as   -o x86/thrhelp.o x86/thrhelp.s
>  >      [exec] x86/thrhelp.s:37:Unknown pseudo-op: .type
>  >      [exec] x86/thrhelp.s:37:Rest of line ignored. 1st junk character
>  > valued 104 (h).
>  >      [exec] x86/thrhelp.s:39:Unknown pseudo-op: .type
>  >      [exec] x86/thrhelp.s:39:Rest of line ignored. 1st junk character
>  > valued 99 (c).
>  >      [exec] x86/thrhelp.s:41:Unknown pseudo-op: .type
>  >      [exec] x86/thrhelp.s:41:Rest of line ignored. 1st junk character
>  > valued 104 (h).
>  >      [exec] x86/thrhelp.s:70:Unknown pseudo-op: .size
>  >      [exec] x86/thrhelp.s:70:Rest of line ignored. 1st junk character
>  > valued 99 (c).
>  >      [exec] x86/thrhelp.s:95:Unknown pseudo-op: .size
>  >      [exec] x86/thrhelp.s:95:Rest of line ignored. 1st junk character
>  > valued 104 (h).
>  >      [exec] x86/thrhelp.s:120:Unknown pseudo-op: .size
>  >      [exec] x86/thrhelp.s:120:Rest of line ignored. 1st junk character
>  > valued 104 (h).
>  >      [exec] make: *** [x86/thrhelp.o] Error 1
>
>
>  The problem is that there are two files for hythr that are written for the
>  GNU assembler... clearly os/x is using a non-compatible assembler so either
>  the assembler should be converted for os/x or a version of GNU binutils/as
>  should be used instead of the default assembler.

When I run 'as -version' from the console, this is what I get, if
that's of interest.

Apple Computer, Inc. version cctools-667.3~21, GNU assembler version 1.38

If I were to consider the path of building a hythr for OS X, what
files would I be looking at?

>
>  To complicate matters, this hythr code wont actually be used by the federated
>  build only the drlvm version will be used so you could find a way to force the
>  build to proceed without building this code and worry about the similar
>  problems you might find with the drlvm code.
>
>  We really should get the federated build/drlvm using hy.no.thr mode where the
>  VM provides the thread library rather than portlib/classlib.
>
>  -Mark.
>
>
>

Re: [build][classlib] mac os x/x86 missing make file

Posted by Mark Hindess <ma...@googlemail.com>.
On 23 March 2008 at 22:42, "Nathan Beyer" <nd...@apache.org> wrote:
> I made some changes to get this going a bit -
> http://svn.apache.org/viewvc?view=rev&revision=640300
> 
> I've also begun a wiki page here -
> http://wiki.apache.org/harmony/DevConfiguration_Mac_OS_X_(Leopard)
> 
> I'm stuck again with some failures that I'm not clear about, so if any
> experts are watching, please take a look at this snippet of my build
> log.
> 
> -build-native-thread:
>      [echo] Making "" in
> /Users/nathan/harmony/working_classlib/modules/portlib/src/main/native/thread
> /unix
>      [exec] as   -o x86/thrhelp.o x86/thrhelp.s
>      [exec] x86/thrhelp.s:37:Unknown pseudo-op: .type
>      [exec] x86/thrhelp.s:37:Rest of line ignored. 1st junk character
> valued 104 (h).
>      [exec] x86/thrhelp.s:39:Unknown pseudo-op: .type
>      [exec] x86/thrhelp.s:39:Rest of line ignored. 1st junk character
> valued 99 (c).
>      [exec] x86/thrhelp.s:41:Unknown pseudo-op: .type
>      [exec] x86/thrhelp.s:41:Rest of line ignored. 1st junk character
> valued 104 (h).
>      [exec] x86/thrhelp.s:70:Unknown pseudo-op: .size
>      [exec] x86/thrhelp.s:70:Rest of line ignored. 1st junk character
> valued 99 (c).
>      [exec] x86/thrhelp.s:95:Unknown pseudo-op: .size
>      [exec] x86/thrhelp.s:95:Rest of line ignored. 1st junk character
> valued 104 (h).
>      [exec] x86/thrhelp.s:120:Unknown pseudo-op: .size
>      [exec] x86/thrhelp.s:120:Rest of line ignored. 1st junk character
> valued 104 (h).
>      [exec] make: *** [x86/thrhelp.o] Error 1


The problem is that there are two files for hythr that are written for the
GNU assembler... clearly os/x is using a non-compatible assembler so either
the assembler should be converted for os/x or a version of GNU binutils/as
should be used instead of the default assembler.

To complicate matters, this hythr code wont actually be used by the federated
build only the drlvm version will be used so you could find a way to force the
build to proceed without building this code and worry about the similar 
problems you might find with the drlvm code.

We really should get the federated build/drlvm using hy.no.thr mode where the
VM provides the thread library rather than portlib/classlib.

-Mark.



Re: [build][classlib] mac os x/x86 missing make file

Posted by Nathan Beyer <nd...@apache.org>.
I made some changes to get this going a bit -
http://svn.apache.org/viewvc?view=rev&revision=640300

I've also begun a wiki page here -
http://wiki.apache.org/harmony/DevConfiguration_Mac_OS_X_(Leopard)

I'm stuck again with some failures that I'm not clear about, so if any
experts are watching, please take a look at this snippet of my build
log.

build-native:
     [echo]
     [echo] ========================================
     [echo] Building native libs and executables...
     [echo] ========================================
     [echo]

overlay-oss:

overlay-oss:
    [unzip] Expanding:
/Users/nathan/harmony/working_classlib/depends/oss/fdlibm_5.2.zip into
/Users/nathan/harmony/working_classlib/modules/luni/src/main/native/fdlibm_dist

-ascii2ebcdic-conversion:

overlay-oss:
    [unzip] Expanding:
/Users/nathan/harmony/working_classlib/depends/oss/zlib_1.2.3.zip into
/Users/nathan/harmony/working_classlib/modules/archive/src/main/native/zlib_dist

-ascii2ebcdic-conversion:

copy-includes:

overlay-oss:
    [unzip] Expanding:
/Users/nathan/harmony/working_classlib/depends/oss/zlib_1.2.3.zip into
/Users/nathan/harmony/working_classlib/modules/archive/src/main/native/zlib_dist

-ascii2ebcdic-conversion:

copy-zipsup-include:
     [copy] Copying 1 file to
/Users/nathan/harmony/working_classlib/deploy/include

copy-zlib-include:
     [copy] Copying 2 files to
/Users/nathan/harmony/working_classlib/deploy/include

copy-native-includes:

copy-native-includes:
     [copy] Copying 8 files to
/Users/nathan/harmony/working_classlib/deploy/include
     [copy] Copying 4 files to
/Users/nathan/harmony/working_classlib/deploy/jdk/include

copy-native-includes-windows:

copy-native-includes-unix:
     [copy] Copying 1 file to
/Users/nathan/harmony/working_classlib/deploy/include

-copy-thread-include:
     [copy] Copying 1 file to
/Users/nathan/harmony/working_classlib/deploy/include

-copy-thread-stub-include:

copy-native-includes:
     [copy] Copying 10 files to
/Users/nathan/harmony/working_classlib/deploy/include
     [copy] Copying 3 files to
/Users/nathan/harmony/working_classlib/deploy/include

-select-win-deps-x86_64:

-select-win-deps-x86:

-layout.windows:

-layout.vme.v3.hack:

layout:
     [copy] Copying 18 files to
/Users/nathan/harmony/working_classlib/deploy/jdk/jre/bin

copy-makefile-includes:
     [copy] Copying 18 files to
/Users/nathan/harmony/working_classlib/deploy/build/make

make-all:

-build-native:
     [echo] Making "" in
/Users/nathan/harmony/working_classlib/modules/portlib/src/main/native/common/unix
     [exec] make: Nothing to be done for `all'.
     [echo] Making "" in
/Users/nathan/harmony/working_classlib/modules/portlib/src/main/native/pool/unix
     [exec] make: Nothing to be done for `all'.

-build-native-sig:
     [echo] Making "" in
/Users/nathan/harmony/working_classlib/modules/portlib/src/main/native/sig/unix
     [exec] make: Nothing to be done for `all'.
     [copy] Copying 1 file to
/Users/nathan/harmony/working_classlib/deploy/jdk/jre/bin

-build-native-thread:
     [echo] Making "" in
/Users/nathan/harmony/working_classlib/modules/portlib/src/main/native/thread/unix
     [exec] as   -o x86/thrhelp.o x86/thrhelp.s
     [exec] x86/thrhelp.s:37:Unknown pseudo-op: .type
     [exec] x86/thrhelp.s:37:Rest of line ignored. 1st junk character
valued 104 (h).
     [exec] x86/thrhelp.s:39:Unknown pseudo-op: .type
     [exec] x86/thrhelp.s:39:Rest of line ignored. 1st junk character
valued 99 (c).
     [exec] x86/thrhelp.s:41:Unknown pseudo-op: .type
     [exec] x86/thrhelp.s:41:Rest of line ignored. 1st junk character
valued 104 (h).
     [exec] x86/thrhelp.s:70:Unknown pseudo-op: .size
     [exec] x86/thrhelp.s:70:Rest of line ignored. 1st junk character
valued 99 (c).
     [exec] x86/thrhelp.s:95:Unknown pseudo-op: .size
     [exec] x86/thrhelp.s:95:Rest of line ignored. 1st junk character
valued 104 (h).
     [exec] x86/thrhelp.s:120:Unknown pseudo-op: .size
     [exec] x86/thrhelp.s:120:Rest of line ignored. 1st junk character
valued 104 (h).
     [exec] make: *** [x86/thrhelp.o] Error 1

BUILD FAILED
/Users/nathan/harmony/working_classlib/build.xml:148: The following
error occurred while executing this line:
/Users/nathan/harmony/working_classlib/make/build-native.xml:73: The
following error occurred while executing this line:
/Users/nathan/harmony/working_classlib/modules/portlib/build.xml:122:
The following error occurred while executing this line:
/Users/nathan/harmony/working_classlib/make/properties.xml:492: exec returned: 2




On Sun, Mar 23, 2008 at 4:06 PM, Nathan Beyer <nd...@apache.org> wrote:
> -clean-native-tests:
>      [echo] Making "clean" in
>  /Users/nathan/harmony/working_classlib/modules/portlib/src/test/native/init/unix
>      [exec] /Users/nathan/harmony/working_classlib/deploy/build/make/defines.mk:38:
>  /Users/nathan/harmony/working_classlib/deploy/build/make/platform/macosx.x86.mk:
>  No such file or directory
>      [exec] make: *** No rule to make target
>  `/Users/nathan/harmony/working_classlib/deploy/build/make/platform/macosx.x86.mk'.
>
>  There seems to be a missing make file for the macosx.x86 combination.
>  When I peek into that directory, there's a macosx.ppc32.mk file. What
>  do I need to modify add to get the classlib build to support x86?
>
>  -Nathan
>