Skip to content
Tcl Source Code Artifact [1f72e35faa]
Login

Artifact [1f72e35faa]

Artifact 1f72e35faa542e6fc1b3706e4679f0db79d6221ba0494a3a85bf474161b78b11:

Ticket change [1f72e35faa] - New ticket [8c025f8f0d72af49|8c025f8f0d] <i>Run-time error on tcl 8.6.11 32 bits (from cross-compile Centos6.9 64-bits)</i>. by anonymous on 2021-01-19 16:26:15.
D 2021-01-19T16:26:15.194
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment I\sam\strying\sto\sget\sa\s32bits\stcl\swhile\scompiling\son\sa\sLinux\sCentos\s6.9\s64-bits\ssystem.\r\nI\sdid:\r\n\r\n./configure\s--disable-64bit\s--build=i686\s-prefix=/home/xx/yy/zz/tcl8.6.11\r\nmake\sCFLAGS="-m32\s-D_USE_32BIT_TIME_T=1"\sLDFLAGS="-m32"\r\nmake\sinstall\r\ncd\s../bin\r\nln\s-s\stclsh8.6\stclsh\r\n\r\nAnd\sthen:\r\n[jpcaron@dev2-71\sbin]$\s./tclsh\r\n%\sinfo\spatchlevel\r\n8.6.11\r\n%\sclock\sformat\s[clock\sseconds]\r\ninteger\svalue\stoo\slarge\sto\srepresent\r\n%\r\n\r\nI\straced\sback\sthe\sissue\sto\sthe\sconfigure\sfile.\r\nThe\sconfigure\sdetermines\sthe\ssystem\ssupport\slong\sfor\sthe\s64-bits\sinteger\sand\sset\sTCL_WIDE_INT_IS_LONG\sto\s1\sto\sbe\sused\sby\sgcc.\r\n:\r\nchecking\sfor\srequired\searly\scompiler\sflags...\s\s_LARGEFILE64_SOURCE\r\nchecking\sfor\s64-bit\sinteger\stype...\susing\slong\r\nchecking\swhether\sbyte\sordering\sis\sbigendian...\sno\r\n:\r\n\r\n\sWhen\sthe\scompile\scomes\swith\s-m32,\sit\sis\stoo\slate\salready\ssince\sTCL_WIDE_INT_IS_LONG\sis\sset\s(via\s-D\son\sthe\sgcc\scommand\sline).\sSince\s-DTCL_WIDE_INT_IS_LONG=1,\sthe\sheader\sfile\swill\sforce\sthe\suse\sof\slong.\r\n\r\nAs\sa\sworkaround,\sI\sset\san\senvironment\svariable\sbefore\sI\srun\sthe\sconfigure:\r\nexport\stcl_cv_type_64bit="long\slong"\r\n\r\nWhen\sI\stry\sagain...\r\n:\r\nchecking\sfor\s64-bit\sinteger\stype...\s(cached)\slong\slong\r\n:\r\n\r\n[jpcaron@dev2-71\sbin]$\s./tclsh\r\n%\sinfo\spatchlevel\r\n8.6.11\r\n%\sclock\sformat\s[clock\sseconds]\r\nTue\sJan\s19\s11:15:19\sEST\s2021\r\n%\r\n\r\nWould\sbe\snice\sif\syou\scould\seither\supdate\sthe\sconfigure\sfile\sto\stake\sthe\sbuild\stype\sin\sconsideration\sor\sthe\sTCL\score\soverwrite\sthe\s-DTCL_WIDE_INT_IS_LONG=1\swhen\sgcc\sis\susing\s-m32\sor\sdocument\sthe\scross-compile\sworkaround\sto\sget\sthe\s32-bits\sprogram.\r\n\r\nThanks.
J foundin 8.6.11
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 3010a758e9cda4cc2dc3eda98e1142ce5e951b01
J resolution None
J severity Important
J status Open
J submitter anonymous
J subsystem 53.\sConfiguration\sand\sBuild\sTools
J title Run-time\serror\son\stcl\s8.6.11\s32\sbits\s(from\scross-compile\sCentos6.9\s64-bits)
J type Bug
K 8c025f8f0d72af49e8b10d12744c2f380861fdc9
U anonymous
Z 47d68d55d6a7445dc023e6beff4c32bf