NetBSD Problem Report #52265
From www@NetBSD.org Wed May 31 11:14:57 2017
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 "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 4CA237A104
for <gnats-bugs@gnats.NetBSD.org>; Wed, 31 May 2017 11:14:57 +0000 (UTC)
Message-Id: <20170531111306.8A4F27A28C@mollari.NetBSD.org>
Date: Wed, 31 May 2017 11:13:06 +0000 (UTC)
From: n54@gmx.com
Reply-To: n54@gmx.com
To: gnats-bugs@NetBSD.org
Subject: Missing headers in distribution for GCC sanitizers
X-Send-Pr-Version: www-1.0
>Number: 52265
>Category: toolchain
>Synopsis: Missing headers in distribution for GCC sanitizers
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 31 11:15:00 +0000 2017
>Closed-Date: Thu Feb 01 21:14:54 +0000 2018
>Last-Modified: Thu Feb 01 21:15:00 +0000 2018
>Originator: Kamil Rytarowski
>Release: NetBSD 7.99.75 amd64
>Organization:
TNF
>Environment:
NetBSD chieftec 7.99.75 NetBSD 7.99.75 (GENERIC) #1: Wed May 31 01:19:38 CEST 2017 root@chieftec:/public/netbsd-root/sys/arch/amd64/compile/GENERIC amd64
>Description:
GCC 5.x is built with support for sanitizers (asan, tsan, ubsan), however the distribution does not contain sanitizer headers, e.g.:
<sanitizer/asan_interface.h>
>How-To-Repeat:
Install NetBSD 7.99.75 and try to find sanitize/ headers in /usr/include.
>Fix:
N/A
>Release-Note:
>Audit-Trail:
From: Mateusz Poszwa <old4@o2.pl>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: toolchain/52265: Missing headers in distribution for GCC
sanitizers
Date: Sat, 14 Oct 2017 17:01:54 +0200
>Submitter-Id: net
>Originator: Mateusz Poszwa
>Organization:
Mateusz Poszwa
>Confidential: no
>Synopsis: Missing sanitizer headers despite GCC accepting -fsanitize
>Severity: serious
>Priority: medium
>Category: toolchain
>Class: sw-bug
>Release: NetBSD 8.99.3
>Environment:
System: NetBSD Sparx 8.99.3 NetBSD 8.99.3 (GENERIC) #1: Sat Sep 30 00:10:34 CEST 2017 f8l@Sparx:/home/f8l/sysbuild/amd64/obj/home/f8l/sysbuild/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
NetBSD built with GCC as the compiler (MKLLVM=no, MKGCC= yes)
does not ship with sanitizer headers. I’ve hit this problem
when trying to build pkgsrc-wip/i3-git with GCC from base.
fatal error: sanitizer/lsan_interface.h: No such file or directory
From: "Kamil Rytarowski" <kamil@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/52265 CVS commit: src
Date: Thu, 1 Feb 2018 20:50:23 +0000
Module Name: src
Committed By: kamil
Date: Thu Feb 1 20:50:23 UTC 2018
Modified Files:
src/distrib/sets/lists/base: mi
src/distrib/sets/lists/comp: mi
src/etc/mtree: NetBSD.dist.base
src/external/gpl3/gcc.old/usr.bin/include: Makefile
Added Files:
src/external/gpl3/gcc.old/usr.bin/include/sanitizer: Makefile
Log Message:
Install GCC (gcc.old/) headers for Sanitizers
Install:
- allocator_interface.h
- asan_interface.h
- common_interface_defs.h
- tsan_interface_atomic.h
Into:
- /usr/include/gcc-5/sanitizer
Note headers in a comment headers for introduction in future:
- dfsan_interface.h
- lsan_interface.h
- msan_interface.h
Skip a file that will never be relevant on NetBSD:
- linux_syscall_hooks.h
PR 52265 by Kamil Rytarowski
Proposed and accepted on tech-toolchain@.
Sponsored by <The NetBSD Foundation>
To generate a diff of this commit:
cvs rdiff -u -r1.1170 -r1.1171 src/distrib/sets/lists/base/mi
cvs rdiff -u -r1.2171 -r1.2172 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.167 -r1.168 src/etc/mtree/NetBSD.dist.base
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc.old/usr.bin/include/Makefile
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc.old/usr.bin/include/sanitizer/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: kamil@NetBSD.org
State-Changed-When: Thu, 01 Feb 2018 22:14:54 +0100
State-Changed-Why:
Fixed in HEAD
http://mail-index.netbsd.org/source-changes/2018/02/01/msg091668.html
http://mail-index.netbsd.org/source-changes/2018/02/01/msg091669.html
lsan/dfsan headers are not ready to be installed so skip them.
From: "Kamil Rytarowski" <kamil@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/52265 CVS commit: src/external/gpl3/gcc/usr.bin/include
Date: Thu, 1 Feb 2018 21:10:46 +0000
Module Name: src
Committed By: kamil
Date: Thu Feb 1 21:10:46 UTC 2018
Modified Files:
src/external/gpl3/gcc/usr.bin/include: Makefile
Added Files:
src/external/gpl3/gcc/usr.bin/include/sanitizer: Makefile
Log Message:
Install GCC (gcc) headers for Sanitizers
Sync this code with gcc.old.
PR 52265 by Kamil Rytarowski
Proposed and accepted on tech-toolchain@.
Sponsored by <The NetBSD Foundation>
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/usr.bin/include/Makefile
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/usr.bin/include/sanitizer/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(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.