NetBSD Problem Report #54446

From www@netbsd.org  Thu Aug  8 15:30:45 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 EE9AF7A15F
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  8 Aug 2019 15:30:44 +0000 (UTC)
Message-Id: <20190808153043.91DE57A1E1@mollari.NetBSD.org>
Date: Thu,  8 Aug 2019 15:30:43 +0000 (UTC)
From: ng0@n0.is
Reply-To: ng0@n0.is
To: gnats-bugs@NetBSD.org
Subject: devel/boost-libs fails to build with clang
X-Send-Pr-Version: www-1.0

>Number:         54446
>Category:       pkg
>Synopsis:       devel/boost-libs fails to build with clang
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 08 15:35:00 +0000 2019
>Last-Modified:  Fri Aug 09 22:55:01 +0000 2019
>Originator:     ng0
>Release:        current
>Organization:
>Environment:
NetBSD uptimegirl 9.99.4 NetBSD 9.99.4 (GENERIC) amd64

>Description:
devel/boost-libs fails to build with these errors visible in the scrollback:


In file included from libs/log/src/core.cpp:47:
In file included from libs/log/src/default_sink.hpp:26:
In file included from ./boost/log/trivial.hpp:23:
In file included from ./boost/log/sources/record_ostream.hpp:31:
./boost/core/uncaught_exceptions.hpp:70:30: error: exception specification in declaration does not match previous declaration
extern "C" __cxa_eh_globals* __cxa_get_globals() BOOST_NOEXCEPT_OR_NOTHROW __attribute__((__const__));
                             ^
/usr/include/c++/cxxabi.h:190:19: note: previous declaration is here
__cxa_eh_globals *__cxa_get_globals(void);
                  ^
1 error generated.

  "clang++" -c -x c++ -fvisibility-inlines-hidden -m64 -pthread -O3 -Wall -fvisibility=hidden -Wno-inline -Wno-bind-to-temporary-copy -Wno-unused-function -ftemplate-depth-1024 -std=c++11 -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_STATIC_LINK=1 -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_HAS_ICU=1 -DBOOST_LOG_BUILDING_THE_LIB=1 -DBOOST_LOG_USE_AVX2 -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_USE_SSSE3 -DBOOST_LOG_WITHOUT_DEBUG_OUTPUT -DBOOST_LOG_WITHOUT_EVENT_LOG -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_LIB=1 -DDATE_TIME_INLINE -DNDEBUG -D__STDC_CONSTANT_MACROS -I"." -I"/usr/pkg/include" -I"libs/log/src" -o "bin.v2/libs/log/build/clang-linux-7.0.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/core.o" "libs/log/src/core.cpp"

...failed clang-linux.compile.c++.without-pch bin.v2/libs/log/build/clang-linux-7.0.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/core.o...
clang-linux.compile.c++.without-pch bin.v2/libs/log/build/clang-linux-7.0.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/record_ostream.o
In file included from libs/log/src/record_ostream.cpp:19:
In file included from ./boost/log/sources/record_ostream.hpp:31:
./boost/core/uncaught_exceptions.hpp:70:30: error: exception specification in declaration does not match previous declaration
extern "C" __cxa_eh_globals* __cxa_get_globals() BOOST_NOEXCEPT_OR_NOTHROW __attribute__((__const__));
                             ^
/usr/include/c++/cxxabi.h:190:19: note: previous declaration is here
__cxa_eh_globals *__cxa_get_globals(void);
                  ^
1 error generated.

  "clang++" -c -x c++ -fvisibility-inlines-hidden -m64 -pthread -O3 -Wall -fvisibility=hidden -Wno-inline -Wno-bind-to-temporary-copy -Wno-unused-function -ftemplate-depth-1024 -std=c++11 -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_STATIC_LINK=1 -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_HAS_ICU=1 -DBOOST_LOG_BUILDING_THE_LIB=1 -DBOOST_LOG_USE_AVX2 -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_USE_SSSE3 -DBOOST_LOG_WITHOUT_DEBUG_OUTPUT -DBOOST_LOG_WITHOUT_EVENT_LOG -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_LIB=1 -DDATE_TIME_INLINE -DNDEBUG -D__STDC_CONSTANT_MACROS -I"." -I"/usr/pkg/include" -I"libs/log/src" -o "bin.v2/libs/log/build/clang-linux-7.0.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/record_ostream.o" "libs/log/src/record_ostream.cpp"

...failed clang-linux.compile.c++.without-pch bin.v2/libs/log/build/clang-linux-7.0.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/record_ostream.o...



In file included from libs/log/src/default_sink.cpp:27:
In file included from libs/log/src/default_sink.hpp:26:
In file included from ./boost/log/trivial.hpp:23:
In file included from ./boost/log/sources/record_ostream.hpp:31:
./boost/core/uncaught_exceptions.hpp:70:30: error: exception specification in declaration does not match previous declaration
extern "C" __cxa_eh_globals* __cxa_get_globals() BOOST_NOEXCEPT_OR_NOTHROW __attribute__((__const__));
                             ^
/usr/include/c++/cxxabi.h:190:19: note: previous declaration is here
__cxa_eh_globals *__cxa_get_globals(void);
                  ^
1 error generated.

  "clang++" -c -x c++ -fvisibility-inlines-hidden -m64 -pthread -O3 -Wall -fvisibility=hidden -Wno-inline -Wno-bind-to-temporary-copy -Wno-unused-function -ftemplate-depth-1024 -std=c++11 -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_STATIC_LINK=1 -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_HAS_ICU=1 -DBOOST_LOG_BUILDING_THE_LIB=1 -DBOOST_LOG_USE_AVX2 -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_USE_SSSE3 -DBOOST_LOG_WITHOUT_DEBUG_OUTPUT -DBOOST_LOG_WITHOUT_EVENT_LOG -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_LIB=1 -DDATE_TIME_INLINE -DNDEBUG -D__STDC_CONSTANT_MACROS -I"." -I"/usr/pkg/include" -I"libs/log/src" -o "bin.v2/libs/log/build/clang-linux-7.0.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/default_sink.o" "libs/log/src/default_sink.cpp"

...failed clang-linux.compile.c++.without-pch bin.v2/libs/log/build/clang-linux-7.0.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/default_sink.o...



In file included from libs/log/src/trivial.cpp:22:
In file included from ./boost/log/trivial.hpp:23:
In file included from ./boost/log/sources/record_ostream.hpp:31:
./boost/core/uncaught_exceptions.hpp:70:30: error: exception specification in declaration does not match previous declaration
extern "C" __cxa_eh_globals* __cxa_get_globals() BOOST_NOEXCEPT_OR_NOTHROW __attribute__((__const__));
                             ^
/usr/include/c++/cxxabi.h:190:19: note: previous declaration is here
__cxa_eh_globals *__cxa_get_globals(void);
                  ^
1 error generated.

  "clang++" -c -x c++ -fvisibility-inlines-hidden -m64 -pthread -O3 -Wall -fvisibility=hidden -Wno-inline -Wno-bind-to-temporary-copy -Wno-unused-function -ftemplate-depth-1024 -std=c++11 -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_STATIC_LINK=1 -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_HAS_ICU=1 -DBOOST_LOG_BUILDING_THE_LIB=1 -DBOOST_LOG_USE_AVX2 -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_USE_SSSE3 -DBOOST_LOG_WITHOUT_DEBUG_OUTPUT -DBOOST_LOG_WITHOUT_EVENT_LOG -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_LIB=1 -DDATE_TIME_INLINE -DNDEBUG -D__STDC_CONSTANT_MACROS -I"." -I"/usr/pkg/include" -I"libs/log/src" -o "bin.v2/libs/log/build/clang-linux-7.0.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/trivial.o" "libs/log/src/trivial.cpp"

...failed clang-linux.compile.c++.without-pch bin.v2/libs/log/build/clang-linux-7.0.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/trivial.o...



In file included from libs/log/src/format_parser.cpp:25:
In file included from ./boost/log/detail/format.hpp:26:
./boost/core/uncaught_exceptions.hpp:70:30: error: exception specification in declaration does not match previous declaration
extern "C" __cxa_eh_globals* __cxa_get_globals() BOOST_NOEXCEPT_OR_NOTHROW __attribute__((__const__));
                             ^
/usr/include/c++/cxxabi.h:190:19: note: previous declaration is here
__cxa_eh_globals *__cxa_get_globals(void);
                  ^
1 error generated.

  "clang++" -c -x c++ -fvisibility-inlines-hidden -m64 -pthread -O3 -Wall -fvisibility=hidden -Wno-inline -Wno-bind-to-temporary-copy -Wno-unused-function -ftemplate-depth-1024 -std=c++11 -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_STATIC_LINK=1 -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_HAS_ICU=1 -DBOOST_LOG_BUILDING_THE_LIB=1 -DBOOST_LOG_USE_AVX2 -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_USE_SSSE3 -DBOOST_LOG_WITHOUT_DEBUG_OUTPUT -DBOOST_LOG_WITHOUT_EVENT_LOG -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_LIB=1 -DDATE_TIME_INLINE -DNDEBUG -D__STDC_CONSTANT_MACROS -I"." -I"/usr/pkg/include" -I"libs/log/src" -o "bin.v2/libs/log/build/clang-linux-7.0.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/format_parser.o" "libs/log/src/format_parser.cpp"

...failed clang-linux.compile.c++.without-pch bin.v2/libs/log/build/clang-linux-7.0.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/format_parser.o...




...failed updating 10 targets...
...skipped 13 targets...
...updated 1283 targets...
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/devel/boost-libs
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/boost-libs

>How-To-Repeat:

>Fix:

>Audit-Trail:
From: N <ng0@n0.is>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/54446
Date: Fri, 9 Aug 2019 22:51:03 +0000

 Hi,

 as requested, this is with

 boost-libs-1.70.0

NetBSD Home
NetBSD PR Database Search

(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.