Rayson,
Sorry if this is long.
I am trying to compile GE 2011.11 on the new Oracle Solaris 11. When I do a 
uname here what I see.

SunOS journey 5.11 11.0 i86pc i386 i86pc
Also after each failure I have deleted the directory and start again with 
un-tarring, the source file.

The steps I am taking are

./aimk -only-depend
scripts/zerodepend
./aimk depend
I get this at the end of this command
_____Making JAVA targets_____
ant: Command not found
not done
./aimk

And I tried this

./aimk -cc -only-depend
scripts/zerodepend
./aimk -cc depend
I get this at the end of this command
_____Making JAVA targets_____
ant: Command not found
not done
./aimk -cc

Building in directory: /root/GE2011.11/source
making in SOLARISAMD64/ for SOLARISAMD64 at host journey
_________3_r_d_p_a_r_t_y__H_W_L_O_C_______
 
###
### Configuring hwloc distribution tarball
### Startup tests
###
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking target system type... i386-pc-solaris2.11
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for hwloc version... 1.2.2
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in 
`/root/GE2011.11/source/3rdparty/hwloc/hwloc-1.2.2/SOLARISAMD64':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: Fatal error: Can't find `Makefile': No such file or directory
not done

This is what the log files say for no "-cc" option

configure:3807: checking whether the C compiler works
configure:3829: gcc -fast -xchip=generic -xcache=generic -xarch=sse2 -m64   
conftest.c  >&5
gcc: language arch=sse2 not recognized
gcc: language arch=sse2 not recognized
ld: fatal: file conftest.c: unknown file type
ld: fatal: file processing errors. No output written to a.out
collect2: ld returned 1 exit status


this is what it say with "-cc" option

configure:3807: checking whether the C compiler works
configure:3829: gcc -fast -xchip=generic -xcache=generic -xarch=sse2 -m64   
conftest.c  >&5
gcc: language arch=sse2 not recognized
gcc: language arch=sse2 not recognized
ld: fatal: file conftest.c: unknown file type
ld: fatal: file processing errors. No output written to a.out
collect2: ld returned 1 exit status

Therefore, I uninstall the gcc compiler
I then retry the 2 set of command above and get to the same point with this 
error.
cc -DSGE_ARCH_STRING=\"sol-amd64\" -Xc -v -fast -xchip=generic -xcache=generic 
-xarch=sse2 -m64 -ftrap=division -D_LARGEFILE64_SOURCE=1 -DHAS_SOCKLEN_T 
-DLOAD_OPENSSL -I/build/berkeleydb/include/ -DTARGET_64BIT  -DSPOOLING_dynamic 
-DSECURE -I/build/openssl-install/include -DSOLARIS -DSOLARISAMD64 
-D__EXTENSIONS__ -D_POSIX_C_SOURCE=199506L -DGETHOSTBYNAME_R5 
-DGETHOSTBYADDR_R7 -DUSE_POLL -errwarn=%all  -DCOMPILE_DC 
-D__SGE_COMPILE_WITH_GETTEXT__  -D__SGE_NO_USERMAPPING__ -DTHREADBINDING 
-DHWLOC -I../common -I../libs -I../libs/uti -I../libs/juti -I../libs/gdi 
-I../libs/japi -I../libs/sgeobj -I../libs/cull -I../libs/rmon -I../libs/comm 
-I../libs/comm/lists -I../libs/sched -I../libs/evc -I../libs/evm -I../libs/mir 
-I../libs/lck -I../daemons/common -I../daemons/qmaster -I../daemons/execd 
-I../daemons/schedd -I../clients/common -I. -I/usr/include 
-I/usr/include/solaris 
-I/root/GE2011.11/source/3rdparty/hwloc/hwloc-1.2.2/include/ 
-I/root/GE2011.11/source/3rdparty/hwloc/hwloc-1.2.2/!
 SOLARISAMD64/include -KPIC -c ../libs/sgeobj/str2nm_converter.c
"../libs/sgeobj/str2nm_converter.h", line 40: cannot find include file: <jni.h>

So I modify the aimk.site file and add the path to the jni.h file.
I set the CORE_INCLUDE with these two additional paths 
" -I/usr/jdk/instances/jdk1.6.0/include 
-I/usr/jdk/instances/jdk1.6.0/include/solaris"
If I only do the first path, then it error with this.
"/usr/jdk/instances/jdk1.6.0/include/jni.h", line 27: cannot find include file: 
"jni_md.h"


Then the next error is the one that I start this email session with
I modify the cl_ssl_framework.c and add the "_" in front of the STACK on line 
238,239,1703and 1710.

Then that bring me to the next error I am on. Which is the 
"../libs/spool/berkeleydb/sge_bdb.c", line 207: undefined symbol: DB_RPCCLIENT

In this example I did not edit the aimk.site and add in the directory of 
Berkeley DB because I get the same failure with it define and not.

I then ran the ./aimk -I clean
And at the end I get this
_____Making JAVA targets_____
ant: Command not found
not done

I then run the command ./aimk -spool-classic
And get this error but this is the short version of the output.
cc -DSGE_ARCH_STRING=\"sol-amd64\" -Xc -v -fast -xchip=generic -xcache=generic 
-xarch=sse2 -m64 -ftrap=division -D_LARGEFILE64_SOURCE=1 -DHAS_SOCKLEN_T 
-DLOAD_OPENSSL -I/build/berkeleydb/include/ -DTARGET_64BIT  -DSPOOLING_classic 
-DSECURE -I/build/openssl-install/include -DSOLARIS -DSOLARISAMD64 
-D__EXTENSIONS__ -D_POSIX_C_SOURCE=199506L -DGETHOSTBYNAME_R5 
-DGETHOSTBYADDR_R7 -DUSE_POLL -errwarn=%all  -DCOMPILE_DC 
-D__SGE_COMPILE_WITH_GETTEXT__  -D__SGE_NO_USERMAPPING__ -DTHREADBINDING 
-DHWLOC -I../common -I../libs -I../libs/uti -I../libs/juti -I../libs/gdi 
-I../libs/japi -I../libs/sgeobj -I../libs/cull -I../libs/rmon -I../libs/comm 
-I../libs/comm/lists -I../libs/sched -I../libs/evc -I../libs/evm -I../libs/mir 
-I../libs/lck -I../daemons/common -I../daemons/qmaster -I../daemons/execd 
-I../daemons/schedd -I../clients/common -I. 
-I/usr/jdk/instances/jdk1.6.0/include 
-I/usr/jdk/instances/jdk1.6.0/include/solaris -I/usr/include 
-I/usr/include/solaris -I/root/GE2011.11/source/3rdp!
 arty/hwloc/hwloc-1.2.2/include/ 
-I/root/GE2011.11/source/3rdparty/hwloc/hwloc-1.2.2/SOLARISAMD64/include  -KPIC 
-ULOAD_OPENSSL -c ../libs/comm/cl_ssl_framework.c -o cl_ssl_framework_static.o
"../libs/comm/cl_ssl_framework.c", line 1846: assignment type mismatch:
....
....
....
cc: acomp failed for ../libs/comm/cl_ssl_framework.c
*** Error code 2
make: Fatal error: Command failed for target `cl_ssl_framework_static.o'
not done

If anyone has an idea what I am doing wrong, please let me know. I think I have 
listen all the error and steps I have taken so far other than modifying the 
aimk.site to define the path of openssl and Berkeley DB. Which I have done and 
I still get the same errors of " DB_RPCCLIENT" above and " cl_ssl_framework.c", 
line 1846: assignment type mismatch".

John



-----Original Message-----
From: Rayson Ho [mailto:[email protected]] 
Sent: Wednesday, December 21, 2011 1:37 PM
To: Geilow, John
Cc: [email protected]
Subject: Re: [EXTERNAL] Re: [gridengine users] Problem compiling Grid engine on 
Solaris

If you just want to try Grid Engine, you can compile with aimk flag 
"-spool-classic" (run "aimk -i clean" first before recompiling with
-spool-classic) to enable just text spooling. However, I still don't quite 
understand why the compiler is not picking up your Berkeley 4.4 header file 
(which has DB_RPCCLIENT defined).

BTW, I have not uploaded the Solaris SPARC/AMD64 binaries. I tested GE
2011.11 on SPARC & AMD64 Solaris but did not upload the binaries to the dropbox 
folder. Let me know the version of Solaris you are on (I tested GE 2011.11 on 
Solaris 10 on SPARC & Solaris Express on AMD64 and I have access to a few other 
Solaris 10 machines), and I will see if I can offer pre-compiled binaries for 
your version of Solaris.

Rayson


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

Reply via email to