All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bison: fix the parallel build
@ 2020-05-14  7:39 Yu, Mingli
  2020-05-14  7:55 ` [OE-core] " Jacob Kroon
  0 siblings, 1 reply; 6+ messages in thread
From: Yu, Mingli @ 2020-05-14  7:39 UTC (permalink / raw)
  To: openembedded-core

From: Mingli Yu <mingli.yu@windriver.com>

Explicitly make the BUILT_SOURCES which
are the generated headers such as stdio.h,
fcntl.h and etc to be the dependencies of
the gl_LIBOBJS such as libbison_a-sprintf.o,
libbison_a-printf.o and etc to guarantee the
BUILT_SOURCES is generated before begin to
compile EXTRA_lib_libbison_a_SOURCES such as
fprintf.c in parallel builid, otherwise there
may come below error:
 | muscle-tab.c:(.text+0x77a): undefined reference to `rpl_sprintf'

It does the same for src_bison_OBJECTS and
lib_libbison_a_OBJECTS to make sure BUILT_SOURCES
generated before begin to compile src_bison_SOURCES
which contains AnnotationList.c and etc.

BTW, the MOSTLYCLEANFILES also contains the
generated header needs to be created early
in the build process, so add it also in to
avoid below error:
 | ./lib/uniwidth/width.c:21:10: fatal error: uniwidth.h: No such file or directory

[YOCTO #13825]

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 .../0001-bison-fix-the-parallel-build.patch   | 63 +++++++++++++++++++
 meta/recipes-devtools/bison/bison_3.5.4.bb    |  1 +
 2 files changed, 64 insertions(+)
 create mode 100644 meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch

diff --git a/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch b/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
new file mode 100644
index 0000000000..c3be91a109
--- /dev/null
+++ b/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
@@ -0,0 +1,63 @@
+From e0dbcee6e25b3c0cb11a627bbfe3af45ef67ec30 Mon Sep 17 00:00:00 2001
+From: Mingli Yu <mingli.yu@windriver.com>
+Date: Thu, 14 May 2020 15:23:16 +0800
+Subject: [PATCH] bison: fix the parallel build
+
+Explicitly make the BUILT_SOURCES which
+are the generated headers such as stdio.h,
+fcntl.h and etc to be the dependencies of
+the gl_LIBOBJS such as libbison_a-sprintf.o,
+libbison_a-printf.o and etc to guarantee the
+BUILT_SOURCES is generated before begin to
+compile EXTRA_lib_libbison_a_SOURCES such as
+fprintf.c in parallel builid, otherwise there
+may come below error:
+ | muscle-tab.c:(.text+0x77a): undefined reference to `rpl_sprintf'
+
+It does the same for src_bison_OBJECTS and
+lib_libbison_a_OBJECTS to make sure BUILT_SOURCES
+generated before begin to compile src_bison_SOURCES
+which contains AnnotationList.c and etc.
+
+BTW, the MOSTLYCLEANFILES also contains the
+generated header needs to be created early
+in the build process, so add it also in to
+avoid below error:
+ | ./lib/uniwidth/width.c:21:10: fatal error: uniwidth.h: No such file or directory
+
+Upstream-Status: Submitted [bison-patches@gnu.org maillist]
+
+Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
+---
+ lib/gnulib.mk | 2 ++
+ src/local.mk  | 1 +
+ 2 files changed, 3 insertions(+)
+
+diff --git a/lib/gnulib.mk b/lib/gnulib.mk
+index c21c656..27fb3dc 100644
+--- a/lib/gnulib.mk
++++ b/lib/gnulib.mk
+@@ -120,6 +120,8 @@ lib_libbison_a_SOURCES =
+ lib_libbison_a_LIBADD = $(gl_LIBOBJS)
+ lib_libbison_a_DEPENDENCIES = $(gl_LIBOBJS)
+ EXTRA_lib_libbison_a_SOURCES =
++$(lib_libbison_a_OBJECTS): $(BUILT_SOURCES) $(MOSTLYCLEANFILES:%.h)
++$(gl_LIBOBJS): $(BUILT_SOURCES) $(MOSTLYCLEANFILES:%.h)
+ 
+ lib_libbison_a_CPPFLAGS = $(AM_CPPFLAGS) -DDEFAULT_TEXT_DOMAIN=\"bison-gnulib\"
+ 
+diff --git a/src/local.mk b/src/local.mk
+index 61dc573..b5b9079 100644
+--- a/src/local.mk
++++ b/src/local.mk
+@@ -24,6 +24,7 @@ if RELOCATABLE_VIA_LD
+   src_bison_LDFLAGS = `$(RELOCATABLE_LDFLAGS) $(bindir)`
+ endif
+ 
++$(src_bison_OBJECTS): $(BUILT_SOURCES) $(MOSTLYCLEANFILES:%.h)
+ src_bison_CFLAGS = $(AM_CFLAGS) $(WERROR_CFLAGS)
+ src_bison_SOURCES =                             \
+   src/AnnotationList.c                          \
+-- 
+2.17.1
+
diff --git a/meta/recipes-devtools/bison/bison_3.5.4.bb b/meta/recipes-devtools/bison/bison_3.5.4.bb
index 59c34f7297..124bc41d3e 100644
--- a/meta/recipes-devtools/bison/bison_3.5.4.bb
+++ b/meta/recipes-devtools/bison/bison_3.5.4.bb
@@ -12,6 +12,7 @@ DEPENDS = "bison-native flex-native"
 SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.xz \
            file://dont-depend-on-help2man.patch.patch \
            file://add-with-bisonlocaledir.patch \
+           file://0001-bison-fix-the-parallel-build.patch \
 "
 SRC_URI[sha256sum] = "4c17e99881978fa32c05933c5262457fa5b2b611668454f8dc2a695cd6b3720c"
 
-- 
2.24.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [OE-core] [PATCH] bison: fix the parallel build
  2020-05-14  7:39 [PATCH] bison: fix the parallel build Yu, Mingli
@ 2020-05-14  7:55 ` Jacob Kroon
  2020-05-14  7:59   ` Yu, Mingli
  0 siblings, 1 reply; 6+ messages in thread
From: Jacob Kroon @ 2020-05-14  7:55 UTC (permalink / raw)
  To: Yu, Mingli, openembedded-core

Hi Mingli,

On 5/14/20 9:39 AM, Yu, Mingli wrote:
> From: Mingli Yu <mingli.yu@windriver.com>
> 
> Explicitly make the BUILT_SOURCES which
> are the generated headers such as stdio.h,
> fcntl.h and etc to be the dependencies of
> the gl_LIBOBJS such as libbison_a-sprintf.o,
> libbison_a-printf.o and etc to guarantee the
> BUILT_SOURCES is generated before begin to
> compile EXTRA_lib_libbison_a_SOURCES such as
> fprintf.c in parallel builid, otherwise there
> may come below error:
>   | muscle-tab.c:(.text+0x77a): undefined reference to `rpl_sprintf'
> 
> It does the same for src_bison_OBJECTS and
> lib_libbison_a_OBJECTS to make sure BUILT_SOURCES
> generated before begin to compile src_bison_SOURCES
> which contains AnnotationList.c and etc.
> 
> BTW, the MOSTLYCLEANFILES also contains the
> generated header needs to be created early
> in the build process, so add it also in to
> avoid below error:
>   | ./lib/uniwidth/width.c:21:10: fatal error: uniwidth.h: No such file or directory
> 
> [YOCTO #13825]
> 
> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
> ---
>   .../0001-bison-fix-the-parallel-build.patch   | 63 +++++++++++++++++++
>   meta/recipes-devtools/bison/bison_3.5.4.bb    |  1 +
>   2 files changed, 64 insertions(+)
>   create mode 100644 meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
> 
> diff --git a/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch b/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
> new file mode 100644
> index 0000000000..c3be91a109
> --- /dev/null
> +++ b/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
> @@ -0,0 +1,63 @@
> +From e0dbcee6e25b3c0cb11a627bbfe3af45ef67ec30 Mon Sep 17 00:00:00 2001
> +From: Mingli Yu <mingli.yu@windriver.com>
> +Date: Thu, 14 May 2020 15:23:16 +0800
> +Subject: [PATCH] bison: fix the parallel build
> +
> +Explicitly make the BUILT_SOURCES which
> +are the generated headers such as stdio.h,
> +fcntl.h and etc to be the dependencies of
> +the gl_LIBOBJS such as libbison_a-sprintf.o,
> +libbison_a-printf.o and etc to guarantee the
> +BUILT_SOURCES is generated before begin to
> +compile EXTRA_lib_libbison_a_SOURCES such as
> +fprintf.c in parallel builid, otherwise there
> +may come below error:
> + | muscle-tab.c:(.text+0x77a): undefined reference to `rpl_sprintf'
> +
> +It does the same for src_bison_OBJECTS and
> +lib_libbison_a_OBJECTS to make sure BUILT_SOURCES
> +generated before begin to compile src_bison_SOURCES
> +which contains AnnotationList.c and etc.
> +
> +BTW, the MOSTLYCLEANFILES also contains the
> +generated header needs to be created early
> +in the build process, so add it also in to
> +avoid below error:
> + | ./lib/uniwidth/width.c:21:10: fatal error: uniwidth.h: No such file or directory
> +
> +Upstream-Status: Submitted [bison-patches@gnu.org maillist]
> +

I can't find the patch email in the bison-patches mailing list archive, 
do you have a link url ?

/Jacob

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core] [PATCH] bison: fix the parallel build
  2020-05-14  7:55 ` [OE-core] " Jacob Kroon
@ 2020-05-14  7:59   ` Yu, Mingli
  2020-05-15  1:55     ` Yu, Mingli
  0 siblings, 1 reply; 6+ messages in thread
From: Yu, Mingli @ 2020-05-14  7:59 UTC (permalink / raw)
  To: Jacob Kroon, openembedded-core

Hi Jacob,

On 05/14/20 15:55, Jacob Kroon wrote:
> Hi Mingli,
>
> On 5/14/20 9:39 AM, Yu, Mingli wrote:
>> From: Mingli Yu <mingli.yu@windriver.com>
>>
>> Explicitly make the BUILT_SOURCES which
>> are the generated headers such as stdio.h,
>> fcntl.h and etc to be the dependencies of
>> the gl_LIBOBJS such as libbison_a-sprintf.o,
>> libbison_a-printf.o and etc to guarantee the
>> BUILT_SOURCES is generated before begin to
>> compile EXTRA_lib_libbison_a_SOURCES such as
>> fprintf.c in parallel builid, otherwise there
>> may come below error:
>>   | muscle-tab.c:(.text+0x77a): undefined reference to `rpl_sprintf'
>>
>> It does the same for src_bison_OBJECTS and
>> lib_libbison_a_OBJECTS to make sure BUILT_SOURCES
>> generated before begin to compile src_bison_SOURCES
>> which contains AnnotationList.c and etc.
>>
>> BTW, the MOSTLYCLEANFILES also contains the
>> generated header needs to be created early
>> in the build process, so add it also in to
>> avoid below error:
>>   | ./lib/uniwidth/width.c:21:10: fatal error: uniwidth.h: No such
>> file or directory
>>
>> [YOCTO #13825]
>>
>> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
>> ---
>>   .../0001-bison-fix-the-parallel-build.patch   | 63 +++++++++++++++++++
>>   meta/recipes-devtools/bison/bison_3.5.4.bb    |  1 +
>>   2 files changed, 64 insertions(+)
>>   create mode 100644
>> meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
>>
>> diff --git
>> a/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
>> b/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
>>
>> new file mode 100644
>> index 0000000000..c3be91a109
>> --- /dev/null
>> +++
>> b/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
>>
>> @@ -0,0 +1,63 @@
>> +From e0dbcee6e25b3c0cb11a627bbfe3af45ef67ec30 Mon Sep 17 00:00:00 2001
>> +From: Mingli Yu <mingli.yu@windriver.com>
>> +Date: Thu, 14 May 2020 15:23:16 +0800
>> +Subject: [PATCH] bison: fix the parallel build
>> +
>> +Explicitly make the BUILT_SOURCES which
>> +are the generated headers such as stdio.h,
>> +fcntl.h and etc to be the dependencies of
>> +the gl_LIBOBJS such as libbison_a-sprintf.o,
>> +libbison_a-printf.o and etc to guarantee the
>> +BUILT_SOURCES is generated before begin to
>> +compile EXTRA_lib_libbison_a_SOURCES such as
>> +fprintf.c in parallel builid, otherwise there
>> +may come below error:
>> + | muscle-tab.c:(.text+0x77a): undefined reference to `rpl_sprintf'
>> +
>> +It does the same for src_bison_OBJECTS and
>> +lib_libbison_a_OBJECTS to make sure BUILT_SOURCES
>> +generated before begin to compile src_bison_SOURCES
>> +which contains AnnotationList.c and etc.
>> +
>> +BTW, the MOSTLYCLEANFILES also contains the
>> +generated header needs to be created early
>> +in the build process, so add it also in to
>> +avoid below error:
>> + | ./lib/uniwidth/width.c:21:10: fatal error: uniwidth.h: No such
>> file or directory
>> +
>> +Upstream-Status: Submitted [bison-patches@gnu.org maillist]
>> +
>
> I can't find the patch email in the bison-patches mailing list archive,
> do you have a link url ?

Good catch, that's why I didn't paste the link in the Submitted part.

BTW, I also cannot find at
https://lists.gnu.org/archive/html/bison-patches/2020-05/threads.html 
though I indeed sent to bison-patches@gnu.org.

Thanks,
Mingli

>
> /Jacob
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core] [PATCH] bison: fix the parallel build
  2020-05-14  7:59   ` Yu, Mingli
@ 2020-05-15  1:55     ` Yu, Mingli
  2020-05-15  5:53       ` Jacob Kroon
  0 siblings, 1 reply; 6+ messages in thread
From: Yu, Mingli @ 2020-05-15  1:55 UTC (permalink / raw)
  To: Jacob Kroon, openembedded-core

[-- Attachment #1: Type: text/plain, Size: 3979 bytes --]

Hi Jacob,

I can check the https://lists.gnu.org/archive/html/bison-patches/2020-05/msg00055.html link now, so I resend the v2 to add the link for Upstream-Status part.

Thanks,
Mingli
________________________________
From: Yu, Mingli <mingli.yu@windriver.com>
Sent: Thursday, May 14, 2020 15:59
To: Jacob Kroon <jacob.kroon@gmail.com>; openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH] bison: fix the parallel build

Hi Jacob,

On 05/14/20 15:55, Jacob Kroon wrote:
> Hi Mingli,
>
> On 5/14/20 9:39 AM, Yu, Mingli wrote:
>> From: Mingli Yu <mingli.yu@windriver.com>
>>
>> Explicitly make the BUILT_SOURCES which
>> are the generated headers such as stdio.h,
>> fcntl.h and etc to be the dependencies of
>> the gl_LIBOBJS such as libbison_a-sprintf.o,
>> libbison_a-printf.o and etc to guarantee the
>> BUILT_SOURCES is generated before begin to
>> compile EXTRA_lib_libbison_a_SOURCES such as
>> fprintf.c in parallel builid, otherwise there
>> may come below error:
>>   | muscle-tab.c:(.text+0x77a): undefined reference to `rpl_sprintf'
>>
>> It does the same for src_bison_OBJECTS and
>> lib_libbison_a_OBJECTS to make sure BUILT_SOURCES
>> generated before begin to compile src_bison_SOURCES
>> which contains AnnotationList.c and etc.
>>
>> BTW, the MOSTLYCLEANFILES also contains the
>> generated header needs to be created early
>> in the build process, so add it also in to
>> avoid below error:
>>   | ./lib/uniwidth/width.c:21:10: fatal error: uniwidth.h: No such
>> file or directory
>>
>> [YOCTO #13825]
>>
>> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
>> ---
>>   .../0001-bison-fix-the-parallel-build.patch   | 63 +++++++++++++++++++
>>   meta/recipes-devtools/bison/bison_3.5.4.bb    |  1 +
>>   2 files changed, 64 insertions(+)
>>   create mode 100644
>> meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
>>
>> diff --git
>> a/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
>> b/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
>>
>> new file mode 100644
>> index 0000000000..c3be91a109
>> --- /dev/null
>> +++
>> b/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
>>
>> @@ -0,0 +1,63 @@
>> +From e0dbcee6e25b3c0cb11a627bbfe3af45ef67ec30 Mon Sep 17 00:00:00 2001
>> +From: Mingli Yu <mingli.yu@windriver.com>
>> +Date: Thu, 14 May 2020 15:23:16 +0800
>> +Subject: [PATCH] bison: fix the parallel build
>> +
>> +Explicitly make the BUILT_SOURCES which
>> +are the generated headers such as stdio.h,
>> +fcntl.h and etc to be the dependencies of
>> +the gl_LIBOBJS such as libbison_a-sprintf.o,
>> +libbison_a-printf.o and etc to guarantee the
>> +BUILT_SOURCES is generated before begin to
>> +compile EXTRA_lib_libbison_a_SOURCES such as
>> +fprintf.c in parallel builid, otherwise there
>> +may come below error:
>> + | muscle-tab.c:(.text+0x77a): undefined reference to `rpl_sprintf'
>> +
>> +It does the same for src_bison_OBJECTS and
>> +lib_libbison_a_OBJECTS to make sure BUILT_SOURCES
>> +generated before begin to compile src_bison_SOURCES
>> +which contains AnnotationList.c and etc.
>> +
>> +BTW, the MOSTLYCLEANFILES also contains the
>> +generated header needs to be created early
>> +in the build process, so add it also in to
>> +avoid below error:
>> + | ./lib/uniwidth/width.c:21:10: fatal error: uniwidth.h: No such
>> file or directory
>> +
>> +Upstream-Status: Submitted [bison-patches@gnu.org maillist]
>> +
>
> I can't find the patch email in the bison-patches mailing list archive,
> do you have a link url ?

Good catch, that's why I didn't paste the link in the Submitted part.

BTW, I also cannot find at
https://lists.gnu.org/archive/html/bison-patches/2020-05/threads.html
though I indeed sent to bison-patches@gnu.org.

Thanks,
Mingli

>
> /Jacob
>

[-- Attachment #2: Type: text/html, Size: 6665 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core] [PATCH] bison: fix the parallel build
  2020-05-15  1:55     ` Yu, Mingli
@ 2020-05-15  5:53       ` Jacob Kroon
  2020-06-01 22:56         ` Andre McCurdy
  0 siblings, 1 reply; 6+ messages in thread
From: Jacob Kroon @ 2020-05-15  5:53 UTC (permalink / raw)
  To: Yu, Mingli, openembedded-core

Hi Mingli,
Thank you for fixing.
/Jacob

On 5/15/20 3:55 AM, Yu, Mingli wrote:
> Hi Jacob,
> 
> I can check the 
> https://lists.gnu.org/archive/html/bison-patches/2020-05/msg00055.html 
> link now, so I resend the v2 to add the link for Upstream-Status part.
> 
> Thanks,
> Mingli
> ------------------------------------------------------------------------
> *From:* Yu, Mingli <mingli.yu@windriver.com>
> *Sent:* Thursday, May 14, 2020 15:59
> *To:* Jacob Kroon <jacob.kroon@gmail.com>; 
> openembedded-core@lists.openembedded.org 
> <openembedded-core@lists.openembedded.org>
> *Subject:* Re: [OE-core] [PATCH] bison: fix the parallel build
> Hi Jacob,
> 
> On 05/14/20 15:55, Jacob Kroon wrote:
>> Hi Mingli,
>>
>> On 5/14/20 9:39 AM, Yu, Mingli wrote:
>>> From: Mingli Yu <mingli.yu@windriver.com>
>>>
>>> Explicitly make the BUILT_SOURCES which
>>> are the generated headers such as stdio.h,
>>> fcntl.h and etc to be the dependencies of
>>> the gl_LIBOBJS such as libbison_a-sprintf.o,
>>> libbison_a-printf.o and etc to guarantee the
>>> BUILT_SOURCES is generated before begin to
>>> compile EXTRA_lib_libbison_a_SOURCES such as
>>> fprintf.c in parallel builid, otherwise there
>>> may come below error:
>>>   | muscle-tab.c:(.text+0x77a): undefined reference to `rpl_sprintf'
>>>
>>> It does the same for src_bison_OBJECTS and
>>> lib_libbison_a_OBJECTS to make sure BUILT_SOURCES
>>> generated before begin to compile src_bison_SOURCES
>>> which contains AnnotationList.c and etc.
>>>
>>> BTW, the MOSTLYCLEANFILES also contains the
>>> generated header needs to be created early
>>> in the build process, so add it also in to
>>> avoid below error:
>>>   | ./lib/uniwidth/width.c:21:10: fatal error: uniwidth.h: No such
>>> file or directory
>>>
>>> [YOCTO #13825]
>>>
>>> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
>>> ---
>>>   .../0001-bison-fix-the-parallel-build.patch   | 63 +++++++++++++++++++
>>>   meta/recipes-devtools/bison/bison_3.5.4.bb    |  1 +
>>>   2 files changed, 64 insertions(+)
>>>   create mode 100644
>>> meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
>>>
>>> diff --git
>>> a/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
>>> b/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
>>>
>>> new file mode 100644
>>> index 0000000000..c3be91a109
>>> --- /dev/null
>>> +++
>>> b/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
>>>
>>> @@ -0,0 +1,63 @@
>>> +From e0dbcee6e25b3c0cb11a627bbfe3af45ef67ec30 Mon Sep 17 00:00:00 2001
>>> +From: Mingli Yu <mingli.yu@windriver.com>
>>> +Date: Thu, 14 May 2020 15:23:16 +0800
>>> +Subject: [PATCH] bison: fix the parallel build
>>> +
>>> +Explicitly make the BUILT_SOURCES which
>>> +are the generated headers such as stdio.h,
>>> +fcntl.h and etc to be the dependencies of
>>> +the gl_LIBOBJS such as libbison_a-sprintf.o,
>>> +libbison_a-printf.o and etc to guarantee the
>>> +BUILT_SOURCES is generated before begin to
>>> +compile EXTRA_lib_libbison_a_SOURCES such as
>>> +fprintf.c in parallel builid, otherwise there
>>> +may come below error:
>>> + | muscle-tab.c:(.text+0x77a): undefined reference to `rpl_sprintf'
>>> +
>>> +It does the same for src_bison_OBJECTS and
>>> +lib_libbison_a_OBJECTS to make sure BUILT_SOURCES
>>> +generated before begin to compile src_bison_SOURCES
>>> +which contains AnnotationList.c and etc.
>>> +
>>> +BTW, the MOSTLYCLEANFILES also contains the
>>> +generated header needs to be created early
>>> +in the build process, so add it also in to
>>> +avoid below error:
>>> + | ./lib/uniwidth/width.c:21:10: fatal error: uniwidth.h: No such
>>> file or directory
>>> +
>>> +Upstream-Status: Submitted [bison-patches@gnu.org maillist]
>>> +
>>
>> I can't find the patch email in the bison-patches mailing list archive,
>> do you have a link url ?
> 
> Good catch, that's why I didn't paste the link in the Submitted part.
> 
> BTW, I also cannot find at
> https://lists.gnu.org/archive/html/bison-patches/2020-05/threads.html
> though I indeed sent to bison-patches@gnu.org.
> 
> Thanks,
> Mingli
> 
>>
>> /Jacob
>>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core] [PATCH] bison: fix the parallel build
  2020-05-15  5:53       ` Jacob Kroon
@ 2020-06-01 22:56         ` Andre McCurdy
  0 siblings, 0 replies; 6+ messages in thread
From: Andre McCurdy @ 2020-06-01 22:56 UTC (permalink / raw)
  To: Jacob Kroon; +Cc: Yu, Mingli, openembedded-core

On Thu, May 14, 2020 at 10:53 PM Jacob Kroon <jacob.kroon@gmail.com> wrote:
>
> Hi Mingli,
> Thank you for fixing.
> /Jacob
>
> On 5/15/20 3:55 AM, Yu, Mingli wrote:
> > Hi Jacob,
> >
> > I can check the
> > https://lists.gnu.org/archive/html/bison-patches/2020-05/msg00055.html
> > link now, so I resend the v2 to add the link for Upstream-Status part.

The previous workaround (ie EXTRA_OEMAKE_append = " -l") in the bison
recipe should be removed now.

Note also that there are questions on the bison mailing list related
to this change which don't seem to have any response yet:

  https://lists.gnu.org/archive/html/bison-patches/2020-05/msg00058.html

> > Thanks,
> > Mingli
> > ------------------------------------------------------------------------
> > *From:* Yu, Mingli <mingli.yu@windriver.com>
> > *Sent:* Thursday, May 14, 2020 15:59
> > *To:* Jacob Kroon <jacob.kroon@gmail.com>;
> > openembedded-core@lists.openembedded.org
> > <openembedded-core@lists.openembedded.org>
> > *Subject:* Re: [OE-core] [PATCH] bison: fix the parallel build
> > Hi Jacob,
> >
> > On 05/14/20 15:55, Jacob Kroon wrote:
> >> Hi Mingli,
> >>
> >> On 5/14/20 9:39 AM, Yu, Mingli wrote:
> >>> From: Mingli Yu <mingli.yu@windriver.com>
> >>>
> >>> Explicitly make the BUILT_SOURCES which
> >>> are the generated headers such as stdio.h,
> >>> fcntl.h and etc to be the dependencies of
> >>> the gl_LIBOBJS such as libbison_a-sprintf.o,
> >>> libbison_a-printf.o and etc to guarantee the
> >>> BUILT_SOURCES is generated before begin to
> >>> compile EXTRA_lib_libbison_a_SOURCES such as
> >>> fprintf.c in parallel builid, otherwise there
> >>> may come below error:
> >>>   | muscle-tab.c:(.text+0x77a): undefined reference to `rpl_sprintf'
> >>>
> >>> It does the same for src_bison_OBJECTS and
> >>> lib_libbison_a_OBJECTS to make sure BUILT_SOURCES
> >>> generated before begin to compile src_bison_SOURCES
> >>> which contains AnnotationList.c and etc.
> >>>
> >>> BTW, the MOSTLYCLEANFILES also contains the
> >>> generated header needs to be created early
> >>> in the build process, so add it also in to
> >>> avoid below error:
> >>>   | ./lib/uniwidth/width.c:21:10: fatal error: uniwidth.h: No such
> >>> file or directory
> >>>
> >>> [YOCTO #13825]
> >>>
> >>> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
> >>> ---
> >>>   .../0001-bison-fix-the-parallel-build.patch   | 63 +++++++++++++++++++
> >>>   meta/recipes-devtools/bison/bison_3.5.4.bb    |  1 +
> >>>   2 files changed, 64 insertions(+)
> >>>   create mode 100644
> >>> meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
> >>>
> >>> diff --git
> >>> a/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
> >>> b/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
> >>>
> >>> new file mode 100644
> >>> index 0000000000..c3be91a109
> >>> --- /dev/null
> >>> +++
> >>> b/meta/recipes-devtools/bison/bison/0001-bison-fix-the-parallel-build.patch
> >>>
> >>> @@ -0,0 +1,63 @@
> >>> +From e0dbcee6e25b3c0cb11a627bbfe3af45ef67ec30 Mon Sep 17 00:00:00 2001
> >>> +From: Mingli Yu <mingli.yu@windriver.com>
> >>> +Date: Thu, 14 May 2020 15:23:16 +0800
> >>> +Subject: [PATCH] bison: fix the parallel build
> >>> +
> >>> +Explicitly make the BUILT_SOURCES which
> >>> +are the generated headers such as stdio.h,
> >>> +fcntl.h and etc to be the dependencies of
> >>> +the gl_LIBOBJS such as libbison_a-sprintf.o,
> >>> +libbison_a-printf.o and etc to guarantee the
> >>> +BUILT_SOURCES is generated before begin to
> >>> +compile EXTRA_lib_libbison_a_SOURCES such as
> >>> +fprintf.c in parallel builid, otherwise there
> >>> +may come below error:
> >>> + | muscle-tab.c:(.text+0x77a): undefined reference to `rpl_sprintf'
> >>> +
> >>> +It does the same for src_bison_OBJECTS and
> >>> +lib_libbison_a_OBJECTS to make sure BUILT_SOURCES
> >>> +generated before begin to compile src_bison_SOURCES
> >>> +which contains AnnotationList.c and etc.
> >>> +
> >>> +BTW, the MOSTLYCLEANFILES also contains the
> >>> +generated header needs to be created early
> >>> +in the build process, so add it also in to
> >>> +avoid below error:
> >>> + | ./lib/uniwidth/width.c:21:10: fatal error: uniwidth.h: No such
> >>> file or directory
> >>> +
> >>> +Upstream-Status: Submitted [bison-patches@gnu.org maillist]
> >>> +
> >>
> >> I can't find the patch email in the bison-patches mailing list archive,
> >> do you have a link url ?
> >
> > Good catch, that's why I didn't paste the link in the Submitted part.
> >
> > BTW, I also cannot find at
> > https://lists.gnu.org/archive/html/bison-patches/2020-05/threads.html
> > though I indeed sent to bison-patches@gnu.org.
> >
> > Thanks,
> > Mingli
> >
> >>
> >> /Jacob
> >>
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-06-01 22:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-14  7:39 [PATCH] bison: fix the parallel build Yu, Mingli
2020-05-14  7:55 ` [OE-core] " Jacob Kroon
2020-05-14  7:59   ` Yu, Mingli
2020-05-15  1:55     ` Yu, Mingli
2020-05-15  5:53       ` Jacob Kroon
2020-06-01 22:56         ` Andre McCurdy

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.