Home > Archive > Tcl > December 2006 > tclsh crash on AIX5.3 in 64 bits
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
tclsh crash on AIX5.3 in 64 bits
|
|
|
| Hello,
I am trying to use tcl on AIX5.3, in 64 bits mode.
As soon as I perform an operation in the tclsh interpreter, it crashes
set a 0
---> crash
I have seen severals treats mentioning the problem, but no solution
Has someone already solved the problem ?
| |
| allenjo5@mail.northgrum.com 2006-12-19, 7:14 pm |
| mp wrote:
> Hello,
>
> I am trying to use tcl on AIX5.3, in 64 bits mode.
> As soon as I perform an operation in the tclsh interpreter, it crashes
>
> set a 0
>
> ---> crash
>
> I have seen severals treats mentioning the problem, but no solution
>
> Has someone already solved the problem ?
Yes. In my case, I was on AIX 5.1, and had to build tcl and tk with
the xlc compiler, not cc. I got the hint from an April 2003 post by
Jeff Hobbes. You can do that with
cd unix
CC=xlc CFLAGS="-qmaxmem=-1" ./configure --enable-64bit
At first, I tried using --enable-threads, but the tk windows-2.9 test
hung. On my non 64 bit kernel AIX 5.1, many of the sockets related
tests also failed, but if your system is true 64 bits, you might not
have that problem.
John.
| |
| Jeff Hobbs 2006-12-19, 7:14 pm |
| mp wrote:
> I am trying to use tcl on AIX5.3, in 64 bits mode.
> As soon as I perform an operation in the tclsh interpreter, it crashes
>
> set a 0
>
> ---> crash
How did you compile tclsh? Does it work as a 32-bit executable? Have
you tried ActiveTcl to see if that works?
--
Jeff Hobbs, The Tcl Guy, http://www.activestate.com/
| |
|
| Hi,
I just tried, but unfortunately it keeps crashing. Here is what I tried
../configure --enable-64bits
make
--> files are compiled with cc -q64 and produces tclsh which crashes
as soon as I use it
cc is actually a link to xlc
I tried to install ActiveTcl, but the executables are in 32 bits. 32
bits works ok in my cases too, but I really need the 64 bits version
(for the library essentially to be linked with my application)
Any clue what the problem could be ?
mp
allenjo5@mail.northgrum.com wrote:
> mp wrote:
>
> Yes. In my case, I was on AIX 5.1, and had to build tcl and tk with
> the xlc compiler, not cc. I got the hint from an April 2003 post by
> Jeff Hobbes. You can do that with
>
> cd unix
> CC=xlc CFLAGS="-qmaxmem=-1" ./configure --enable-64bit
>
> At first, I tried using --enable-threads, but the tk windows-2.9 test
> hung. On my non 64 bit kernel AIX 5.1, many of the sockets related
> tests also failed, but if your system is true 64 bits, you might not
> have that problem.
>
> John.
| |
| allenjo5@mail.northgrum.com 2006-12-19, 7:14 pm |
| mp wrote:
> Hi,
>
> I just tried, but unfortunately it keeps crashing. Here is what I tried
>
> ./configure --enable-64bits
> make
> --> files are compiled with cc -q64 and produces tclsh which crashes
> as soon as I use it
>
> cc is actually a link to xlc
Yes, it's a link, but when it is invoked as xlc instead of cc, it uses
a different stanza from the vac.cfg config file in /etc. I believe
this is what accounts for the difference, but perhaps there is more to
it than that. I was quite surprised myself when using xlc made the
crash go away. Please try the configure command I gave you before (the
maxmem piece is optional, but it cuts down on some warning messages):
CC=xlc CFLAGS="-qmaxmem=-1" ./configure --enable-64bit
If that doesn't fix it, I'm afraid I'm out of ideas. Maybe Jeff Hobbs
has more.
John.
| |
|
| It works !!
I tried both with tcl8.5a5 & tcl8.4.12
They both work in 64 bits
It might be a good idea to inforce the use of xlc in the configure
script when --enable-64bits is enabled
Thanks a lot
mp
allenjo5@mail.northgrum.com wrote:
> mp wrote:
>
> Yes, it's a link, but when it is invoked as xlc instead of cc, it uses
> a different stanza from the vac.cfg config file in /etc. I believe
> this is what accounts for the difference, but perhaps there is more to
> it than that. I was quite surprised myself when using xlc made the
> crash go away. Please try the configure command I gave you before (the
> maxmem piece is optional, but it cuts down on some warning messages):
>
> CC=xlc CFLAGS="-qmaxmem=-1" ./configure --enable-64bit
>
> If that doesn't fix it, I'm afraid I'm out of ideas. Maybe Jeff Hobbs
> has more.
>
> John.
| |
| allenjo5@mail.northgrum.com 2006-12-20, 10:06 pm |
| mp wrote:
> It works !!
>
> I tried both with tcl8.5a5 & tcl8.4.12
> They both work in 64 bits
>
> It might be a good idea to inforce the use of xlc in the configure
> script when --enable-64bits is enabled
>
> Thanks a lot
Glad to hear it worked for you. And yes, I agree with you that the
configure script should probably always pick xlc as the compiler on AIX
if it is available, whether in 64bit mode or not. But I'm afraid I'm
not up to tackling the huge mess^Wscript that is configure. Maybe
someone else is.
John.
|
|
|
|
|