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:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 08 15:35:00 +0000 2019
>Closed-Date:    Fri Jul 23 07:35:10 +0000 2021
>Last-Modified:  Fri Jul 23 07:35:10 +0000 2021
>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:

>Release-Note:

>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


State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 19 Jul 2021 04:30:36 +0000
State-Changed-Why:
is this still current? both boost and clang have changed a bit in two years


State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 21 Jul 2021 19:36:16 +0000
State-Changed-Why:
submitter can't test, but surely someone else can...
(requires base clang and enough machine horsepower to build boost without
dying horribly)

there are no recent bulk builds with base clang; the macos builds do not
report boost failing but this does not tell us a great deal about netbsd
base clang.


From: Tobias Nygren <tnn@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54446 (devel/boost-libs fails to build with clang)
Date: Wed, 21 Jul 2021 21:42:44 +0200

 > submitter can't test, but surely someone else can...

 Works for me.

 tnn@t3610:tnn> uname -smr
 NetBSD 9.99.86 amd64
 tnn@t3610:tnn> /usr/bin/clang -v
 clang version 13.0.0 (git@github.com:llvm/llvm-project.git 955f12589940634acc6c9901e8b25534808f691c)
 Target: x86_64-unknown-netbsd
 Thread model: posix
 InstalledDir: /usr/bin
 tnn@t3610:tnn> pkg_info |grep boost-libs
 boost-libs-1.76.0   Free, peer-reviewed portable C++ source libraries (binary libraries)

State-Changed-From-To: open->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Fri, 23 Jul 2021 07:35:10 +0000
State-Changed-Why:
tnn@ says it works


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