I've been trying for days to build 64 bit python with Solaris 10 + Sun
Studio 12.
Can anyone helpl please.
This is how I tried to do build:
# ./configure --prefix=/opt/python2.4 --without-gcc --enable-shared
checking MACHDEP... sunos5
checking EXTRAPLATDIR...
checking for --without-gcc... yes
checking for --with-cxx=<compiler>. .. no
checking for c++... /opt/SUNWspro/bin/CC
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... /opt/SUNWspro/bin/CC
configure: error: C preprocessor "/opt/SUNWspro/bin/CC" fails sanity
check
See `config.log' for more details.
(sorry for the long log file but I'm not sure which part are
important)
config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by python configure 2.4, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --prefix=/opt/python2.4 --without-gcc --enable-shared
## --------- ##
## Platform. ##
## --------- ##
hostname = zone2
uname -m = sun4u
uname -r = 5.10
uname -s = SunOS
uname -v = Generic_118833-36
/usr/bin/uname -p = sparc
/bin/uname -X = System = SunOS
Node = zone2
Release = 5.10
KernelID = Generic_118833-36
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1
/bin/arch = sun4
/usr/bin/arch -k = sun4u
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/xpg4/bin
PATH: /usr/sfw/bin
PATH: /opt/SUNWspro/bin
PATH: /usr/local/mysql/bin
PATH: /usr/ccs/bin
PATH: /usr/local/bin
PATH: /usr/xpg4/bin
PATH: /usr/sfw/bin
PATH: /opt/SUNWspro/bin
PATH: /usr/local/mysql/bin
PATH: /usr/ccs/bin
PATH: /usr/local/bin
PATH: /usr/xpg4/bin
PATH: /usr/sfw/bin
PATH: /opt/SUNWspro/bin
PATH: /usr/local/mysql/bin
PATH: /usr/ccs/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/openwin/bin
PATH: /usr/sfw/bin
PATH: /usr/openwin/bin
PATH: /usr/sfw/bin
PATH: /usr/openwin/bin
PATH: /usr/sfw/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1510: checking MACHDEP
configure:1655: result: sunos5
configure:1661: checking EXTRAPLATDIR
configure:1676: result:
configure:1697: checking for --without-gcc
configure:1746: result: yes
configure:1752: checking for --with-cxx=<compiler>
configure:1773: result: no
configure:1792: checking for c++
configure:1818: result: /opt/SUNWspro/bin/CC
configure:1858: checking for C++ compiler default output file name
configure:1861: /opt/SUNWspro/bin/CC -L/opt/SUNWmlib/lib -lrt -lm
conftest.cc >&5
configure:1864: $? = 0
configure:1910: result: a.out
configure:1915: checking whether the C++ compiler works
configure:1921: ./a.out
configure:1924: $? = 0
configure:1941: result: yes
configure:1948: checking whether we are cross compiling
configure:1950: result: no
configure:1953: checking for suffix of executables
configure:1955: /opt/SUNWspro/bin/CC -o conftest -L/opt/SUNWmlib/lib
-lrt -lm conftest.cc >&5
configure:1958: $? = 0
configure:1983: result:
configure:2057: checking for gcc
configure:2083: result: cc
configure:2327: checking for C compiler version
configure:2330: cc -V </dev/null >&5
cc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12
usage: cc [ options] files. Use 'cc -flags' for details
configure:2333: $? = 1
configure:2356: checking for C compiler default output file name
configure:2359: cc -O2 -L/opt/SUNWmlib/lib -lrt -lm conftest.c >&5
configure:2362: $? = 0
configure:2408: result: a.out
configure:2413: checking whether the C compiler works
configure:2419: ./a.out
configure:2422: $? = 0
configure:2439: result: yes
configure:2446: checking whether we are cross compiling
configure:2448: result: no
configure:2451: checking for suffix of executables
configure:2453: cc -o conftest -O2 -L/opt/SUNWmlib/lib -lrt -lm
conftest.c >&5
configure:2456: $? = 0
configure:2481: result:
configure:2487: checking for suffix of object files
configure:2508: cc -c -O2 conftest.c >&5
configure:2511: $? = 0
configure:2533: result: o
configure:2537: checking whether we are using the GNU C compiler
configure:2561: cc -c -O2 conftest.c >&5
"conftest.c ", line 15: undefined symbol: choke
"conftest.c ", line 15: syntax error before or at: me
cc: acomp failed for conftest.c
configure:2567: $? = 2
configure: failed program was:
| /* confdefs.h. */
|
| #define _GNU_SOURCE 1
| #define _NETBSD_SOURCE 1
| #define __BSD_VISIBLE 1
| #define _BSD_TYPES 1
| #define _XOPEN_SOURCE 500
| #define _POSIX_C_SOURCE 200112L
| /* end confdefs.h. */
|
| int
| main ()
| {
| #ifndef __GNUC__
| choke me
| #endif
|
| ;
| return 0;
| }
configure:2593: result: no
configure:2599: checking whether cc accepts -g
configure:2620: cc -c -g conftest.c >&5
configure:2626: $? = 0
configure:2630: test -z
|| test ! -s conftest.err
configure:2633: $? = 0
configure:2636: test -s conftest.o
configure:2639: $? = 0
configure:2650: result: yes
configure:2667: checking for cc option to accept ANSI C
configure:2737: cc -c -O2 conftest.c >&5
"conftest.c ", line 53: warning: statement not reached
configure:2743: $? = 0
configure:2747: test -z
|| test ! -s conftest.err
configure:2750: $? = 0
configure:2753: test -s conftest.o
configure:2756: $? = 0
configure:2774: result: none needed
configure:2792: cc -c -O2 conftest.c >&5
"conftest.c ", line 2: warning: old-style declaration or incorrect type
for: choke
"conftest.c ", line 2: syntax error before or at: me
"conftest.c ", line 3: warning: old-style declaration or incorrect type
for: me
cc: acomp failed for conftest.c
configure:2798: $? = 2
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2939: checking how to run the C preprocessor
configure:3057: result: /opt/SUNWspro/bin/CC
configure:3081: /opt/SUNWspro/bin/CC conftest.c
"conftest.c ", line 15: Error: Syntax is not defined.
"conftest.c ", line 15: Error: "," expected instead of "end of file".
"conftest.c ", line 15: Error: Use ";" to terminate declarations.
3 Error(s) detected.
configure:3087: $? = 3
configure: failed program was:
| /* confdefs.h. */
|
| #define _GNU_SOURCE 1
| #define _NETBSD_SOURCE 1
| #define __BSD_VISIBLE 1
| #define _BSD_TYPES 1
| #define _XOPEN_SOURCE 500
| #define _POSIX_C_SOURCE 200112L
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3081: /opt/SUNWspro/bin/CC conftest.c
"conftest.c ", line 15: Error: Syntax is not defined.
"conftest.c ", line 15: Error: "," expected instead of "end of file".
"conftest.c ", line 15: Error: Use ";" to terminate declarations.
3 Error(s) detected.
configure:3087: $? = 3
configure: failed program was:
| /* confdefs.h. */
|
| #define _GNU_SOURCE 1
| #define _NETBSD_SOURCE 1
| #define __BSD_VISIBLE 1
| #define _BSD_TYPES 1
| #define _XOPEN_SOURCE 500
| #define _POSIX_C_SOURCE 200112L
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3156: error: C preprocessor "/opt/SUNWspro/bin/CC" fails
sanity check
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_c_compile r_gnu=no
ac_cv_env_CC_se t=set
ac_cv_env_CC_va lue=/opt/SUNWspro/bin/cc
ac_cv_env_CFLAG S_set=set
ac_cv_env_CFLAG S_value=-O2
ac_cv_env_CPPFL AGS_set=set
ac_cv_env_CPPFL AGS_value=
ac_cv_env_CPP_s et=set
ac_cv_env_CPP_v alue=/opt/SUNWspro/bin/CC
ac_cv_env_LDFLA GS_set=set
ac_cv_env_LDFLA GS_value='-L/opt/SUNWmlib/lib -lrt -lm'
ac_cv_env_build _alias_set=
ac_cv_env_build _alias_value=
ac_cv_env_host_ alias_set=
ac_cv_env_host_ alias_value=
ac_cv_env_targe t_alias_set=
ac_cv_env_targe t_alias_value=
ac_cv_exeext=
ac_cv_objext=o
ac_cv_prog_CPP=/opt/SUNWspro/bin/CC
ac_cv_prog_CXX=/opt/SUNWspro/bin/CC
ac_cv_prog_ac_c t_CC=cc
ac_cv_prog_cc_g =yes
ac_cv_prog_cc_s tdc=
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
BASECFLAGS='-# -xc99=all,lib -m64 -H -Xc -c -errtags=yes'
BLDLIBRARY=''
BLDSHARED=''
BUILDEXEEXT=''
CC='cc'
CCSHARED=''
CFLAGS='-O2'
CFLAGSFORSHARED =''
CONFIGURE_MACOS X_DEPLOYMENT_TA RGET=''
CONFIG_ARGS=''--prefix=/opt/python2.4' '--without-gcc' '--enable-
shared' 'CC=/opt/SUNWspro/bin/cc' 'CFLAGS=-O2' 'CPPFLAGS=' 'CPP=/opt/
SUNWspro/bin/CC' 'LDFLAGS=-L/opt/SUNWmlib/lib -lrt -lm''
CPP='/opt/SUNWspro/bin/CC'
CPPFLAGS=''
CXX='/opt/SUNWspro/bin/CC'
DEFS=''
DLINCLDIR=''
DLLLIBRARY=''
DYNLOADFILE=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXPORT_MACOSX_D EPLOYMENT_TARGE T='#'
EXTRAMACHDEPPAT H=''
EXTRAPLATDIR=''
FRAMEWORKALTINS TALLFIRST=''
FRAMEWORKALTINS TALLLAST=''
FRAMEWORKINSTAL LFIRST=''
FRAMEWORKINSTAL LLAST=''
FRAMEWORKUNIXTO OLSPREFIX='/opt/python2.4'
HAVE_GETHOSTBYN AME=''
HAVE_GETHOSTBYN AME_R=''
HAVE_GETHOSTBYN AME_R_3_ARG=''
HAVE_GETHOSTBYN AME_R_5_ARG=''
HAVE_GETHOSTBYN AME_R_6_ARG=''
INSTALL_DATA=''
INSTALL_PROGRAM =''
INSTALL_SCRIPT= ''
INSTSONAME=''
LDFLAGS='-L/opt/SUNWmlib/lib -lrt -lm'
LDLAST=''
LDLIBRARY=''
LDLIBRARYDIR=''
LDSHARED=''
LIBC=''
LIBM=''
LIBOBJS=''
LIBRARY=''
LIBS=''
LIBTOOL_CRUFT=' '
LINKCC=''
LINKFORSHARED=' '
LN=''
LTLIBOBJS=''
MACHDEP='sunos5 '
MACHDEP_OBJS=''
MAINOBJ='python .o'
OBJEXT='o'
OPT=''
OTHER_LIBTOOL_O PT=''
PACKAGE_BUGREPO RT='http://www.python.org/python-bugs'
PACKAGE_NAME='p ython'
PACKAGE_STRING= 'python 2.4'
PACKAGE_TARNAME ='python'
PACKAGE_VERSION ='2.4'
PATH_SEPARATOR= ':'
PYTHONFRAMEWORK =''
PYTHONFRAMEWORK DIR='no-framework'
PYTHONFRAMEWORK INSTALLDIR=''
PYTHONFRAMEWORK PREFIX=''
RANLIB=''
RUNSHARED=''
SGI_ABI=''
SHELL='/bin/bash'
SHLIBS=''
SIGNAL_OBJS=''
SO=''
SOVERSION='1.0'
SRCDIRS=''
THREADHEADERS=' '
THREADOBJ=''
TRUE=''
UNICODE_OBJS=''
UNIVERSALSDK=''
USE_SIGNAL_MODU LE=''
USE_THREAD_MODU LE=''
VERSION='2.4'
ac_ct_CC='cc'
ac_ct_RANLIB=''
bindir='${exec_ prefix}/bin'
build_alias=''
datadir='${pref ix}/share'
exec_prefix='NO NE'
host_alias=''
includedir='${p refix}/include'
infodir='${pref ix}/info'
libdir='${exec_ prefix}/lib'
libexecdir='${e xec_prefix}/libexec'
localstatedir=' ${prefix}/var'
mandir='${prefi x}/man'
oldincludedir='/usr/include'
prefix='/opt/python2.4'
program_transfo rm_name='s,x,x, '
sbindir='${exec _prefix}/sbin'
sharedstatedir= '${prefix}/com'
sysconfdir='${p refix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define _BSD_TYPES 1
#define _GNU_SOURCE 1
#define _NETBSD_SOURCE 1
#define _POSIX_C_SOURCE 200112L
#define _XOPEN_SOURCE 500
#define __BSD_VISIBLE 1
configure: exit 1
-------end of
config.log------------------------------------------------------------------------
thanks,
dg 7 4337
Maybe this helps. Using ./configure --without-gcc .... in Python
2.5.1 on Solaris 10 gives a different message. That message indicates
that C++ compiler 'c++' will be used but the Studio C++ compiler on
Solaris is 'CC'.
Using ./configure --without-gcc --with-cxx-main=CC .... made that
message go away. Python did build after that and the tests are
running.
But it is a 32-bit binary, not 64-bit. Another ./configure option will
be needed to build that.
/Jean Brouwers
Building 64-bit Python is still elusive. I tried various ways to add -
xtarget=opteron -xarch-amd64 to the C/C++ flags but that still fails
to produce a 64-bit build. Changing the Makefile is not sufficient
since that causes compilation errors.
It looks like the ./configure command must run with those additional
flags. Passing the flags in environment variables defining CC and CXX
only works for CXX. The additional flags do not appear on the C
compiler command lines.
/Jean Brouwers
On Oct 28, 11:03 pm, plumb and tree <plumbandt...@g mail.comwrote:
I've been trying for days to build 64 bit python with Solaris 10 + Sun
Studio 12.
Can anyone helpl please.
This is how I tried to do build:
# ./configure --prefix=/opt/python2.4 --without-gcc --enable-shared
checking MACHDEP... sunos5
checking EXTRAPLATDIR...
checking for --without-gcc... yes
checking for --with-cxx=<compiler>. .. no
checking for c++... /opt/SUNWspro/bin/CC
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... /opt/SUNWspro/bin/CC
configure: error: C preprocessor "/opt/SUNWspro/bin/CC" fails sanity
check
See `config.log' for more details.
(sorry for the long log file but I'm not sure which part are
important)
config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by python configure 2.4, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --prefix=/opt/python2.4 --without-gcc --enable-shared
## --------- ##
## Platform. ##
## --------- ##
hostname = zone2
uname -m = sun4u
uname -r = 5.10
uname -s = SunOS
uname -v = Generic_118833-36
/usr/bin/uname -p = sparc
/bin/uname -X = System = SunOS
Node = zone2
Release = 5.10
KernelID = Generic_118833-36
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1
/bin/arch = sun4
/usr/bin/arch -k = sun4u
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/xpg4/bin
PATH: /usr/sfw/bin
PATH: /opt/SUNWspro/bin
PATH: /usr/local/mysql/bin
PATH: /usr/ccs/bin
PATH: /usr/local/bin
PATH: /usr/xpg4/bin
PATH: /usr/sfw/bin
PATH: /opt/SUNWspro/bin
PATH: /usr/local/mysql/bin
PATH: /usr/ccs/bin
PATH: /usr/local/bin
PATH: /usr/xpg4/bin
PATH: /usr/sfw/bin
PATH: /opt/SUNWspro/bin
PATH: /usr/local/mysql/bin
PATH: /usr/ccs/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/openwin/bin
PATH: /usr/sfw/bin
PATH: /usr/openwin/bin
PATH: /usr/sfw/bin
PATH: /usr/openwin/bin
PATH: /usr/sfw/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1510: checking MACHDEP
configure:1655: result: sunos5
configure:1661: checking EXTRAPLATDIR
configure:1676: result:
configure:1697: checking for --without-gcc
configure:1746: result: yes
configure:1752: checking for --with-cxx=<compiler>
configure:1773: result: no
configure:1792: checking for c++
configure:1818: result: /opt/SUNWspro/bin/CC
configure:1858: checking for C++ compiler default output file name
configure:1861: /opt/SUNWspro/bin/CC -L/opt/SUNWmlib/lib -lrt -lm
conftest.cc >&5
configure:1864: $? = 0
configure:1910: result: a.out
configure:1915: checking whether the C++ compiler works
configure:1921: ./a.out
configure:1924: $? = 0
configure:1941: result: yes
configure:1948: checking whether we are cross compiling
configure:1950: result: no
configure:1953: checking for suffix of executables
configure:1955: /opt/SUNWspro/bin/CC -o conftest -L/opt/SUNWmlib/lib
-lrt -lm conftest.cc >&5
configure:1958: $? = 0
configure:1983: result:
configure:2057: checking for gcc
configure:2083: result: cc
configure:2327: checking for C compiler version
configure:2330: cc -V </dev/null >&5
cc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12
usage: cc [ options] files. Use 'cc -flags' for details
configure:2333: $? = 1
configure:2356: checking for C compiler default output file name
configure:2359: cc -O2 -L/opt/SUNWmlib/lib -lrt -lm conftest.c >&5
configure:2362: $? = 0
configure:2408: result: a.out
configure:2413: checking whether the C compiler works
configure:2419: ./a.out
configure:2422: $? = 0
configure:2439: result: yes
configure:2446: checking whether we are cross compiling
configure:2448: result: no
configure:2451: checking for suffix of executables
configure:2453: cc -o conftest -O2 -L/opt/SUNWmlib/lib -lrt -lm
conftest.c >&5
configure:2456: $? = 0
configure:2481: result:
configure:2487: checking for suffix of object files
configure:2508: cc -c -O2 conftest.c >&5
configure:2511: $? = 0
configure:2533: result: o
configure:2537: checking whether we are using the GNU C compiler
configure:2561: cc -c -O2 conftest.c >&5
"conftest.c ", line 15: undefined symbol: choke
"conftest.c ", line 15: syntax error before or at: me
cc: acomp failed for conftest.c
configure:2567: $? = 2
configure: failed program was:
| /* confdefs.h. */
|
| #define _GNU_SOURCE 1
| #define _NETBSD_SOURCE 1
| #define __BSD_VISIBLE 1
| #define _BSD_TYPES 1
| #define _XOPEN_SOURCE 500
| #define _POSIX_C_SOURCE 200112L
| /* end confdefs.h. */
|
| int
| main ()
| {
| #ifndef __GNUC__
| choke me
| #endif
|
| ;
| return 0;
| }
configure:2593: result: no
configure:2599: checking whether cc accepts -g
configure:2620: cc -c -g conftest.c >&5
configure:2626: $? = 0
configure:2630: test -z
|| test ! -s conftest.err
configure:2633: $? = 0
configure:2636: test -s conftest.o
configure:2639: $? = 0
configure:2650: result: yes
configure:2667: checking for cc option to accept ANSI C
configure:2737: cc -c -O2 conftest.c >&5
"conftest.c ", line 53: warning: statement not reached
configure:2743: $? = 0
configure:2747: test -z
|| test ! -s conftest.err
configure:2750: $? = 0
configure:2753: test -s conftest.o
configure:2756: $? = 0
configure:2774: result: none needed
configure:2792: cc -c -O2 conftest.c >&5
"conftest.c ", line 2: warning: old-style declaration or incorrect type
for: choke
"conftest.c ", line 2: syntax error before or at: me
"conftest.c ", line 3: warning: old-style declaration or incorrect type
for: me
cc: acomp failed for conftest.c
configure:2798: $? = 2
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2939: checking how to run the C preprocessor
configure:3057: result: /opt/SUNWspro/bin/CC
configure:3081: /opt/SUNWspro/bin/CC conftest.c
"conftest.c ", line 15: Error: Syntax is not defined.
"conftest.c ", line 15: Error: "," expected instead of "end of file".
"conftest.c ", line 15: Error: Use ";" to terminate declarations.
3 Error(s) detected.
configure:3087: $? = 3
configure: failed program was:
| /* confdefs.h. */
|
| #define _GNU_SOURCE 1
| #define _NETBSD_SOURCE 1
| #define __BSD_VISIBLE 1
| #define _BSD_TYPES 1
| #define _XOPEN_SOURCE 500
| #define _POSIX_C_SOURCE 200112L
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3081: /opt/SUNWspro/bin/CC conftest.c
"conftest.c ", line 15: Error: Syntax is not defined.
"conftest.c ", line 15: Error: "," expected instead of "end of file".
"conftest.c ", line 15: Error: Use ";" to terminate declarations.
3 Error(s) detected.
configure:3087: $? = 3
configure: failed program was:
| /* confdefs.h. */
|
| #define _GNU_SOURCE 1
| #define _NETBSD_SOURCE 1
| #define __BSD_VISIBLE 1
| #define _BSD_TYPES 1
| #define _XOPEN_SOURCE 500
| #define _POSIX_C_SOURCE 200112L
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3156: error: C preprocessor "/opt/SUNWspro/bin/CC" fails
sanity check
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_c_compile r_gnu=no
ac_cv_env_CC_se t=set
ac_cv_env_CC_va lue=/opt/SUNWspro/bin/cc
ac_cv_env_CFLAG S_set=set
ac_cv_env_CFLAG S_value=-O2
ac_cv_env_CPPFL AGS_set=set
ac_cv_env_CPPFL AGS_value=
ac_cv_env_CPP_s et=set
ac_cv_env_CPP_v alue=/opt/SUNWspro/bin/CC
ac_cv_env_LDFLA GS_set=set
ac_cv_env_LDFLA GS_value='-L/opt/SUNWmlib/lib -lrt -lm'
ac_cv_env_build _alias_set=
ac_cv_env_build _alias_value=
ac_cv_env_host_ alias_set=
ac_cv_env_host_ alias_value=
ac_cv_env_targe t_alias_set=
ac_cv_env_targe t_alias_value=
ac_cv_exeext=
ac_cv_objext=o
ac_cv_prog_CPP=/opt/SUNWspro/bin/CC
ac_cv_prog_CXX=/opt/SUNWspro/bin/CC
ac_cv_prog_ac_c t_CC=cc
ac_cv_prog_cc_g =yes
ac_cv_prog_cc_s tdc=
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
BASECFLAGS='-# -xc99=all,lib -m64 -H -Xc -c -errtags=yes'
BLDLIBRARY=''
BLDSHARED=''
BUILDEXEEXT=''
CC='cc'
CCSHARED=''
CFLAGS='-O2'
CFLAGSFORSHARED =''
CONFIGURE_MACOS X_DEPLOYMENT_TA RGET=''
CONFIG_ARGS=''--prefix=/opt/python2.4' '--without-gcc' '--enable-
shared' 'CC=/opt/SUNWspro/bin/cc' 'CFLAGS=-O2' 'CPPFLAGS=' 'CPP=/opt/
SUNWspro/bin/CC' 'LDFLAGS=-L/opt/SUNWmlib/lib -lrt -lm''
CPP='/opt/SUNWspro/bin/CC'
CPPFLAGS=''
CXX='/opt/SUNWspro/bin/CC'
DEFS=''
DLINCLDIR=''
DLLLIBRARY=''
DYNLOADFILE=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXPORT_MACOSX_D EPLOYMENT_TARGE T='#'
EXTRAMACHDEPPAT H=''
EXTRAPLATDIR=''
FRAMEWORKALTINS TALLFIRST=''
FRAMEWORKALTINS TALLLAST=''
FRAMEWORKINSTAL LFIRST=''
FRAMEWORKINSTAL LLAST=''
FRAMEWORKUNIXTO OLSPREFIX='/opt/python2.4'
HAVE_GETHOSTBYN AME=''
HAVE_GETHOSTBYN AME_R=''
HAVE_GETHOSTBYN AME_R_3_ARG=''
HAVE_GETHOSTBYN AME_R_5_ARG=''
HAVE_GETHOSTBYN AME_R_6_ARG=''
INSTALL_DATA=''
INSTALL_PROGRAM =''
INSTALL_SCRIPT= ''
INSTSONAME=''
LDFLAGS='-L/opt/SUNWmlib/lib -lrt -lm'
LDLAST=''
LDLIBRARY=''
LDLIBRARYDIR=''
LDSHARED=''
LIBC=''
LIBM=''
LIBOBJS=''
LIBRARY=''
LIBS=''
LIBTOOL_CRUFT=' '
LINKCC=''
LINKFORSHARED=' '
LN=''
LTLIBOBJS=''
MACHDEP='sunos5 '
MACHDEP_OBJS=''
MAINOBJ='python .o'
OBJEXT='o'
OPT=''
OTHER_LIBTOOL_O PT=''
PACKAGE_BUGREPO RT='http://www.python.org/python-bugs'
PACKAGE_NAME='p ython'
PACKAGE_STRING= 'python 2.4'...
read more »
Here is one way to build a 64-bit Python binary on Solaris 10 using
SUN's compilers**. This is probably not the recommended procedure but
it does create a partial, expected result.
Here are the 4 steps I used:
1 - Run ./configure --without-gcc --with-cxx-main=CC --enable-64-
bit ....
2 - Edit the generated Makefile and change 3 lines
CC = cc -xtarget=opteron -xarch=amd64
CXX = CC -xtarget=opteron -xarch=amd64
MAINCC = CC -xtarget=opteron -xarch=amd64
The -xtarget and -xarch flags must be adjusted for UltraSparc.
3 - Edit python source file ./Include/pyport.h before line 728 (in
Python 2.5.1) as follows.
Add these 3 lines:
#ifndef __GNUC__ /* non-GNU C/C++, like SUN */
# undef LONG_BIT
#endif
such that LONG_BIT is #define'd next
#ifndef LONG_BIT
#define LONG_BIT (8 * SIZEOF_LONG)
#endif
before this error message can occur
#if LONG_BIT != 8 * SIZEOF_LONG
/* 04-Oct-2000 LONG_BIT is apparently (mis)defined as 64 on some
recent
* 32-bit platforms using gcc. We try to catch that here at
compile-time
* rather than waiting for integer multiplication to trigger bogus
* overflows.
*/
#error "LONG_BIT definition appears wrong for platform (bad gcc/
glibc config?)."
#endif
4 - Run make and check the resulting Python binary with file ./
python.
However, make test still fails and that will require further
investigation.
/Jean Brouwers
**) Sun C/C++ 5.8 2005/10/14 on an Ultra 20 Opteron machine
On Oct 29, 12:06 pm, MrJean1 <MrJe...@gmail. comwrote:
Building 64-bit Python is still elusive. I tried various ways to add -
xtarget=opteron -xarch-amd64 to the C/C++ flags but that still fails
to produce a 64-bit build. Changing the Makefile is not sufficient
since that causes compilation errors.
It looks like the ./configure command must run with those additional
flags. Passing the flags in environment variables defining CC and CXX
only works for CXX. The additional flags do not appear on the C
compiler command lines.
/Jean Brouwers
On Oct 28, 11:03 pm, plumb and tree <plumbandt...@g mail.comwrote:
......
Here is a better way to build Python on Solaris, both 32- and 64-
bit.
<http://ccnuma.anu.edu. au/~wpc/blog/programming/building-python.html>
since it builds both the binary and make test on my Ultra 20 machine.
In my case 26 tests pass, 1 failed, 44 are skipped and there are 6 u
expected skips. The latter are expected and due to missing packages,
like Tcl.
Use the instructions from this site and forget mine. But it may still
be necessary to patch the ./Include/pyport.h file as shown in my
previous message.
/Jean Brouwers
On Oct 29, 9:15 pm, MrJean1 <MrJe...@gmail. comwrote:
Here is one way to build a 64-bit Python binary on Solaris 10 using
SUN's compilers**. This is probably not the recommended procedure but
it does create a partial, expected result.
Here are the 4 steps I used:
1 - Run ./configure --without-gcc --with-cxx-main=CC --enable-64-
bit ....
2 - Edit the generated Makefile and change 3 lines
CC = cc -xtarget=opteron -xarch=amd64
CXX = CC -xtarget=opteron -xarch=amd64
MAINCC = CC -xtarget=opteron -xarch=amd64
The -xtarget and -xarch flags must be adjusted for UltraSparc.
3 - Edit python source file ./Include/pyport.h before line 728 (in
Python 2.5.1) as follows.
Add these 3 lines:
#ifndef __GNUC__ /* non-GNU C/C++, like SUN */
# undef LONG_BIT
#endif
such that LONG_BIT is #define'd next
#ifndef LONG_BIT
#define LONG_BIT (8 * SIZEOF_LONG)
#endif
before this error message can occur
#if LONG_BIT != 8 * SIZEOF_LONG
/* 04-Oct-2000 LONG_BIT is apparently (mis)defined as 64 on some
recent
* 32-bit platforms using gcc. We try to catch that here at
compile-time
* rather than waiting for integer multiplication to trigger bogus
* overflows.
*/
#error "LONG_BIT definition appears wrong for platform (bad gcc/
glibc config?)."
#endif
4 - Run make and check the resulting Python binary with file ./
python.
However, make test still fails and that will require further
investigation.
/Jean Brouwers
**) Sun C/C++ 5.8 2005/10/14 on an Ultra 20 Opteron machine
On Oct 29, 12:06 pm, MrJean1 <MrJe...@gmail. comwrote:Buildi ng 64-bit Python is still elusive. I tried various ways to add -
xtarget=opteron -xarch-amd64 to the C/C++ flags but that still fails
to produce a 64-bit build. Changing the Makefile is not sufficient
since that causes compilation errors.
It looks like the ./configure command must run with those additional
flags. Passing the flags in environment variables defining CC and CXX
only works for CXX. The additional flags do not appear on the C
compiler command lines.
/Jean Brouwers
On Oct 28, 11:03 pm, plumb and tree <plumbandt...@g mail.comwrote:
.....
Correction: the number of tests which pass must be 276.
/Jean Brouwers
On Oct 29, 10:29 pm, MrJean1 <MrJe...@gmail. comwrote:
Here is a better way to build Python on Solaris, both 32- and 64-
bit.
<http://ccnuma.anu.edu. au/~wpc/blog/programming/building-python.html>
since it builds both the binary and make test on my Ultra 20 machine.
In my case 26 tests pass, 1 failed, 44 are skipped and there are 6 u
expected skips. The latter are expected and due to missing packages,
like Tcl.
Use the instructions from this site and forget mine. But it may still
be necessary to patch the ./Include/pyport.h file as shown in my
previous message.
/Jean Brouwers
On Oct 29, 9:15 pm, MrJean1 <MrJe...@gmail. comwrote:
Here is one way to build a 64-bit Python binary on Solaris 10 using
SUN's compilers**. This is probably not the recommended procedure but
it does create a partial, expected result.
Here are the 4 steps I used:
1 - Run ./configure --without-gcc --with-cxx-main=CC --enable-64-
bit ....
2 - Edit the generated Makefile and change 3 lines
CC = cc -xtarget=opteron -xarch=amd64
CXX = CC -xtarget=opteron -xarch=amd64
MAINCC = CC -xtarget=opteron -xarch=amd64
The -xtarget and -xarch flags must be adjusted for UltraSparc.
3 - Edit python source file ./Include/pyport.h before line 728 (in
Python 2.5.1) as follows.
Add these 3 lines:
#ifndef __GNUC__ /* non-GNU C/C++, like SUN */
# undef LONG_BIT
#endif
such that LONG_BIT is #define'd next
#ifndef LONG_BIT
#define LONG_BIT (8 * SIZEOF_LONG)
#endif
before this error message can occur
#if LONG_BIT != 8 * SIZEOF_LONG
/* 04-Oct-2000 LONG_BIT is apparently (mis)defined as 64 on some
recent
* 32-bit platforms using gcc. We try to catch that here at
compile-time
* rather than waiting for integer multiplication to trigger bogus
* overflows.
*/
#error "LONG_BIT definition appears wrong for platform (bad gcc/
glibc config?)."
#endif
4 - Run make and check the resulting Python binary with file ./
python.
However, make test still fails and that will require further
investigation.
/Jean Brouwers
**) Sun C/C++ 5.8 2005/10/14 on an Ultra 20 Opteron machine
On Oct 29, 12:06 pm, MrJean1 <MrJe...@gmail. comwrote:Buildi ng 64-bit Python is still elusive. I tried various ways to add -
xtarget=opteron -xarch-amd64 to the C/C++ flags but that still fails
to produce a 64-bit build. Changing the Makefile is not sufficient
since that causes compilation errors.
It looks like the ./configure command must run with those additional
flags. Passing the flags in environment variables defining CC and CXX
only works for CXX. The additional flags do not appear on the C
compiler command lines.
/Jean Brouwers
On Oct 28, 11:03 pm, plumb and tree <plumbandt...@g mail.comwrote:
.....
Building 64-bit Python 2.4.4 on Solaris 10 and SUC C/C++ using the
instructions from
< http://ccnuma.anu.edu.au/~wpc/blog/p...ming/building-
python.html>
worked just fine on Ultra 20 Opteron machine. The test result summary
is below.
/Jean Brouwers
.....
249 tests OK.
2 tests failed:
test_cmath test_pty
40 tests skipped:
test_aepack test_al test_applesingl e test_bsddb test_bsddb185
test_bsddb3 test_bz2 test_cd test_cl test_codecmaps_ cn
test_codecmaps_ hk test_codecmaps_ jp test_codecmaps_ kr
test_codecmaps_ tw test_crypt test_curses test_dl test_gdbm test_gl
test_imageop test_imgfile test_linuxaudio dev test_macfs
test_macostools test_nis test_normalizat ion test_ossaudiode v
test_pep277 test_plistlib test_rgbimg test_scriptpack ages
test_socket_ssl test_socketserv er test_tcl test_timeout
test_unicode_fi le test_urllib2net test_urllibnet test_winreg
test_winsound
5 skips unexpected on sunos5:
test_tcl test_bz2 test_crypt test_dl test_nis
plumb and tree wrote:
I've been trying for days to build 64 bit python with Solaris 10 + Sun
Studio 12.
Can anyone helpl please.
On final comment. For 64-bit usage, Python 2.5.1 is the better
choice.
More on that here <http://docs.python.org/whatsnew/pep-353.html>.
/Jean Brouwers
On Oct 30, 10:15 am, MrJean1 <MrJe...@gmail. comwrote:
Building 64-bit Python 2.4.4 on Solaris 10 and SUC C/C++ using the
instructions from
<http://ccnuma.anu.edu.au/~wpc/blog/p...ming/building-
python.html>
worked just fine on Ultra 20 Opteron machine. The test result summary
is below.
/Jean Brouwers
....
249 tests OK.
2 tests failed:
test_cmath test_pty
40 tests skipped:
test_aepack test_al test_applesingl e test_bsddb test_bsddb185
test_bsddb3 test_bz2 test_cd test_cl test_codecmaps_ cn
test_codecmaps_ hk test_codecmaps_ jp test_codecmaps_ kr
test_codecmaps_ tw test_crypt test_curses test_dl test_gdbm test_gl
test_imageop test_imgfile test_linuxaudio dev test_macfs
test_macostools test_nis test_normalizat ion test_ossaudiode v
test_pep277 test_plistlib test_rgbimg test_scriptpack ages
test_socket_ssl test_socketserv er test_tcl test_timeout
test_unicode_fi le test_urllib2net test_urllibnet test_winreg
test_winsound
5 skips unexpected on sunos5:
test_tcl test_bz2 test_crypt test_dl test_nis
plumb and tree wrote:
I've been trying for days to build 64 bit python with Solaris 10 + Sun
Studio 12.
Can anyone helpl please.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tony |
last post by:
what package should I be downloading for solaris intel.
Is there a howto on how to install it for solaris intel?
|
by: rkusenet |
last post by:
We are using a really old version of Solaris 2.6. Mysql.com site does
not seem to have mysql binaries for this version of Solaris. The
earliest version they have is for Solaris 8, which I believe is same
as Solaris 2.8.
Is there a place where we can download mysql 4.x for Solaris 2.6 or we
have to upgrade Solaris.
TIA.
Ravi
|
by: Vaclav Frolik |
last post by:
CHARONWARE, s.r.o. is pleased to announce that a new version of CASE
Studio 2 version 2.18 has been released.
CASE Studio 2 allows database designers and developers to visualy
create and maintain Entity Relationship Diagrams (ERD) and Data Flow
Diagrams (DFD) and generate SQL scripts for various databases
automatically.
The new version...
|
by: Passynkov, Vadim |
last post by:
I am using Asynchronous Query Processing interface from libpq library.
And I got some strange results on Solaris
My test select query is 'SELECT * from pg_user;'
and I use select system synchronous I/O multiplexer in 'C'
The first test sends 10000 select queries using 10 nonblocking connections
to database ( PQsendQuery ).
The second...
|
by: is_vlb50 |
last post by:
Hi!
I want to develop and compile the code on windows OS(winXP) .And after
this just to copy binaries to Sun Solaris.Is it possible and how to do
it?Which tools I can use?
Thanks
| |
by: Mary Lei |
last post by:
Does anyone know the link to obtain the
tarball for db2 8.1 for solaris running
on AMD 64 bit ?
This is the entire db2 installation
on a new system that does not have db2.
Thanks.
|
by: bomahony |
last post by:
Ive just installed DB2 9.1 from scratch on Solaris 10.
I did it first from CLI, but i found the Control Center app was
missing. So i tried to edit the install using db2setup. this informed
me that everything was installed.
so i uninstalled and then reinstalled using the db2setup gui,
however db2cc is still missing!
|
by: idev |
last post by:
Hi all,
Please help me with my stuff.
I downloaded python 2.5.1 package from http://blastwave.org it was
compiled using Sun Studio 11 for Solaris 8 sparc.
My system is Solaris 10 sparc and I compiled using SunStudio 11
psycopg2 python binding for PostgreSQL 8.3.1.
Compilation was OK, but when I am trying to import psycopg2 I am
|
by: nzmike |
last post by:
Hi,
Hoping someone out there can help me... I just built a new Vista Home
Premium 64 PC. So far everything has gone well so this morning I
decided to install Visual Studio 2005 Professional. Whilst installing I
got some dialogs saying there were compatibility issues with the O/S but
I let it install anyway assuming that the Vista SP1 would...
|
by: Tony |
last post by:
Hi all,
Do you know how to change kernel parameters on Solaris 10 for DB2?
I just installed DB2 ESE v8.2 on a new Solaris 10 box. But during the
installation, it asks for changing the kernel parameter like this:
DBI1030E Kernel parameter MSGMNB must be set to 65535.
I know it can be changed on the /etc/system for Solaris 9, but no...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |