From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 4/4] package/thrift: add dependency on host-autoconf-archive
Date: Tue, 07 Apr 2015 01:15:52 +0200 [thread overview]
Message-ID: <552313A8.4020207@mind.be> (raw)
In-Reply-To: <1428339450-2158-4-git-send-email-romain.naour@openwide.fr>
On 06/04/15 18:57, Romain Naour wrote:
> The ax_cxx_compile_stdcxx_11 macro bundled in thrift package is
> brocken and out of date.
> Remove it and use the one provided by autoconf-archive package.
>
> Related to:
> [thrift]
> http://autobuild.buildroot.net/results/21e/21e3fff1e0d714f94ac7e621289d1a59bc02a05f/build-end.log
> [host-thrift]
> http://autobuild.buildroot.net/results/b89/b89ffc2bff699eb10bb6abd92369a43d4900354d/build-end.log
I fail to see what this really fixes... For both build failures, it failed
before this patch and it still fails after it... and it should fail since these
compilers indeed are not fully C++11 compliant (missing virtual overrides which
were added in gcc 4.7).
Oh, I get it, it will now fail consistently, instead of failing depending on
whether host-autoconf-archive has been installed or not...
But the stupid thing is, the build does succeed with these non-conforming
compilers, because thrift actually doesn't use that particular feature...
So perhaps it's better to patch configure.ac and ax_cxx_compile_stdcxx_11.m4 to
give the macro a different name, so that we can still compile thrift with gcc 4.5.
Still...
>
> Signed-off-by: Romain Naour <romain.naour@openwide.fr>
> ---
> Now thrift will fail with non C++11 capable toolchains:
> checking whether /home/naourr/git/buildroot/test/thrift/host/usr/bin/powerpc-linux-gnu-g++ supports C++11 features by default... no
> checking whether /home/naourr/git/buildroot/test/thrift/host/usr/bin/powerpc-linux-gnu-g++ supports C++11 features with -std=c++11... no
> checking whether /home/naourr/git/buildroot/test/thrift/host/usr/bin/powerpc-linux-gnu-g++ supports C++11 features with -std=c++0x... no
> ---
> .../0005-aclocal-remove-c-11-check-macro.patch | 158 +++++++++++++++++++++
> package/thrift/thrift.mk | 4 +-
> 2 files changed, 160 insertions(+), 2 deletions(-)
> create mode 100644 package/thrift/0005-aclocal-remove-c-11-check-macro.patch
>
> diff --git a/package/thrift/0005-aclocal-remove-c-11-check-macro.patch b/package/thrift/0005-aclocal-remove-c-11-check-macro.patch
> new file mode 100644
> index 0000000..19c0c86
> --- /dev/null
> +++ b/package/thrift/0005-aclocal-remove-c-11-check-macro.patch
> @@ -0,0 +1,158 @@
> +From bffbd147b123782fe0112f3672ba621d755eb706 Mon Sep 17 00:00:00 2001
> +From: Romain Naour <romain.naour@openwide.fr>
> +Date: Mon, 6 Apr 2015 18:35:12 +0200
> +Subject: [PATCH] aclocal: remove c++11 check macro
> +
> +The ax_cxx_compile_stdcxx_11 macro is brocken and out of date.
> +
> +Remove it and use the one provided by autoconf-archive package.
This is not needed, autoreconf will pick up the newer version automatically.
[snip]
> diff --git a/package/thrift/thrift.mk b/package/thrift/thrift.mk
> index 409b04d..5d4c515 100644
> --- a/package/thrift/thrift.mk
> +++ b/package/thrift/thrift.mk
> @@ -8,8 +8,8 @@ THRIFT_VERSION = 0.9.2
> THRIFT_SITE = http://www.us.apache.org/dist/thrift/$(THRIFT_VERSION)
> THRIFT_DEPENDENCIES = host-pkgconf host-thrift boost libevent openssl zlib
Missing dependency on host-autoconf-archive here.
Regards,
Arnout
> THRIFT_INSTALL_STAGING = YES
> -HOST_THRIFT_DEPENDENCIES = host-bison host-boost host-flex host-libevent \
> - host-openssl host-pkgconf host-zlib
> +HOST_THRIFT_DEPENDENCIES = host-autoconf-archive host-bison host-boost \
> + host-flex host-libevent host-openssl host-pkgconf host-zlib
>
> THRIFT_CONF_OPTS = --with-sysroot=$(STAGING_DIR) \
> --with-boost \
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2015-04-06 23:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-06 16:57 [Buildroot] [PATCH 1/4] package/thrift: reorders alphabetically the dependencies Romain Naour
2015-04-06 16:57 ` [Buildroot] [PATCH 2/4] package/thrift: fix libtool warning Romain Naour
2015-04-06 20:14 ` Arnout Vandecappelle
2015-04-06 20:43 ` Romain Naour
2015-04-06 21:28 ` Thomas Petazzoni
2015-04-06 16:57 ` [Buildroot] [PATCH 3/4] package/autoconf-archive: bump to version v2015.02.24 Romain Naour
2015-04-06 23:18 ` Arnout Vandecappelle
2015-04-07 20:22 ` Thomas Petazzoni
2015-04-06 16:57 ` [Buildroot] [PATCH 4/4] package/thrift: add dependency on host-autoconf-archive Romain Naour
2015-04-06 23:15 ` Arnout Vandecappelle [this message]
2015-04-08 20:18 ` Romain Naour
2015-04-06 20:08 ` [Buildroot] [PATCH 1/4] package/thrift: reorders alphabetically the dependencies Arnout Vandecappelle
2015-04-06 21:25 ` Thomas Petazzoni
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=552313A8.4020207@mind.be \
--to=arnout@mind.be \
--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