Python 2.7.1 Build on HP-UX11.31 ia64 Build with acc - Many modules failed to build
Wah Meng Wong <[email protected]> Sun, 18 Sep 2011 02:32:01 -0700 (PDT)
| Newsgroups | gmane.comp.python.compiler |
|---|---|
| Message-ID | <[email protected]> |
--===============0301391921== Content-Type: multipart/alternative; boundary="1712793509-1098505330-1316338321=:62573" --1712793509-1098505330-1316338321=:62573 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello there,=0A=0AI am working on python build on my server using HP-UX ANS= I C Compiler. I want to be consistent using aCC throughout instead of gcc f= or my python and cx_Oracle build as Oracle is not supporting gcc build much= . Here is my aCC version. =0A=0A=0A# swlist -l product | grep Compiler=0A= =A0 ACXX=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 C.06.26.EVAL=A0= =A0 HP C/aC++ Compiler =0A=A0 C-ANSI-C=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 C.06.26.EVAL=A0=A0 HP C/aC++ Compiler =0A=A0 COMPLIBS=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 B.11.31=A0=A0=A0=A0=A0=A0=A0 Compiler Support Librari= es =0A=0AAnyhow, my issue now is when I am building my python in 64-bit, I = am encountering many modules failed to build issue, despite the python exec= utable is successfully built. There are just so many modules that failed, t= hat I would conclude my build failed. :P=0AI followed through the instructi= on in README file for 64-bit build using HP-UX compiler (--without-gcc opti= on is used in configure). I exported and unexported the environment variabl= es before configure and make is run, respectively. I also removed -O option= in the Makefile before running make. =0A=0AI have a few questions.=0A=0A1.= ) Why Makefile is re-generated after python executable is created? I notice= d the removal of optimization flag in Makefile is gone/restored after pytho= n binary is generated. =0A=0A2.) 64-bit option. It seems that this is a bad= flag that linker doesn't recognize? Many important modules failed to build= , and I believe its due to this error. When I manually execute ld without p= assing in +DD64 flag, the module is generated successfull. =0A=0A=0Ald=0A -= b +DD64 -lxnet =0Abuild/temp.hp-ux-B.11.31-ia64-2.7/home/r32813/Build/2.7.1= /Python-2.7.1/Modules/mathmodule.o=0A =0Abuild/temp.hp-ux-B.11.31-ia64-2.7/= home/r32813/Build/2.7.1/Python-2.7.1/Modules/_math.o=0A -L/usr/local/lib -l= m -o build/lib.hp-ux-B.11.31-ia64-2.7/math.so=0Ald: Unrecognized argument: = +DD64=0AFatal error.=0A=0AAbove is just showing one of the modules that fai= led to build. =0A=0A3.) Built in modules, I see the compiler cannot find th= e bit of information required to build _tkinter module. How do I make the c= onfigure able to locate my tcl/tk source code or binary which I have alread= y installed and built separately (and successfully)? So, where do I place t= he source code if I need to put it so that the compiler can find? =0A=0ATo = end my question, here is the outcome of my build. For build in modules, I j= ust need my _tkinter running. For shared libraries, I think=A0 need most of= them, those are the basic functions that my application calls. =0A=0AThank= s in advance for your reply. =0A=0APython build finished, but the necessary= bits to build these modules were not found:=0A_bsddb=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 _curses=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 _curses_panel=A0= =A0 =0A_sqlite3=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=0A _ssl=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 _tkinter=A0=A0=A0=A0=A0=A0=A0 =0Absddb185=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 bz2=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 dl=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =0Agdbm=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 imageop=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 linuxaudiodev=A0=A0 = =0Aossaudiodev=A0=A0=A0=A0=A0=A0=A0 readline=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = spwd=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =0Asunaudiodev=A0=A0=A0=A0=A0=A0=A0= =0A zlib=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 =0ATo find the necessary bits, look in setup.py in= detect_modules() for the module's name.=0A=0A=0AFailed to build these modu= les:=0A_bisect=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 _codecs_cn=A0=A0=A0=A0=A0= =A0=A0=A0 _codecs_hk=A0=A0=A0=A0=A0 =0A_codecs_iso2022=A0=A0=A0 _codecs_jp= =A0=A0=A0=A0=A0=A0=A0=A0 _codecs_kr=A0=A0=A0=A0=A0 =0A_codecs_tw=A0=A0=A0= =A0=A0=A0=A0=A0 _collections=A0=A0=A0=A0=A0=A0 _csv=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 =0A_ctypes=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 _ctypes_test=A0=A0=A0= =A0=A0=A0=0A _elementtree=A0=A0=A0 =0A_functools=A0=A0=A0=A0=A0=A0=A0=A0 _h= eapq=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 _hotshot=A0=A0=A0=A0=A0=A0=A0 =0A_= io=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 _json=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 _locale=A0=A0=A0=A0=A0=A0=A0=A0 =0A_lsprof=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0 _md5=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 _multi= bytecodec =0A_multiprocessing=A0=A0 _random=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 _sha=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =0A_socket=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=0A _struct=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 _testcapi=A0=A0=A0= =A0=A0=A0 =0Aarray=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 audioop=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 binascii=A0=A0=A0=A0=A0=A0=A0 =0Acmath=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 cPickle=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 crypt= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =0AcStringIO=A0=A0=A0=A0=A0=A0=A0=A0=A0 date= time=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 dbm=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = =0Afcntl=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 future_builtins=A0=A0=A0=0A= grp=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =0Aitertools=A0=A0=A0=A0=A0=A0=A0= =A0=A0 math=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 mmap=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 =0Anis=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 oper= ator=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 parser=A0=A0=A0=A0=A0=A0=A0=A0=A0 =0Apye= xpat=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 resource=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 select=A0=A0=A0=A0=A0=A0=A0=A0=A0 =0Astrop=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 syslog=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 termios=A0=A0=A0=A0= =A0=A0=A0=A0 =0Atime=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 unicodedata= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 --1712793509-1098505330-1316338321=:62573 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"color:#000; background-color:#fff; font-family:ar= ial, helvetica, sans-serif;font-size:10pt"><div>Hello there,</div><div><br>= </div><div>I am working on python build on my server using HP-UX ANSI C Com= piler. I want to be consistent using aCC throughout instead of gcc for my p= ython and cx_Oracle build as Oracle is not supporting gcc build much. Here = is my aCC version. <br></div><div><br></div><div><span># swlist -l product = | grep Compiler<br> ACXX &nb= sp; C.06.26.EVAL = ; HP C/aC++ Compiler <br> C-ANSI-C  = ; C.06.26.EVAL = HP C/aC++ Compiler <br> COMPLIBS &= nbsp; B.11.31 &n= bsp; Compiler Support Libraries </span></div><div><br></div><div>Anyhow, my issue now is when I am buildin= g my python in 64-bit, I am encountering many modules failed to build issue= , despite the python executable is successfully built. There are just so ma= ny modules that failed, that I would conclude my build failed. :P</div><br>= I followed through the instruction in README file for 64-bit build using HP= -UX compiler (--without-gcc option is used in configure). I exported and un= exported the environment variables before configure and make is run, respec= tively. I also removed -O option in the Makefile before running make. <br><= br>I have a few questions.<br><br>1.) Why Makefile is re-generated after py= thon executable is created? I noticed the removal of optimization flag in M= akefile is gone/restored after python binary is generated. <br><br>2.) 64-b= it option. It seems that this is a bad flag that linker doesn't recognize? = Many important modules failed to build, and I believe its due to this error. When I manually execute ld without passing in +DD64 flag, the = module is generated successfull. <br><br><br>ld=0A -b +DD64 -lxnet =0Abuild= /temp.hp-ux-B.11.31-ia64-2.7/home/r32813/Build/2.7.1/Python-2.7.1/Modules/m= athmodule.o=0A =0Abuild/temp.hp-ux-B.11.31-ia64-2.7/home/r32813/Build/2.7.1= /Python-2.7.1/Modules/_math.o=0A -L/usr/local/lib -lm -o build/lib.hp-ux-B.= 11.31-ia64-2.7/math.so<br>ld: Unrecognized argument: +DD64<br>Fatal error.<= br><br>Above is just showing one of the modules that failed to build. <br><= br>3.) Built in modules, I see the compiler cannot find the bit of informat= ion required to build _tkinter module. How do I make the configure able to = locate my tcl/tk source code or binary which I have already installed and b= uilt separately (and successfully)? So, where do I place the source code if= I need to put it so that the compiler can find? <br><br>To end my question= , here is the outcome of my build. For build in modules, I just need my _tk= inter running. For shared libraries, I think need most of them, those= are the basic functions that my application calls. <br><br>Thanks in advan= ce for your reply. <br><br>Python build finished, but the necessary bits to= build these modules were not found:<br>_bsddb &nbs= p; _curses  = ; _curses_panel <br>_sqlite3  = ; =0A _ssl = _tkinter = <br>bsddb185 &n= bsp; bz2 &= nbsp; dl &= nbsp; <br>gdbm &= nbsp; ima= geop linu= xaudiodev <br>ossaudiodev &n= bsp; readline s= pwd <br>s= unaudiodev =0A zlib &nb= sp; = &nb= sp; <br>To find the necessary bits, look in setup.py in detect_= modules() for the module's name.<br><br><br>Failed to build these modules:<= br>_bisect  = ; _codecs_cn _codecs_hk&nbs= p; <br>_codecs_iso2022 _codecs_jp= _codecs_kr &nbs= p; <br>_codecs_tw &nbs= p; _collections _csv &= nbsp; <br>_ctypes &nbs= p; _ctypes_test = =0A _elementtree <br>_functools&n= bsp; _heapq &nbs= p; _hotshot &nbs= p; <br>_io  = ; _json &n= bsp; _locale &nb= sp; <br>_lsprof = _md5 &nbs= p; _multibytecodec <b= r>_multiprocessing _random &= nbsp; _sha  = ; <br>_socket &n= bsp; =0A _struct = _testcapi  = ; <br>array &nbs= p; audioop  = ; binascii <br>cmath&= nbsp; &nbs= p; cPickle  = ; crypt <br>cSt= ringIO datetime = dbm  = ; <br>fcntl &nbs= p; future= _builtins =0A grp  = ; <br>itertools = math &nbs= p; mmap &n= bsp; <br>nis &nb= sp; operator &nb= sp; parser  = ; <br>pyexpat &n= bsp; resource &n= bsp; select &nbs= p; <br>strop &nb= sp; syslog  = ; termios = =0A <br>time &nb= sp; unicodedata = <br><br><br>&n= bsp;<br></div></body></html> --1712793509-1098505330-1316338321=:62573-- --===============0301391921== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Compiler-sig mailing list [email protected] http://mail.python.org/mailman/listinfo/compiler-sig --===============0301391921==--