pkgsrc-Users archive

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

Re: Build failure for devel/boost-libs



On Tue, 8 Oct 2019, Paul Goyette wrote:

I'm getting a build error when building devel/boost-libs.

* Running on an amd64 host, running NetBSD 9.99.15
* My pkgsrc is updated to just a couple hours ago
* Building in a completely empty sandbox (as created by
 sysutils/mksandbox)

The log file shows:

<snip>

And Joerg Sonnenberger replied:

You are missing the actual error, which likely happened much earlier.

I have re-updated my pkgsrc (just to be sure!), so I'm up-to-date as of
2019-10-09 at 18:29:18 UTC (just a few minutes ago).  The first set of
errors seems to be a bunch of "invalid static_cast" related to event-
queue stuff:

...
gcc.compile.c++ bin.v2/libs/log/build/gcc-7.4.0/release/threadapi-pthread/threading-multi/visibility-hidden/syslog_backend.o
In file included from /usr/include/stddef.h:37:0,
                 from /usr/include/g++/cstddef:50,
                 from ./boost/config/compiler/gcc.hpp:165,
                 from ./boost/config.hpp:39,
                 from ./boost/log/detail/config.hpp:34,
                 from libs/log/src/syslog_backend.cpp:18:
./boost/asio/detail/impl/kqueue_reactor.ipp: In constructor 'boost::asio::detail::kqueue_reactor::kqueue_reactor(boost::asio::execution_context&)':
./boost/asio/detail/impl/kqueue_reactor.ipp:32:5: error: invalid static_cast from type 'intptr_t {aka long int}' to type 'void*'
     EV_SET(ev, ident, filt, flags, fflags, data, \
     ^
./boost/asio/detail/impl/kqueue_reactor.ipp:54:3: note: in expansion of macro 'BOOST_ASIO_KQUEUE_EV_SET'
   BOOST_ASIO_KQUEUE_EV_SET(&events[0], interrupter_.read_descriptor(),
   ^~~~~~~~~~~~~~~~~~~~~~~~
./boost/asio/detail/impl/kqueue_reactor.ipp: In member function 'virtual void boost::asio::detail::kqueue_reactor::notify_fork(boost::asio::execution_context::fork_event)':
./boost/asio/detail/impl/kqueue_reactor.ipp:32:5: error: invalid static_cast from type 'intptr_t {aka long int}' to type 'void*'
     EV_SET(ev, ident, filt, flags, fflags, data, \
     ^
./boost/asio/detail/impl/kqueue_reactor.ipp:102:5: note: in expansion of macro 'BOOST_ASIO_KQUEUE_EV_SET'
     BOOST_ASIO_KQUEUE_EV_SET(&events[0], interrupter_.read_descriptor(),
     ^~~~~~~~~~~~~~~~~~~~~~~~
./boost/asio/detail/impl/kqueue_reactor.ipp:32:5: error: invalid static_cast from type 'intptr_t {aka long int}' to type 'void*'
     EV_SET(ev, ident, filt, flags, fflags, data, \
     ^
./boost/asio/detail/impl/kqueue_reactor.ipp:118:9: note: in expansion of macro 'BOOST_ASIO_KQUEUE_EV_SET'
         BOOST_ASIO_KQUEUE_EV_SET(&events[0], state->descriptor_,
         ^~~~~~~~~~~~~~~~~~~~~~~~
./boost/asio/detail/impl/kqueue_reactor.ipp:32:5: error: invalid static_cast from type 'intptr_t {aka long int}' to type 'void*'
     EV_SET(ev, ident, filt, flags, fflags, data, \
     ^
./boost/asio/detail/impl/kqueue_reactor.ipp:120:9: note: in expansion of macro 'BOOST_ASIO_KQUEUE_EV_SET'
         BOOST_ASIO_KQUEUE_EV_SET(&events[1], state->descriptor_,
         ^~~~~~~~~~~~~~~~~~~~~~~~
./boost/asio/detail/impl/kqueue_reactor.ipp: In member function 'int boost::asio::detail::kqueue_reactor::register_internal_descriptor(int, boost::asio::detail::socket_type, boost::asio::detail::kqueue_reactor::descriptor_state*&, boost::asio::detail::reactor_op*)':
./boost/asio/detail/impl/kqueue_reactor.ipp:32:5: error: invalid static_cast from type 'intptr_t {aka long int}' to type 'void*'
     EV_SET(ev, ident, filt, flags, fflags, data, \
     ^
./boost/asio/detail/impl/kqueue_reactor.ipp:174:3: note: in expansion of macro 'BOOST_ASIO_KQUEUE_EV_SET'
   BOOST_ASIO_KQUEUE_EV_SET(&events[0], descriptor, EVFILT_READ,
   ^~~~~~~~~~~~~~~~~~~~~~~~
./boost/asio/detail/impl/kqueue_reactor.ipp: In member function 'void boost::asio::detail::kqueue_reactor::start_op(int, boost::asio::detail::socket_type, boost::asio::detail::kqueue_reactor::descriptor_state*&, boost::asio::detail::reactor_op*, bool, bool)':
./boost/asio/detail/impl/kqueue_reactor.ipp:32:5: error: invalid static_cast from type 'intptr_t {aka long int}' to type 'void*'
     EV_SET(ev, ident, filt, flags, fflags, data, \
     ^
./boost/asio/detail/impl/kqueue_reactor.ipp:227:9: note: in expansion of macro 'BOOST_ASIO_KQUEUE_EV_SET'
         BOOST_ASIO_KQUEUE_EV_SET(&events[0], descriptor, EVFILT_READ,
         ^~~~~~~~~~~~~~~~~~~~~~~~
./boost/asio/detail/impl/kqueue_reactor.ipp:32:5: error: invalid static_cast from type 'intptr_t {aka long int}' to type 'void*'
     EV_SET(ev, ident, filt, flags, fflags, data, \
     ^
./boost/asio/detail/impl/kqueue_reactor.ipp:229:9: note: in expansion of macro 'BOOST_ASIO_KQUEUE_EV_SET'
         BOOST_ASIO_KQUEUE_EV_SET(&events[1], descriptor, EVFILT_WRITE,
         ^~~~~~~~~~~~~~~~~~~~~~~~
./boost/asio/detail/impl/kqueue_reactor.ipp:32:5: error: invalid static_cast from type 'intptr_t {aka long int}' to type 'void*'
     EV_SET(ev, ident, filt, flags, fflags, data, \
     ^
./boost/asio/detail/impl/kqueue_reactor.ipp:250:7: note: in expansion of macro 'BOOST_ASIO_KQUEUE_EV_SET'
       BOOST_ASIO_KQUEUE_EV_SET(&events[0], descriptor, EVFILT_READ,
       ^~~~~~~~~~~~~~~~~~~~~~~~
./boost/asio/detail/impl/kqueue_reactor.ipp:32:5: error: invalid static_cast from type 'intptr_t {aka long int}' to type 'void*'
     EV_SET(ev, ident, filt, flags, fflags, data, \
     ^
./boost/asio/detail/impl/kqueue_reactor.ipp:252:7: note: in expansion of macro 'BOOST_ASIO_KQUEUE_EV_SET'
       BOOST_ASIO_KQUEUE_EV_SET(&events[1], descriptor, EVFILT_WRITE,
       ^~~~~~~~~~~~~~~~~~~~~~~~
...


If desired, I can post (or unicast) the entire 270kB log file for
further investigation.


+--------------------+--------------------------+-----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost     |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost   |
+--------------------+--------------------------+-----------------------+


Home | Main Index | Thread Index | Old Index