Tcl Source Code

View Ticket
Login
Ticket UUID: 2966843
Title: type mismatch building 64-bit sparc
Type: Bug Created on: 2010-03-09 18:26:43
Submitter: eee Assigned to: andreas_kupries
Subsystem: 49. Threading Severity:
Priority: 5 Medium Last modified: 2010-08-05 03:55:48
Status: Closed Closed by: hobbs
Resolution: Wont Fix Closed on: 2010-08-04 20:55:48
Version: None
Description:
A build of HEAD on 64-bit sparc produces a few nasty-looking warnings.

snipped down to the warning messages. Let me know if you want the full output of ./configure and make.

$ uname -a
SunOS <hostname> 5.9 Generic_122300-37 sun4u sparc SUNW,UltraAX-i2
$ ./configure --enable-threads --enable-64bit --enable-64bit-vis --enable-symbols --enable-dtrace
$ make
gcc -c -g  -pipe -m64 -mcpu=v9  -Wall -fPIC -DBUILD_tcl -I"." -I/sandbox/cvs/tcl/unix -I/sandbox/cvs/tcl/generic -I/sandbox/cvs/tcl/libtommath -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.6\" -DPACKAGE_STRING=\"tcl\ 8.6\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DTCL_THREADS=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -DHAVE_ZLIB=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1 -DTCL_CFG_DO64BIT=1 -DTCL_SHLIB_EXT=\".so\" -DTCL_CFG_DEBUG=1 -DTCL_TOMMATH=1 -DMP_PREC=4 -DTCL_WIDE_INT_IS_LONG=1 -DWORDS_BIGENDIAN=1 -DHAVE_GETCWD=1 -DHAVE_MKSTEMP=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 -DHAVE_WAITPID=1 -DHAVE_GETADDRINFO=1 -DHAVE_GETPWUID_R_5=1 -DHAVE_GETPWUID_R=1 -DHAVE_GETPWNAM_R_5=1 -DHAVE_GETPWNAM_R=1 -DHAVE_GETGRGID_R_5=1 -DHAVE_GETGRGID_R=1 -DHAVE_GETGRNAM_R_5=1 -DHAVE_GETGRNAM_R=1 -DHAVE_GETHOSTBYNAME_R_5=1 -DHAVE_GETHOSTBYNAME_R=1 -DHAVE_GETHOSTBYADDR_R_7=1 -DHAVE_GETHOSTBYADDR_R=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_BLKCNT_T=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DNO_UNION_WAIT=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_UNLOAD_DLLS=1       /sandbox/cvs/tcl/unix/tclUnixThrd.c
/sandbox/cvs/tcl/unix/tclUnixThrd.c: In function `TclpThreadCreate':
/sandbox/cvs/tcl/unix/tclUnixThrd.c:131: warning: cast to pointer from integer of different size
/sandbox/cvs/tcl/unix/tclUnixThrd.c: In function `Tcl_JoinThread':
/sandbox/cvs/tcl/unix/tclUnixThrd.c:168: warning: cast from pointer to integer of different size
/sandbox/cvs/tcl/unix/tclUnixThrd.c: In function `Tcl_GetCurrentThread':
/sandbox/cvs/tcl/unix/tclUnixThrd.c:223: warning: cast to pointer from integer of different size
User Comments:
dkf added on 2010-03-10 06:14:46:
Looks to be the caused by using the "wrong" type for Tcl_ThreadId. However, since sizeof(Tcl_ThreadId) > sizeof(pthread_t), it should be OK.

hobbs added on 2010-08-05 03:55:48:

allow_comments - 1