NetBSD Problem Report #54635

From www@netbsd.org  Mon Oct 21 20:53:35 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A330B7A1E4
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 21 Oct 2019 20:53:35 +0000 (UTC)
Message-Id: <20191021205334.3564F7A24B@mollari.NetBSD.org>
Date: Mon, 21 Oct 2019 20:53:34 +0000 (UTC)
From: ng0@n0.is
Reply-To: ng0@n0.is
To: gnats-bugs@NetBSD.org
Subject: external/bsd/acpica/bin/iasl fails to build with clang
X-Send-Pr-Version: www-1.0

>Number:         54635
>Category:       install
>Synopsis:       external/bsd/acpica/bin/iasl fails to build with clang
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 21 20:55:00 +0000 2019
>Closed-Date:    Sat Apr 11 13:13:25 +0000 2020
>Last-Modified:  Sat Apr 11 13:13:25 +0000 2020
>Originator:     ng0
>Release:        9.99.15
>Organization:
>Environment:
NetBSD uptimegirl 9.99.15 NetBSD 9.99.15 (GENERIC) amd64

>Description:
dependall ===> external/bsd/acpica/bin/iasl
#   compile  iasl/nsdump.o
/usr/src/../tools/bin/x86_64--netbsd-clang -O2   -fPIE  -g  -std=gnu99     -Wno-sign-compare -Wno-pointer-sign  -Werror     --sysroot=/usr/src/../obj/destdir.amd64 -I/usr/src/sys/external/bsd/acpica/dist/compiler/../include -I/usr/src/sys/external/bsd/acpica/dist/compiler -I. -DACPI_ASL_COMPILER -DACPI_USE_ALTERNATE_TIMEOUT -DACPI_REPRO  -c    /usr/src/sys/external/bsd/acpica/dist/compiler/../namespace/nsdump.c
/usr/src/sys/external/bsd/acpica/dist/compiler/../namespace/nsdump.c:372:49: error: format specifies type 'unsigned short' but the argument has type 'UINT8' (aka 'unsigned char')
      [-Werror,-Wformat]
                        AcpiOsPrintf (" %.2hX", ObjDesc->Buffer.Pointer[i]);
                                        ~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                        %.2hhX
/usr/src/sys/external/bsd/acpica/dist/compiler/../namespace/nsdump.c:473:17: error: format specifies type 'short' but the argument has type 'UINT8' (aka 'unsigned char') [-Werror,-Wformat]
                ObjDesc->CommonField.AccessByteWidth);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.

*** Failed target:  nsdump.o
*** Failed command: /usr/src/../tools/bin/x86_64--netbsd-clang -O2 -fPIE -g -std=gnu99 -Wno-sign-compare -Wno-pointer-sign -Werror --sysroot=/usr/src/../obj/destdir.amd64 -I/usr/src/sys/external/bsd/acpica/dist/compiler/../include -I/usr/src/sys/external/bsd/acpica/dist/compiler -I. -DACPI_ASL_COMPILER -DACPI_USE_ALTERNATE_TIMEOUT -DACPI_REPRO -c /usr/src/sys/external/bsd/acpica/dist/compiler/../namespace/nsdump.c
*** Error code 1

Stop.
nbmake[9]: stopped in /usr/src/external/bsd/acpica/bin/iasl

*** Failed target:  dependall
*** Failed command: cd "/usr/src/external/bsd/acpica/bin/iasl"; /usr/src/../tools/bin/nbmake realall
*** Error code 1

Stop.
nbmake[8]: stopped in /usr/src/external/bsd/acpica/bin/iasl

*** Failed target:  dependall-iasl
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="external/bsd/acpica/bin/"; real="/usr/src/external/bsd/acpica/bin" ;; *) this="external/bsd/acpica/bin/${dir}/"; real="/usr/src/external/bsd/acpica/bin/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget iasl dependall
*** Error code 1

Stop.
nbmake[7]: stopped in /usr/src/external/bsd/acpica/bin

*** Failed target:  dependall-bin
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="external/bsd/acpica/"; real="/usr/src/external/bsd/acpica" ;; *) this="external/bsd/acpica/${dir}/"; real="/usr/src/external/bsd/acpica/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget bin dependall
*** Error code 1

Stop.
nbmake[6]: stopped in /usr/src/external/bsd/acpica

*** Failed target:  dependall-acpica
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="external/bsd/"; real="/usr/src/external/bsd" ;; *) this="external/bsd/${dir}/"; real="/usr/src/external/bsd/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget acpica dependall
*** Error code 1

Stop.
nbmake[5]: stopped in /usr/src/external/bsd

*** Failed target:  dependall-bsd
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="external/"; real="/usr/src/external" ;; *) this="external/${dir}/"; real="/usr/src/external/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget bsd dependall
*** Error code 1

Stop.
nbmake[4]: stopped in /usr/src/external

*** Failed target:  dependall-external
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget external dependall
*** Error code 1

Stop.
nbmake[3]: stopped in /usr/src

*** Failed target:  do-build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . dependall BUILD_tools=no BUILD_lib=no
*** Error code 1

Stop.
nbmake[2]: stopped in /usr/src
*** Failed target:  build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . do-build
*** Error code 1

Stop.
nbmake[1]: stopped in /usr/src

*** Failed target:  distribution
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . build NOPOSTINSTALL=1
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make distribution
*** BUILD ABORTED ***

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 11 Apr 2020 13:13:25 +0000
State-Changed-Why:
I believe this is fixed. The latest HEAD-llvm builds have a successful amd64 build.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.