From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21453 invoked from network); 2 Nov 1999 15:23:05 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 2 Nov 1999 15:23:05 -0000 Received: from newton.math.purdue.edu (root@newton.math.purdue.edu [128.210.3.6]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id KAA22758 for ; Tue, 2 Nov 1999 10:23:04 -0500 Received: from polya.math.purdue.edu (lucier@polya.math.purdue.edu [128.210.3.194]) by newton.math.purdue.edu (8.9.3/8.9.3/PURDUE_MATH-3.1) with ESMTP id KAA00344; Tue, 2 Nov 1999 10:23:01 -0500 (EST) Received: (from lucier@localhost) by polya.math.purdue.edu (8.9.3/8.9.3/PURDUE_MATH-3.0) id KAA18013; Tue, 2 Nov 1999 10:23:00 -0500 (EST) Date: Tue, 2 Nov 1999 10:23:00 -0500 (EST) From: Brad Lucier Message-Id: <199911021523.KAA18013@polya.math.purdue.edu> To: axp-list@redhat.com Subject: Serious warnings from RH 6.1 SRPMs on alpha Cc: lucier@math.purdue.edu X-Sun-Charset: US-ASCII There was some discussion on this list about the RH 6.1 SRPMs building just fine on alpha, so I downloaded the ones I found at a local RH mirror and ran an rpm --rebuild on all of them using gcc-2.95.1 and binutils 2.9.5.0.16+some 64bit patches. The results were not encouraging. There were many, many warnings of the following type in many rpm builds: Installing diffutils-2.7-16.src.rpm regex.c:3997: warning: cast from pointer to integer of different size regex.c:3997: warning: cast from pointer to integer of different size regex.c:4003: warning: cast to pointer from integer of different size regex.c:4003: warning: cast to pointer from integer of different size etc. In my (limited) experience, this type of warning almost always indicates that someone is (a) trying to store a pointer in an int variable without (b) knowing that an int is 32 bits and a pointer is 64 bits on alpha linux. Other possibly serious errors include ones of the type Installing clock-1.1-6.src.rpm clock-alpha.c:498: warning: int format, different type arg (arg 4) clock-alpha.c:505: warning: int format, different type arg (arg 2) clock-alpha.c:609: warning: int format, different type arg (arg 2) clock-alpha.c:700: warning: int format, different type arg (arg 4) since this mucks up the argument stack frame in varargs. Other things that are not so serious, but which may hide other problems are Installing compat-binutils-5.2-2.9.1.0.23.1.src.rpm argv.c:122: warning: type mismatch in implicit declaration for built-in function `strcpy' (strcpy, strlen, and friends return a long on the alpha.) Another warning I don't like is: Installing XFree86-3.3.5-3.src.rpm mpctoi.c:608: warning: comparison is always true due to limited range of data ty pe mpctoi.c:927: warning: comparison is always false due to limited range of data t ype So I'm not really optimistic about 6.1 if RedHat just compiles and ships the current sources out the door. It would be a large effort to correct all these warnings, many of which are almost certainly errors. But the source is with us. The file containing the warnings and list of rpms is at http://www.math.purdue.edu/~lucier/RH-6.1-warnings.gz Unfortunately, the build of glibc-2.1.2 got hosed because of clock skew (of about 20 years, I believe ;-), and another rpm didn't build to completion. Brad Lucier