From: Romain Naour <romain.naour@openwide.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 4/4] package/thrift: add dependency on host-autoconf-archive
Date: Wed, 08 Apr 2015 22:18:48 +0200 [thread overview]
Message-ID: <55258D28.60201@openwide.fr> (raw)
In-Reply-To: <552313A8.4020207@mind.be>
Hi Arnout,
Le 07/04/2015 01:15, Arnout Vandecappelle a ?crit :
> 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...
I added a link to the macro bug report for v2 to explain the issue.
http://savannah.gnu.org/patch/index.php?8287
>
> 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.
The macro accept a second argument to make C++11 optional:
AX_CXX_COMPILE_STDCXX_11([noext], [optional])
Thrift build fine but produce lot of warning about anonymous variadic macros but
it just for some debug macro:
#define T_DEBUG(format_string,...)
"warning: anonymous variadic macros were introduced in C99"
And some warning about the use of --std=c++0x (C++03) long long which is
available in gcc 4.5.
"warning: use of C++0x long long integer constant"
At least, it seems to be safe to make C++11 optional and use C++03 for this
release...
>
> Still...
>
[snip]
>> +
>> +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.
OK
>
> [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.
Ok
Best regards,
Romain
>
>
> Regards,
> Arnout
>
>
next prev parent reply other threads:[~2015-04-08 20:18 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
2015-04-08 20:18 ` Romain Naour [this message]
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=55258D28.60201@openwide.fr \
--to=romain.naour@openwide.fr \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.