Hi folks,

After very smooth Linux builds I figured I'd test my luck with OS X ...

Hitting an error now in the "./aimk -only-core" step, due to an arch mismatch

errors: "libjvm.dylib, file was built for i386 which is not the architecture being linked (x86_64)"

It looks like this may be caused by a symlink on 10.6 that points to the i386 version instead of the native 64bit version. I can probably fix this with hacking around the symlinks but some googling revealed that people "should not" be directly linking to libjvm.dylib and instead should be messing around with the JavaVM Framework which supposedly knows how to do this all automatically.

The Apple material suggests the use of "gcc -framework JavaVM ..." will solve this linking problem.

I figured I'd ask the list before going down this road any further -- anyone have any tips & tricks for building on Apple OS X 10.6?

-Chris


Error message below:



[java] aimk:
     [java]      [exec] Building in directory: 
/opt/github-gridengine/gridengine/source
     [java]      [exec] making in DARWIN_X64/ for DARWIN_X64 at host ani.local
     [java]      [exec] _________C_O_R_E__S_Y_S_T_E_M_____________
     [java]      [exec] gcc -o jgdi_test -L/opt/berkeley-db/lib/ -L. -arch 
x86_64 -L/opt/openssl/usr/local/ssl//lib 
-L/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Libraries 
 jgdi_test.o -ljvm libuti.a libcommlists.a -lm -lpthread
     [java]      [exec] ld: warning: in 
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries/libjvm.dylib,
 file was built for i386 which is not the architecture being linked (x86_64)
     [java]      [exec] Undefined symbols:
     [java]      [exec]   "_JNI_CreateJavaVM_Impl", referenced from:
     [java]      [exec]       _create_vmnot done
     [java]      [exec]  in jgdi_test.o
     [java]      [exec]       _main in jgdi_test.o
     [java]      [exec] ld: symbol(s) not found
     [java]      [exec] collect2: ld returned 1 exit status
     [java]      [exec] make: *** [jgdi_test] Error 1
     [java]
     [java] BUILD FAILED
     [java] /opt/github-gridengine/gridengine/source/libs/jgdi/build.xml:76: 
The following error occurred while executing this line:
     [java] /opt/github-gridengine/gridengine/source/libs/jgdi/build.xml:67: 
exec returned: 1
     [java]
     [java] Total time: 12 seconds

BUILD FAILED
/opt/github-gridengine/gridengine/source/build.xml:82: The following error 
occurred while executing this line:
/opt/github-gridengine/gridengine/source/build.xml:27: Java returned: 1


_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to