NetBSD Problem Report #53279
From alnsn@xmmswap.com Sat May 12 13:31:26 2018
Return-Path: <alnsn@xmmswap.com>
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 8A8167A1DB
for <gnats-bugs@gnats.NetBSD.org>; Sat, 12 May 2018 13:31:26 +0000 (UTC)
Message-Id: <20180512133120.926775447@netu.xmmswap.com>
Date: Sat, 12 May 2018 13:31:20 +0000 (UTC)
From: alnsn@xmmswap.com
Reply-To: alnsn@xmmswap.com
To: gnats-bugs@NetBSD.org
Subject: devel/hyperscan does not compile
X-Send-Pr-Version: 3.95
>Number: 53279
>Category: pkg
>Synopsis: devel/hyperscan does not compile
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat May 12 13:35:00 +0000 2018
>Closed-Date: Sun Jun 03 20:31:47 +0000 2018
>Last-Modified: Sun Jun 03 20:31:47 +0000 2018
>Originator: Alexander Nasonov
>Release: NetBSD 8.0_RC1
>Organization:
XMM SWAP LTD
>Environment:
# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/lto-wrapper
Target: x86_64--netbsd
Configured with: /usr/src/tools/gcc/../../external/gpl3/gcc.old/dist/configure --target=x86_64--netbsd --enable-long-long --enable-threads --with-bugurl=http://www.NetBSD.org/Misc/send-pr.html --with-pkgversion='NetBSD nb1 20171112' --with-system-zlib --disable-libstdcxx-dual-abi --enable-__cxa_atexit --enable-libstdcxx-time=rt --enable-libstdcxx-threads --with-tune=nocona --with-diagnostics-color=auto-if-env --with-mpc-lib=/var/obj/mknative/amd64-x86_64/usr/src/external/lgpl3/mpc/lib/libmpc --with-mpfr-lib=/var/obj/mknative/amd64-x86_64/usr/src/external/lgpl3/mpfr/lib/libmpfr --with-gmp-lib=/var/obj/mknative/amd64-x86_64/usr/src/external/lgpl3/gmp/lib/libgmp --with-mpc-include=/usr/src/external/lgpl3/mpc/dist/src --with-mpfr-include=/usr/src/external/lgpl3/mpfr/dist/src --with-gmp-include=/usr/src/external/lgpl3/gmp/lib/libgmp/arch/x86_64 --enable-tls --disable-multilib --disable-symvers --disable-libstdcxx-pch --disable-libstdcxx-dual-abi --build=x86_64-unknown-netbsd7.1 --host=x8
6_64--netbsd --with-sysroot=/var/obj/mknative/amd64-x86_64/usr/src/destdir.amd64
Thread model: posix
gcc version 5.5.0 (nb2 20180327)
System: NetBSD nebeda 8.0_RC1 NetBSD 8.0_RC1 (GENERIC) #0: Mon May 7 22:19:21 BST 2018 alnsn@nebeda:/home/alnsn/netbsd-8/src/sys/arch/amd64/compile/obj/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
Building devel/hyperscan fails:
===> Building for hyperscan-4.7.0
[ 0%] Built target ragel_Parser
[ 1%] Building C object CMakeFiles/hs_exec_shared.dir/src/runtime.c.o
[ 1%] Building C object CMakeFiles/hs_exec_shared.dir/src/stream_compress.c.o
[ 1%] Building CXX object util/CMakeFiles/corpusomatic.dir/ng_corpus_editor.cpp.o
In file included from /usr/include/string.h:98:0,
from /tmp/obj/devel/hyperscan/work/hyperscan-4.7.0/src/util/multibit.h:60,
from /tmp/obj/devel/hyperscan/work/hyperscan-4.7.0/src/stream_compress.c:34:
/usr/include/strings.h:61:14: error: conflicting types for 'popcount64'
unsigned int popcount64(__uint64_t) __constfunc;
^
In file included from /tmp/obj/devel/hyperscan/work/hyperscan-4.7.0/src/util/bitutils.h:37:0,
from /tmp/obj/devel/hyperscan/work/hyperscan-4.7.0/src/util/multibit.h:55,
from /tmp/obj/devel/hyperscan/work/hyperscan-4.7.0/src/stream_compress.c:34:
/tmp/obj/devel/hyperscan/work/hyperscan-4.7.0/src/util/popcount.h:54:5: note: previous definition of 'popcount64' was here
u32 popcount64(u64a x) {
^
In file included from /tmp/obj/devel/hyperscan/work/hyperscan-4.7.0/src/util/bitutils.h:37:0,
from /tmp/obj/devel/hyperscan/work/hyperscan-4.7.0/src/nfa/vermicelli.h:36,
from /tmp/obj/devel/hyperscan/work/hyperscan-4.7.0/src/nfa/nfa_rev_api.h:38,
from /tmp/obj/devel/hyperscan/work/hyperscan-4.7.0/src/runtime.c:45:
/tmp/obj/devel/hyperscan/work/hyperscan-4.7.0/src/util/popcount.h:40:5: error: static declaration of 'popcount32' follows non-static declaration
u32 popcount32(u32 x) {
^
In file included from /usr/include/string.h:98:0, from /tmp/obj/devel/hyperscan/work/hyperscan-4.7.0/src/runtime.c:34:
/usr/include/strings.h:60:14: note: previous declaration of 'popcount32' was here
unsigned int popcount32(__uint32_t) __constfunc;
^
>How-To-Repeat:
cd /usr/pkgsrc/devel/hyperscan
make
>Fix:
N/A.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Sun, 03 Jun 2018 20:15:19 +0000
State-Changed-Why:
Does the following committed by <joerg> help?:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/hyperscan/Makefile \
pkgsrc/devel/hyperscan/PLIST pkgsrc/devel/hyperscan/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/hyperscan/patches/patch-CMakeLists.txt
cvs rdiff -u -r0 -r1.1 \
pkgsrc/devel/hyperscan/patches/patch-src_util_popcount.h
Thank you!
State-Changed-From-To: feedback->closed
State-Changed-By: alnsn@NetBSD.org
State-Changed-When: Sun, 03 Jun 2018 20:31:47 +0000
State-Changed-Why:
Fixed.
>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.