Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Brad Lucier <lucier@math.purdue.edu>
To: axp-list@redhat.com
Cc: lucier@math.purdue.edu
Subject: Serious warnings from RH 6.1 SRPMs on alpha
Date: Tue, 2 Nov 1999 10:23:00 -0500 (EST)	[thread overview]
Message-ID: <199911021523.KAA18013@polya.math.purdue.edu> (raw)

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


             reply	other threads:[~1999-11-02 15:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-02 15:23 Brad Lucier [this message]
1999-11-02 15:40 ` Serious warnings from RH 6.1 SRPMs on alpha Christian Iseli
  -- strict thread matches above, loose matches on Subject: below --
1999-11-02 15:59 Wessels, Hans
1999-11-02 17:09 ` Michal Jaegermann
1999-11-02 17:18 Brad Lucier
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox