Overview
| Artifact ID: | 1aa6e55f1e9878ce79d0a6c1acb7d189c0e65c84 |
|---|---|
| Ticket: | 1921166fffffffffffffffffffffffffffffffff
won't build 64bit version on Solaris with cc |
| User & Date: | psum on 2008-03-20 15:10:47 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
Tcl and/or Tk won't build on Solaris (tested with Solaris 11[b76] and 9) with "--enable-64bit" (tested on sparcv9 but should be the same for amd64) when compiling with Sun Studio compiler (cc): cc -G -z text -o libtcl8.4.so regcomp.o regexec.o regfree.o regerror.o tclAlloc.o tclAsync.o tclBasic.o tclBinary.o tclCkalloc.o tclClock.o tclCmdAH.o tclCmdIL.o tclCmdMZ.o tclCompCmds.o tclCompExpr.o tclCompile.o tclDate.o tclEncoding.o tclEnv.o tclEvent.o tclExecute.o tclFCmd.o tclFileName.o tclGet.o tclHash.o tclHistory.o tclIndexObj.o tclInterp.o tclIO.o tclIOCmd.o tclIOGT.o tclIOSock.o tclIOUtil.o tclLink.o tclListObj.o tclLiteral.o tclLoad.o tclMain.o tclNamesp.o tclNotify.o tclObj.o tclPanic.o tclParse.o tclParseExpr.o tclPipe.o tclPkg.o tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o tclResolve.o tclResult.o tclScan.o tclStringObj.o tclThread.o tclThreadAlloc.o tclThreadJoin.o tclStubInit.o tclStubLib.o tclTimer.o tclUtf.o tclUtil.o tclVar.o tclUnixChan.o tclUnixEvent.o tclUnixFCmd.o tclUnixFile.o tclUnixPipe.o tclUnixSock.o tclUnixTime.o tclUnixInit.o tclUnixThrd.o tclUnixCompat.o tclUnixNotfy.o tclLoadDl.o -ldl -lsocket -lnsl -lm -lc -R /usr/local/lib ld: fatal: file regcomp.o: wrong ELF class: ELFCLASS64 ld: fatal: File processing errors. No output written to libtcl8.4.so This is probably regression after: Sat Sep 15 06:00:49 2007 UTC (6 months ago) by das (SunOS-5.1x):replace direct use of '/usr/ccs/bin/ld' in SHLIB_LD by 'cc' compiler driver. 3870c3997,4002 < SHLIB_LD="/usr/ccs/bin/ld -G -z text" --- > case $system in > SunOS-5.[1-9][0-9]*) > SHLIB_LD='${CC} -G -z text';; > *) > SHLIB_LD="/usr/ccs/bin/ld -G -z text";; > esac Where ${CC} is missing -xarch parameter. Please note that xarch is set in LDFLAGS. Therefore something like this need to be added (see also attached patch): SHLIB_LD="$SHLIB_LD $LDFLAGS" This should be applicable also for 8.5 version. - foundin changed to: "obsolete: 8.4.18"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "psum"
- subsystem changed to: "53. Configuration and Build Tools"
- title changed to: "won't build 64bit version on Solaris with cc"
- type changed to: "Bug"