From: Peter Seiderer <ps.report@gmx.net>
To: buildroot@busybox.net
Subject: [Buildroot] [autobuild.buildroot.net] Build results for 2018-05-17
Date: Fri, 18 May 2018 19:45:12 +0200 [thread overview]
Message-ID: <20180518194512.1acb5de3@gmx.net> (raw)
In-Reply-To: <20180518060019.6D04C207AC@mail.bootlin.com>
Hello,
On Fri, 18 May 2018 08:00:19 +0200 (CEST), Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:
> Hello,
>
> Build statistics for 2018-05-17
> ===============================
[...]
> Results for branch 'master'
> ===========================
> powerpc | log4cplus-2.0.0 | NOK | http://autobuild.buildroot.net/results/61de5206016437174cbd269eb74aafaf0446862f |
The first error is:
src/connectorthread.cxx: In member function 'virtual void log4cplus::helpers::ConnectorThread::run()':
src/connectorthread.cxx:92:13: error: 'sleep_for' is not a member of 'std::this_thread'
with the given toolchain:
BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/powerpc-ctng_e500v2-linux-gnuspe.tar.xz"
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="powerpc-ctng_e500v2-linux-gnuspe"
BR2_TOOLCHAIN_EXTERNAL_GCC_4_7=y
which can be worked around by ([1], [2]):
diff --git a/package/log4cplus/log4cplus.mk b/package/log4cplus/log4cplus.mk
index 890d2ee8f5..241e10a14f 100644
--- a/package/log4cplus/log4cplus.mk
+++ b/package/log4cplus/log4cplus.mk
@@ -11,4 +11,6 @@ LOG4CPLUS_LICENSE = Apache-2.0, BSD-2-Clause, BSD-like (threadpool)
LOG4CPLUS_LICENSE_FILES = LICENSE
LOG4CPLUS_INSTALL_STAGING = YES
+LOG4CPLUS_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -D_GLIBCXX_USE_NANOSLEEP"
+
$(eval $(autotools-package))
The next error is:
src/hierarchy.cxx: In member function 'log4cplus::Logger log4cplus::Hierarchy::getInstanceImpl(const tstring&, log4cplus::spi::LoggerFactory&)':
src/hierarchy.cxx:291:36: error: 'log4cplus::Hierarchy::LoggerMap' has no member named 'emplace'
which is std::map::emplace, according to [3] not available in gcc-4.7, but from
gcc-4.8 on wards...
What to do? Bump existing BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 dependency to
BR2_TOOLCHAIN_GCC_AT_LEAST_4_8?
Regards,
Peter
[1] https://stackoverflow.com/questions/4438084/stdthis-threadsleep-for-and-gcc
[2] https://stackoverflow.com/questions/12523122/what-is-glibcxx-use-nanosleep-all-about
[3] https://stackoverflow.com/questions/24389014/stdmap-emplace-gcc-4-8-2
next prev parent reply other threads:[~2018-05-18 17:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-18 6:00 [Buildroot] [autobuild.buildroot.net] Build results for 2018-05-17 Thomas Petazzoni
2018-05-18 17:45 ` Peter Seiderer [this message]
2018-05-25 17:13 ` Fabrice Fontaine
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180518194512.1acb5de3@gmx.net \
--to=ps.report@gmx.net \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox