pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/54446: devel/boost-libs fails to build with clang



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



Home | Main Index | Thread Index | Old Index