NetBSD Problem Report #53088
From www@NetBSD.org Sun Mar 11 09:58:26 2018
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 DB2FC7A183
for <gnats-bugs@gnats.NetBSD.org>; Sun, 11 Mar 2018 09:58:25 +0000 (UTC)
Message-Id: <20180311095824.D2E927A225@mollari.NetBSD.org>
Date: Sun, 11 Mar 2018 09:58:24 +0000 (UTC)
From: hans@netbsd.org
Reply-To: hans@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: tools/libctf fails to build on systems without machine/int_limits.h
X-Send-Pr-Version: www-1.0
>Number: 53088
>Category: toolchain
>Synopsis: tools/libctf fails to build on systems without machine/int_limits.h
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 11 10:00:00 +0000 2018
>Last-Modified: Sun Mar 11 12:50:00 +0000 2018
>Originator: Hans Rosenfeld
>Release: 8.0_BETA, HEAD
>Organization:
>Environment:
SunOS executor 5.11 illumos-ff1e230c4f i86pc i386 i86pc
>Description:
In file included from /usr/include/sys/inttypes.h:43:0,
from /export/ws/netbsd/8/src/tools/libctf/../../external/cddl/osnet/sys/sys/int_types.h:32,
from /usr/include/sys/stdint.h:36,
from /usr/include/stdint.h:36,
from /usr/gcc/6/lib/gcc/i386-pc-solaris2.11/6.4.0/include/stdint.h:9,
from /export/ws/netbsd/8/src/tools/libctf/../../external/cddl/osnet/sys/sys/types.h:67,
from /export/ws/netbsd/8/src/tools/libctf/../compat/compat_defs.h:35,
from /export/ws/netbsd/8/src/../tooldir.SunOS-5.11-i86pc/include/compat/nbtool_config.h:871,
from /export/ws/netbsd/8/src/tools/libctf/../../external/cddl/osnet/dist/lib/libctf/common/ctf_lib.c:30:
/export/ws/netbsd/8/src/tools/libctf/../../external/cddl/osnet/sys/sys/int_limits.h:32:32: fatal error: machine/int_limits.h: No such file or directory
>How-To-Repeat:
Try a build of -8 or current on any system that doesn't have machine/int_limits.h, like illumos.
>Fix:
>Audit-Trail:
From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: toolchain/53088: tools/libctf fails to build on systems without
machine/int_limits.h
Date: Sun, 11 Mar 2018 15:49:05 +0300
On Sun, Mar 11, 2018 at 10:00:00 +0000, hans@netbsd.org wrote:
> > How-To-Repeat:
>
> Try a build of -8 or current on any system that doesn't have
> machine/int_limits.h, like illumos.
I've just built a very current current amd64 on a linux host withotu
any issues.
> In file included from /usr/include/sys/inttypes.h:43:0,
> from /export/ws/netbsd/8/src/tools/libctf/../../external/cddl/osnet/sys/sys/int_types.h:32,
> from /usr/include/sys/stdint.h:36,
> from /usr/include/stdint.h:36,
> from /usr/gcc/6/lib/gcc/i386-pc-solaris2.11/6.4.0/include/stdint.h:9,
> from /export/ws/netbsd/8/src/tools/libctf/../../external/cddl/osnet/sys/sys/types.h:67,
> from /export/ws/netbsd/8/src/tools/libctf/../compat/compat_defs.h:35,
> from /export/ws/netbsd/8/src/../tooldir.SunOS-5.11-i86pc/include/compat/nbtool_config.h:871,
> from /export/ws/netbsd/8/src/tools/libctf/../../external/cddl/osnet/dist/lib/libctf/common/ctf_lib.c:30:
> /export/ws/netbsd/8/src/tools/libctf/../../external/cddl/osnet/sys/sys/int_limits.h:32:32: fatal error: machine/int_limits.h: No such file or directory
I guess the problem is not hosts without machine/int_limits.h, but
specifically solaris hosts. We have some solaris headers imported for
dtrace and that's probably what wreaks havoc here because solaris host
headers that the tools include end up including our own, modified,
copies of solaris headers from external/cddl/osnet/dist
-uwe
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.