From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luc Van Oostenryck Subject: Bug#873508: sparse test failures on ppc32le (and other not so common archs) Date: Sun, 10 Sep 2017 14:29:07 +0200 Message-ID: References: <20170830161435.krq44m5zub4mq43x@taurus.defre.kleine-koenig.org> <20170830173652.2s26nti2s2mgupnd@taurus.defre.kleine-koenig.org> <20170831205514.vxmirle2yoc3rm44@taurus.defre.kleine-koenig.org> <20170909210215.2mjxhsw76ee6eeqy@taurus.defre.kleine-koenig.org> <150392922734.24087.13050909898214597041.reportbug@curie.anarc.at> Reply-To: Luc Van Oostenryck , 873508@bugs.debian.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Sender: luc.vanoostenryck.ml@gmail.com Resent-To: debian-bugs-dist@lists.debian.org Resent-Message-ID: Sender: luc.vanoostenryck.ml@gmail.com In-Reply-To: List-URL: List-Post: List-Help: List-Subscribe: List-Unsubscribe: To: Uwe =?UTF-8?Q?Kleine-K=C3=B6nig?= Cc: Christopher Li , Ramsay Jones , Linux-Sparse , 873508@bugs.debian.org, Antoine Beaupre List-Id: linux-sparse@vger.kernel.org On Sun, Sep 10, 2017 at 10:43 AM, Uwe Kleine-K=C3=B6nig wrote: > >> Meanwhile, is it possible to have the build logs but with 'make V=3D1 ..= .' ? >> It would also be useful to have: >> - the output of 'uname -a' >> - the details about the version of LLVM you're using > > Sure, can do. Attached is a build from the ppc64el machine with Chris' > patch applied. Tell me if it contains everything you need. I've taken a look at it what happens. The problem is easy to identify and very annoying to solve: in sparsec (a wrapper for sparse-llvm + llc + as [+ ld]) there is a discrepancy between the defaults for llc and as. 'llc' seems to default to the sub-architecture of the build machine (possibly including the most modern features) while 'as' defaults to the minimal features for the build machine architecture. The problem can be solved (on the machine I have access to) by either: - using the option "-mgeneric" for llc - using the option "-mpower8" for as Something smarter would be better. -- Luc