* [Buildroot] [PATCH] webkit: Fix build issue with gcc-4.6 and above
@ 2012-10-04 21:26 Valentine Barshak
2012-10-09 22:54 ` Valentine Barshak
2012-10-13 9:41 ` Samuel Martin
0 siblings, 2 replies; 7+ messages in thread
From: Valentine Barshak @ 2012-10-04 21:26 UTC (permalink / raw)
To: buildroot
This fixes the "Unknown parameter for tags/attrs" build error.
Backported from commit 88e08c43d0200a4b06a298b7d2541965eebc0afe
[PATCH] 2011-04-17 Thierry Reding
<thierry.reding@avionic-design.de>
Reviewed by Adam Barth.
Fix build with GCC 4.6.
* dom/make_names.pl: Execute preprocessor without the -P option. The
preprocessor in GCC 4.6 eats empty lines, effectively breaking the
parsing performed by this script. Dropping the -P option when invoking
the preprocessor keeps the empty lines but as a side-effect also adds
additional linemarkers.
From the cpp manpage:
-P Inhibit generation of linemarkers in the output from the
preprocessor. This might be useful when running the preprocessor
on something that is not C code, and will be sent to a program
which might be confused by the linemarkers.
The linemarkers are not problematic, however, because the script
properly handles them by ignoring all lines starting with a #.
Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
---
package/webkit/webkit-fix-build-with-gcc-4-6.patch | 45 ++++++++++++++++++++++
1 file changed, 45 insertions(+)
create mode 100644 package/webkit/webkit-fix-build-with-gcc-4-6.patch
diff --git a/package/webkit/webkit-fix-build-with-gcc-4-6.patch b/package/webkit/webkit-fix-build-with-gcc-4-6.patch
new file mode 100644
index 0000000..15f32d9
--- /dev/null
+++ b/package/webkit/webkit-fix-build-with-gcc-4-6.patch
@@ -0,0 +1,45 @@
+Backported from commit 88e08c43d0200a4b06a298b7d2541965eebc0afe:
+Removed the ChangeLog part.
+
+From: "commit-queue at webkit.org"
+ <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
+Date: Mon, 18 Apr 2011 06:53:23 +0000
+Subject: [PATCH] 2011-04-17 Thierry Reding
+ <thierry.reding@avionic-design.de>
+
+ Reviewed by Adam Barth.
+
+ Fix build with GCC 4.6.
+
+ * dom/make_names.pl: Execute preprocessor without the -P option. The
+ preprocessor in GCC 4.6 eats empty lines, effectively breaking the
+ parsing performed by this script. Dropping the -P option when invoking
+ the preprocessor keeps the empty lines but as a side-effect also adds
+ additional linemarkers.
+
+ From the cpp manpage:
+
+ -P Inhibit generation of linemarkers in the output from the
+ preprocessor. This might be useful when running the preprocessor
+ on something that is not C code, and will be sent to a program
+ which might be confused by the linemarkers.
+
+ The linemarkers are not problematic, however, because the script
+ properly handles them by ignoring all lines starting with a #.
+
+diff --git a/WebCore/dom/make_names.pl b/Source/WebCore/dom/make_names.pl
+index 836137e..50386e0 100755
+--- a/WebCore/dom/make_names.pl
++++ b/WebCore/dom/make_names.pl
+@@ -54,7 +54,7 @@ if ($ENV{CC}) {
+ } else {
+ $gccLocation = "/usr/bin/gcc";
+ }
+-my $preprocessor = $gccLocation . " -E -P -x c++";
++my $preprocessor = $gccLocation . " -E -x c++";
+
+ GetOptions(
+ 'tags=s' => \$tagsFile,
+--
+1.7.11.4
+
--
1.7.11.4
^ permalink raw reply related [flat|nested] 7+ messages in thread* [Buildroot] [PATCH] webkit: Fix build issue with gcc-4.6 and above
2012-10-04 21:26 [Buildroot] [PATCH] webkit: Fix build issue with gcc-4.6 and above Valentine Barshak
@ 2012-10-09 22:54 ` Valentine Barshak
2012-10-10 5:21 ` Samuel Martin
2012-10-13 9:41 ` Samuel Martin
1 sibling, 1 reply; 7+ messages in thread
From: Valentine Barshak @ 2012-10-09 22:54 UTC (permalink / raw)
To: buildroot
On 10/05/2012 01:26 AM, Valentine Barshak wrote:
> This fixes the "Unknown parameter for tags/attrs" build error.
> Backported from commit 88e08c43d0200a4b06a298b7d2541965eebc0afe
>
> [PATCH] 2011-04-17 Thierry Reding
> <thierry.reding@avionic-design.de>
>
> Reviewed by Adam Barth.
>
> Fix build with GCC 4.6.
>
> * dom/make_names.pl: Execute preprocessor without the -P option. The
> preprocessor in GCC 4.6 eats empty lines, effectively breaking the
> parsing performed by this script. Dropping the -P option when invoking
> the preprocessor keeps the empty lines but as a side-effect also adds
> additional linemarkers.
>
> From the cpp manpage:
>
> -P Inhibit generation of linemarkers in the output from the
> preprocessor. This might be useful when running the preprocessor
> on something that is not C code, and will be sent to a program
> which might be confused by the linemarkers.
>
> The linemarkers are not problematic, however, because the script
> properly handles them by ignoring all lines starting with a #.
>
> Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
> ---
> package/webkit/webkit-fix-build-with-gcc-4-6.patch | 45 ++++++++++++++++++++++
> 1 file changed, 45 insertions(+)
> create mode 100644 package/webkit/webkit-fix-build-with-gcc-4-6.patch
>
> diff --git a/package/webkit/webkit-fix-build-with-gcc-4-6.patch b/package/webkit/webkit-fix-build-with-gcc-4-6.patch
> new file mode 100644
> index 0000000..15f32d9
> --- /dev/null
> +++ b/package/webkit/webkit-fix-build-with-gcc-4-6.patch
> @@ -0,0 +1,45 @@
> +Backported from commit 88e08c43d0200a4b06a298b7d2541965eebc0afe:
> +Removed the ChangeLog part.
> +
> +From: "commit-queue at webkit.org"
> + <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
> +Date: Mon, 18 Apr 2011 06:53:23 +0000
> +Subject: [PATCH] 2011-04-17 Thierry Reding
> + <thierry.reding@avionic-design.de>
> +
> + Reviewed by Adam Barth.
> +
> + Fix build with GCC 4.6.
> +
> + * dom/make_names.pl: Execute preprocessor without the -P option. The
> + preprocessor in GCC 4.6 eats empty lines, effectively breaking the
> + parsing performed by this script. Dropping the -P option when invoking
> + the preprocessor keeps the empty lines but as a side-effect also adds
> + additional linemarkers.
> +
> + From the cpp manpage:
> +
> + -P Inhibit generation of linemarkers in the output from the
> + preprocessor. This might be useful when running the preprocessor
> + on something that is not C code, and will be sent to a program
> + which might be confused by the linemarkers.
> +
> + The linemarkers are not problematic, however, because the script
> + properly handles them by ignoring all lines starting with a #.
> +
> +diff --git a/WebCore/dom/make_names.pl b/Source/WebCore/dom/make_names.pl
> +index 836137e..50386e0 100755
> +--- a/WebCore/dom/make_names.pl
> ++++ b/WebCore/dom/make_names.pl
> +@@ -54,7 +54,7 @@ if ($ENV{CC}) {
> + } else {
> + $gccLocation = "/usr/bin/gcc";
> + }
> +-my $preprocessor = $gccLocation . " -E -P -x c++";
> ++my $preprocessor = $gccLocation . " -E -x c++";
> +
> + GetOptions(
> + 'tags=s' => \$tagsFile,
> +--
> +1.7.11.4
> +
>
Is this change OK?
I'm building on Fedora 17, using host gcc 4.7.2, and webkit doesn't
build for me without this patch.
Thanks,
Val.
^ permalink raw reply [flat|nested] 7+ messages in thread* [Buildroot] [PATCH] webkit: Fix build issue with gcc-4.6 and above
2012-10-09 22:54 ` Valentine Barshak
@ 2012-10-10 5:21 ` Samuel Martin
0 siblings, 0 replies; 7+ messages in thread
From: Samuel Martin @ 2012-10-10 5:21 UTC (permalink / raw)
To: buildroot
Hi Val,
2012/10/10 Valentine Barshak <gvaxon@gmail.com>:
>
> Is this change OK?
> I'm building on Fedora 17, using host gcc 4.7.2, and webkit doesn't build
> for me without this patch.
>
I think this will fix the Webkit issue I got when I was trying the
gettext patch set some weeks ago... but I didn't dig into it.
I'll give it a try as soon as I can.
Thanks,
--
Sam
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH] webkit: Fix build issue with gcc-4.6 and above
2012-10-04 21:26 [Buildroot] [PATCH] webkit: Fix build issue with gcc-4.6 and above Valentine Barshak
2012-10-09 22:54 ` Valentine Barshak
@ 2012-10-13 9:41 ` Samuel Martin
2012-10-15 13:48 ` Valentine Barshak
2012-10-15 13:51 ` [Buildroot] [PATCH v2] " Valentine Barshak
1 sibling, 2 replies; 7+ messages in thread
From: Samuel Martin @ 2012-10-13 9:41 UTC (permalink / raw)
To: buildroot
Hi Val, all,
Tested using gcc-4.{6,7}-based toolchain.
My comments inlined.
2012/10/4 Valentine Barshak <gvaxon@gmail.com>:
> This fixes the "Unknown parameter for tags/attrs" build error.
> Backported from commit 88e08c43d0200a4b06a298b7d2541965eebc0afe
>
> [PATCH] 2011-04-17 Thierry Reding
> <thierry.reding@avionic-design.de>
>
> Reviewed by Adam Barth.
>
> Fix build with GCC 4.6.
>
> * dom/make_names.pl: Execute preprocessor without the -P option. The
> preprocessor in GCC 4.6 eats empty lines, effectively breaking the
> parsing performed by this script. Dropping the -P option when invoking
> the preprocessor keeps the empty lines but as a side-effect also adds
> additional linemarkers.
>
> From the cpp manpage:
>
> -P Inhibit generation of linemarkers in the output from the
> preprocessor. This might be useful when running the preprocessor
> on something that is not C code, and will be sent to a program
> which might be confused by the linemarkers.
>
> The linemarkers are not problematic, however, because the script
> properly handles them by ignoring all lines starting with a #.
>
> Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
Tested-by: Samuel Martin <s.martin49@gmail.com>
Acked-by: Samuel Martin <s.martin49@gmail.com>
[...]
> + The linemarkers are not problematic, however, because the script
> + properly handles them by ignoring all lines starting with a #.
> +
> +diff --git a/WebCore/dom/make_names.pl b/Source/WebCore/dom/make_names.pl
Nitpicking:
s at Source/@@
Regards,
--
Sam
^ permalink raw reply [flat|nested] 7+ messages in thread* [Buildroot] [PATCH] webkit: Fix build issue with gcc-4.6 and above
2012-10-13 9:41 ` Samuel Martin
@ 2012-10-15 13:48 ` Valentine Barshak
2012-10-15 13:51 ` [Buildroot] [PATCH v2] " Valentine Barshak
1 sibling, 0 replies; 7+ messages in thread
From: Valentine Barshak @ 2012-10-15 13:48 UTC (permalink / raw)
To: buildroot
On 10/13/2012 01:41 PM, Samuel Martin wrote:
> Hi Val, all,
>
> Tested using gcc-4.{6,7}-based toolchain.
>
> My comments inlined.
>
> 2012/10/4 Valentine Barshak <gvaxon@gmail.com>:
>> This fixes the "Unknown parameter for tags/attrs" build error.
>> Backported from commit 88e08c43d0200a4b06a298b7d2541965eebc0afe
>>
>> [PATCH] 2011-04-17 Thierry Reding
>> <thierry.reding@avionic-design.de>
>>
>> Reviewed by Adam Barth.
>>
>> Fix build with GCC 4.6.
>>
>> * dom/make_names.pl: Execute preprocessor without the -P option. The
>> preprocessor in GCC 4.6 eats empty lines, effectively breaking the
>> parsing performed by this script. Dropping the -P option when invoking
>> the preprocessor keeps the empty lines but as a side-effect also adds
>> additional linemarkers.
>>
>> From the cpp manpage:
>>
>> -P Inhibit generation of linemarkers in the output from the
>> preprocessor. This might be useful when running the preprocessor
>> on something that is not C code, and will be sent to a program
>> which might be confused by the linemarkers.
>>
>> The linemarkers are not problematic, however, because the script
>> properly handles them by ignoring all lines starting with a #.
>>
>> Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
> Tested-by: Samuel Martin <s.martin49@gmail.com>
> Acked-by: Samuel Martin <s.martin49@gmail.com>
>
> [...]
>> + The linemarkers are not problematic, however, because the script
>> + properly handles them by ignoring all lines starting with a #.
>> +
>> +diff --git a/WebCore/dom/make_names.pl b/Source/WebCore/dom/make_names.pl
> Nitpicking:
> s at Source/@@
>
Thanks, Samuel!
Regards,
Val
^ permalink raw reply [flat|nested] 7+ messages in thread* [Buildroot] [PATCH v2] webkit: Fix build issue with gcc-4.6 and above
2012-10-13 9:41 ` Samuel Martin
2012-10-15 13:48 ` Valentine Barshak
@ 2012-10-15 13:51 ` Valentine Barshak
2012-10-21 19:23 ` Peter Korsgaard
1 sibling, 1 reply; 7+ messages in thread
From: Valentine Barshak @ 2012-10-15 13:51 UTC (permalink / raw)
To: buildroot
This fixes the "Unknown parameter for tags/attrs" build error.
Backported from commit 88e08c43d0200a4b06a298b7d2541965eebc0afe
[PATCH] 2011-04-17 Thierry Reding
<thierry.reding@avionic-design.de>
Reviewed by Adam Barth.
Fix build with GCC 4.6.
* dom/make_names.pl: Execute preprocessor without the -P option. The
preprocessor in GCC 4.6 eats empty lines, effectively breaking the
parsing performed by this script. Dropping the -P option when invoking
the preprocessor keeps the empty lines but as a side-effect also adds
additional linemarkers.
From the cpp manpage:
-P Inhibit generation of linemarkers in the output from the
preprocessor. This might be useful when running the preprocessor
on something that is not C code, and will be sent to a program
which might be confused by the linemarkers.
The linemarkers are not problematic, however, because the script
properly handles them by ignoring all lines starting with a #.
Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
---
package/webkit/webkit-fix-build-with-gcc-4-6.patch | 45 ++++++++++++++++++++++
1 file changed, 45 insertions(+)
create mode 100644 package/webkit/webkit-fix-build-with-gcc-4-6.patch
diff --git a/package/webkit/webkit-fix-build-with-gcc-4-6.patch b/package/webkit/webkit-fix-build-with-gcc-4-6.patch
new file mode 100644
index 0000000..181c7f5
--- /dev/null
+++ b/package/webkit/webkit-fix-build-with-gcc-4-6.patch
@@ -0,0 +1,45 @@
+Backported from commit 88e08c43d0200a4b06a298b7d2541965eebc0afe:
+Removed the ChangeLog part.
+
+From: "commit-queue at webkit.org"
+ <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
+Date: Mon, 18 Apr 2011 06:53:23 +0000
+Subject: [PATCH] 2011-04-17 Thierry Reding
+ <thierry.reding@avionic-design.de>
+
+ Reviewed by Adam Barth.
+
+ Fix build with GCC 4.6.
+
+ * dom/make_names.pl: Execute preprocessor without the -P option. The
+ preprocessor in GCC 4.6 eats empty lines, effectively breaking the
+ parsing performed by this script. Dropping the -P option when invoking
+ the preprocessor keeps the empty lines but as a side-effect also adds
+ additional linemarkers.
+
+ From the cpp manpage:
+
+ -P Inhibit generation of linemarkers in the output from the
+ preprocessor. This might be useful when running the preprocessor
+ on something that is not C code, and will be sent to a program
+ which might be confused by the linemarkers.
+
+ The linemarkers are not problematic, however, because the script
+ properly handles them by ignoring all lines starting with a #.
+
+diff --git a/WebCore/dom/make_names.pl b/WebCore/dom/make_names.pl
+index 836137e..50386e0 100755
+--- a/WebCore/dom/make_names.pl
++++ b/WebCore/dom/make_names.pl
+@@ -54,7 +54,7 @@ if ($ENV{CC}) {
+ } else {
+ $gccLocation = "/usr/bin/gcc";
+ }
+-my $preprocessor = $gccLocation . " -E -P -x c++";
++my $preprocessor = $gccLocation . " -E -x c++";
+
+ GetOptions(
+ 'tags=s' => \$tagsFile,
+--
+1.7.11.4
+
--
1.7.11.7
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-10-21 19:23 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-04 21:26 [Buildroot] [PATCH] webkit: Fix build issue with gcc-4.6 and above Valentine Barshak
2012-10-09 22:54 ` Valentine Barshak
2012-10-10 5:21 ` Samuel Martin
2012-10-13 9:41 ` Samuel Martin
2012-10-15 13:48 ` Valentine Barshak
2012-10-15 13:51 ` [Buildroot] [PATCH v2] " Valentine Barshak
2012-10-21 19:23 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox