All of lore.kernel.org
 help / color / mirror / Atom feed
* "cross-localedef-native" build error (with gcc-5.0.0)
@ 2015-02-19 10:11 Robert P. J. Day
  2015-07-06 21:12 ` Daniel.
  0 siblings, 1 reply; 10+ messages in thread
From: Robert P. J. Day @ 2015-02-19 10:11 UTC (permalink / raw)
  To: Yocto discussion list


  didn't see any mention of this in YP's bugzilla:

gcc  -o localedef charmap.o charmap-dir.o ld-address.o ld-collate.o ld-ctype.o ld-identification.o ld-measurement.o ld-messages.o ld-monetary.o ld-name.o ld-numeric.o ld-paper.o ld-telephone.o ld-time.o linereader.o localedef.o locarchive.o locfile.o repertoire.o simple-hash.o xmalloc.o xstrdup.o argp-ba.o argp-eexst.o argp-fmtstream.o argp-help.o argp-parse.o argp-pv.o argp-xinl.o error.o getopt.o getopt1.o md5.o obstack.o asprintf.o getdelim.o localedef_extra.o obstack_printf.o vasprintf.o
argp-help.o: In function `argp_fmtstream_write':
argp-help.c:(.text+0x1da0): multiple definition of `argp_fmtstream_write'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x7a0): first defined here
argp-help.o: In function `argp_fmtstream_puts':
argp-help.c:(.text+0x1df0): multiple definition of `argp_fmtstream_puts'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x860): first defined here
argp-help.o: In function `argp_fmtstream_putc':
argp-help.c:(.text+0x1e60): multiple definition of `argp_fmtstream_putc'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x800): first defined here
argp-help.o: In function `argp_fmtstream_set_lmargin':
argp-help.c:(.text+0x1eb0): multiple definition of `argp_fmtstream_set_lmargin'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x5e0): first defined here
argp-help.o: In function `argp_fmtstream_set_rmargin':
argp-help.c:(.text+0x1ee0): multiple definition of `argp_fmtstream_set_rmargin'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x610): first defined here
argp-help.o: In function `argp_fmtstream_set_wmargin':
argp-help.c:(.text+0x1f10): multiple definition of `argp_fmtstream_set_wmargin'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x640): first defined here
argp-help.o: In function `argp_fmtstream_point':
argp-help.c:(.text+0x1f40): multiple definition of `argp_fmtstream_point'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x670): first defined here
collect2: error: ld returned 1 exit status
Makefile:59: recipe for target 'localedef' failed
make: *** [localedef] Error 1
ERROR: oe_runmake failed
WARNING: /home/rpjday/oe/builds/vtss/minimal/tmp/work/x86_64-linux/cross-localedef-native/2.20-r0/temp/run.do_compile.27985:1 exit 1 from
  exit 1
ERROR: Function failed: do_compile (log file is located at /home/rpjday/oe/builds/vtss/minimal/tmp/work/x86_64-linux/cross-localedef-native/2.20-r0/temp/log.do_compile.27985)

  is this a known issue?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


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

* Re: "cross-localedef-native" build error (with gcc-5.0.0)
  2015-02-19 10:11 "cross-localedef-native" build error (with gcc-5.0.0) Robert P. J. Day
@ 2015-07-06 21:12 ` Daniel.
  2015-07-07  2:54   ` [PATCH] cross-localedef-native_2.20.bb: fix for gcc5 Richard Tollerton
  0 siblings, 1 reply; 10+ messages in thread
From: Daniel. @ 2015-07-06 21:12 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: Yocto discussion list

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

Any progress on this? I got the same problem, also ncurses-native fails to
build with GCC >= 5.0

Best regards

- dhs

2015-02-19 8:11 GMT-02:00 Robert P. J. Day <rpjday@crashcourse.ca>:

>
>   didn't see any mention of this in YP's bugzilla:
>
> gcc  -o localedef charmap.o charmap-dir.o ld-address.o ld-collate.o
> ld-ctype.o ld-identification.o ld-measurement.o ld-messages.o ld-monetary.o
> ld-name.o ld-numeric.o ld-paper.o ld-telephone.o ld-time.o linereader.o
> localedef.o locarchive.o locfile.o repertoire.o simple-hash.o xmalloc.o
> xstrdup.o argp-ba.o argp-eexst.o argp-fmtstream.o argp-help.o argp-parse.o
> argp-pv.o argp-xinl.o error.o getopt.o getopt1.o md5.o obstack.o asprintf.o
> getdelim.o localedef_extra.o obstack_printf.o vasprintf.o
> argp-help.o: In function `argp_fmtstream_write':
> argp-help.c:(.text+0x1da0): multiple definition of `argp_fmtstream_write'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x7a0): first defined here
> argp-help.o: In function `argp_fmtstream_puts':
> argp-help.c:(.text+0x1df0): multiple definition of `argp_fmtstream_puts'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x860): first defined here
> argp-help.o: In function `argp_fmtstream_putc':
> argp-help.c:(.text+0x1e60): multiple definition of `argp_fmtstream_putc'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x800): first defined here
> argp-help.o: In function `argp_fmtstream_set_lmargin':
> argp-help.c:(.text+0x1eb0): multiple definition of
> `argp_fmtstream_set_lmargin'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x5e0): first defined here
> argp-help.o: In function `argp_fmtstream_set_rmargin':
> argp-help.c:(.text+0x1ee0): multiple definition of
> `argp_fmtstream_set_rmargin'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x610): first defined here
> argp-help.o: In function `argp_fmtstream_set_wmargin':
> argp-help.c:(.text+0x1f10): multiple definition of
> `argp_fmtstream_set_wmargin'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x640): first defined here
> argp-help.o: In function `argp_fmtstream_point':
> argp-help.c:(.text+0x1f40): multiple definition of `argp_fmtstream_point'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x670): first defined here
> collect2: error: ld returned 1 exit status
> Makefile:59: recipe for target 'localedef' failed
> make: *** [localedef] Error 1
> ERROR: oe_runmake failed
> WARNING:
> /home/rpjday/oe/builds/vtss/minimal/tmp/work/x86_64-linux/cross-localedef-native/2.20-r0/temp/run.do_compile.27985:1
> exit 1 from
>   exit 1
> ERROR: Function failed: do_compile (log file is located at
> /home/rpjday/oe/builds/vtss/minimal/tmp/work/x86_64-linux/cross-localedef-native/2.20-r0/temp/log.do_compile.27985)
>
>   is this a known issue?
>
> rday
>
> --
>
> ========================================================================
> Robert P. J. Day                                 Ottawa, Ontario, CANADA
>                         http://crashcourse.ca
>
> Twitter:                                       http://twitter.com/rpjday
> LinkedIn:                               http://ca.linkedin.com/in/rpjday
> ========================================================================
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



-- 
*"Do or do not. There is no try"*
  *Yoda Master*

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

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

* [PATCH] cross-localedef-native_2.20.bb: fix for gcc5
  2015-07-06 21:12 ` Daniel.
@ 2015-07-07  2:54   ` Richard Tollerton
  2015-07-07  3:34     ` Daniel.
  2015-07-07  8:29       ` [OE-core] " Burton, Ross
  0 siblings, 2 replies; 10+ messages in thread
From: Richard Tollerton @ 2015-07-07  2:54 UTC (permalink / raw)
  To: Daniel., Robert P. J. Day; +Cc: Yocto discussion list, openembedded-core

Message-ID: <87wpycy88v.fsf@weregild.amer.corp.natinst.com>
MIME-Version: 1.0
Content-Type: text/plain
--text follows this line--
The build of cross-localedef-native is observed to fail under gcc5 hosts
with multiple definition errors, e.g.:

argp-help.o: In function `argp_fmtstream_write':
argp-help.c:(.text+0x1da0): multiple definition of `argp_fmtstream_write'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x7a0): first defined here

The problem is the change of the default C standard from gnu89 to gnu11
which changes the semantics of 'inline'. The issue is described in the
Porting guide at https://gcc.gnu.org/gcc-5/porting_to.html. Adding the
'-fgnu89-inline' option fixes the issue.

(This fix, including the above explanation, was shamelessly copied from
http://git.vahanus.net/?p=csc/ptxdist-kp.git;a=commit;h=2f04a3587bd33c74ccc9be6e115a8b1fde620841.)

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
---
 meta/recipes-core/glibc/cross-localedef-native_2.20.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/glibc/cross-localedef-native_2.20.bb b/meta/recipes-core/glibc/cross-localedef-native_2.20.bb
index ccf56a9..38f2af4 100644
--- a/meta/recipes-core/glibc/cross-localedef-native_2.20.bb
+++ b/meta/recipes-core/glibc/cross-localedef-native_2.20.bb
@@ -39,7 +39,7 @@ SRCREV_localedef = "c833367348d39dad7ba018990bfdaffaec8e9ed3"
 S = "${WORKDIR}/git"
 
 EXTRA_OECONF = "--with-glibc=${S}"
-CFLAGS += "-DNOT_IN_libc=1"
+CFLAGS += "-DNOT_IN_libc=1 -fgnu89-inline"
 
 do_configure () {
 	${S}/localedef/configure ${EXTRA_OECONF}
-- 
2.4.4



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

* Re: [PATCH] cross-localedef-native_2.20.bb: fix for gcc5
  2015-07-07  2:54   ` [PATCH] cross-localedef-native_2.20.bb: fix for gcc5 Richard Tollerton
@ 2015-07-07  3:34     ` Daniel.
  2015-07-07  8:29       ` [OE-core] " Burton, Ross
  1 sibling, 0 replies; 10+ messages in thread
From: Daniel. @ 2015-07-07  3:34 UTC (permalink / raw)
  To: Richard Tollerton; +Cc: Yocto discussion list, openembedded-core

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

Thanks!!!
Em 07/07/2015 00:09, "Richard Tollerton" <rich.tollerton@ni.com> escreveu:

> Message-ID: <87wpycy88v.fsf@weregild.amer.corp.natinst.com>
> MIME-Version: 1.0
> Content-Type: text/plain
> --text follows this line--
> The build of cross-localedef-native is observed to fail under gcc5 hosts
> with multiple definition errors, e.g.:
>
> argp-help.o: In function `argp_fmtstream_write':
> argp-help.c:(.text+0x1da0): multiple definition of `argp_fmtstream_write'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x7a0): first defined here
>
> The problem is the change of the default C standard from gnu89 to gnu11
> which changes the semantics of 'inline'. The issue is described in the
> Porting guide at https://gcc.gnu.org/gcc-5/porting_to.html. Adding the
> '-fgnu89-inline' option fixes the issue.
>
> (This fix, including the above explanation, was shamelessly copied from
>
> http://git.vahanus.net/?p=csc/ptxdist-kp.git;a=commit;h=2f04a3587bd33c74ccc9be6e115a8b1fde620841
> .)
>
> Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
> ---
>  meta/recipes-core/glibc/cross-localedef-native_2.20.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/glibc/cross-localedef-native_2.20.bb
> b/meta/recipes-core/glibc/cross-localedef-native_2.20.bb
> index ccf56a9..38f2af4 100644
> --- a/meta/recipes-core/glibc/cross-localedef-native_2.20.bb
> +++ b/meta/recipes-core/glibc/cross-localedef-native_2.20.bb
> @@ -39,7 +39,7 @@ SRCREV_localedef =
> "c833367348d39dad7ba018990bfdaffaec8e9ed3"
>  S = "${WORKDIR}/git"
>
>  EXTRA_OECONF = "--with-glibc=${S}"
> -CFLAGS += "-DNOT_IN_libc=1"
> +CFLAGS += "-DNOT_IN_libc=1 -fgnu89-inline"
>
>  do_configure () {
>         ${S}/localedef/configure ${EXTRA_OECONF}
> --
> 2.4.4
>
>

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

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

* Re: [PATCH] cross-localedef-native_2.20.bb: fix for gcc5
  2015-07-07  2:54   ` [PATCH] cross-localedef-native_2.20.bb: fix for gcc5 Richard Tollerton
@ 2015-07-07  8:29       ` Burton, Ross
  2015-07-07  8:29       ` [OE-core] " Burton, Ross
  1 sibling, 0 replies; 10+ messages in thread
From: Burton, Ross @ 2015-07-07  8:29 UTC (permalink / raw)
  To: Richard Tollerton; +Cc: OE-core, Daniel., Yocto discussion list

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

On 7 July 2015 at 03:54, Richard Tollerton <rich.tollerton@ni.com> wrote:

> The build of cross-localedef-native is observed to fail under gcc5 hosts
> with multiple definition errors, e.g.:
>

Is this patch intended for fido?  Master doesn't have 2.20 anymore (2.21)
and I believe that works with gcc5 hosts.

Ross

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

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

* Re: [OE-core] [PATCH] cross-localedef-native_2.20.bb: fix for gcc5
@ 2015-07-07  8:29       ` Burton, Ross
  0 siblings, 0 replies; 10+ messages in thread
From: Burton, Ross @ 2015-07-07  8:29 UTC (permalink / raw)
  To: Richard Tollerton; +Cc: OE-core, Yocto discussion list

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

On 7 July 2015 at 03:54, Richard Tollerton <rich.tollerton@ni.com> wrote:

> The build of cross-localedef-native is observed to fail under gcc5 hosts
> with multiple definition errors, e.g.:
>

Is this patch intended for fido?  Master doesn't have 2.20 anymore (2.21)
and I believe that works with gcc5 hosts.

Ross

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

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

* Re: [PATCH] cross-localedef-native_2.20.bb: fix for gcc5
  2015-07-07  8:29       ` [OE-core] " Burton, Ross
@ 2015-07-07 12:17         ` Otavio Salvador
  -1 siblings, 0 replies; 10+ messages in thread
From: Otavio Salvador @ 2015-07-07 12:17 UTC (permalink / raw)
  To: Burton, Ross; +Cc: Yocto discussion list, Daniel., OE-core

On Tue, Jul 7, 2015 at 5:29 AM, Burton, Ross <ross.burton@intel.com> wrote:
>
> On 7 July 2015 at 03:54, Richard Tollerton <rich.tollerton@ni.com> wrote:
>>
>> The build of cross-localedef-native is observed to fail under gcc5 hosts
>> with multiple definition errors, e.g.:
>
>
> Is this patch intended for fido?  Master doesn't have 2.20 anymore (2.21)
> and I believe that works with gcc5 hosts.

I would prefer to upgrade to 2.21, if this is tthe case.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


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

* Re: [OE-core] [PATCH] cross-localedef-native_2.20.bb: fix for gcc5
@ 2015-07-07 12:17         ` Otavio Salvador
  0 siblings, 0 replies; 10+ messages in thread
From: Otavio Salvador @ 2015-07-07 12:17 UTC (permalink / raw)
  To: Burton, Ross; +Cc: Yocto discussion list, OE-core

On Tue, Jul 7, 2015 at 5:29 AM, Burton, Ross <ross.burton@intel.com> wrote:
>
> On 7 July 2015 at 03:54, Richard Tollerton <rich.tollerton@ni.com> wrote:
>>
>> The build of cross-localedef-native is observed to fail under gcc5 hosts
>> with multiple definition errors, e.g.:
>
>
> Is this patch intended for fido?  Master doesn't have 2.20 anymore (2.21)
> and I believe that works with gcc5 hosts.

I would prefer to upgrade to 2.21, if this is tthe case.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


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

* Re: [PATCH] cross-localedef-native_2.20.bb: fix for gcc5
  2015-07-07  8:29       ` [OE-core] " Burton, Ross
@ 2015-07-07 16:37         ` Richard Tollerton
  -1 siblings, 0 replies; 10+ messages in thread
From: Richard Tollerton @ 2015-07-07 16:37 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core, Daniel., Yocto discussion list

"Burton, Ross" <ross.burton@intel.com> writes:

> On 7 July 2015 at 03:54, Richard Tollerton <rich.tollerton@ni.com> wrote:
>
>> The build of cross-localedef-native is observed to fail under gcc5 hosts
>> with multiple definition errors, e.g.:
>>
>
> Is this patch intended for fido?  Master doesn't have 2.20 anymore (2.21)
> and I believe that works with gcc5 hosts.

It was nominally written for dizzy.

It looks like Khem already added -fgnu89-inline in his initial commit of
cross-localedef-native_2.21.bb, so that's why this works in fido (and
master).


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

* Re: [OE-core] [PATCH] cross-localedef-native_2.20.bb: fix for gcc5
@ 2015-07-07 16:37         ` Richard Tollerton
  0 siblings, 0 replies; 10+ messages in thread
From: Richard Tollerton @ 2015-07-07 16:37 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core, Yocto discussion list

"Burton, Ross" <ross.burton@intel.com> writes:

> On 7 July 2015 at 03:54, Richard Tollerton <rich.tollerton@ni.com> wrote:
>
>> The build of cross-localedef-native is observed to fail under gcc5 hosts
>> with multiple definition errors, e.g.:
>>
>
> Is this patch intended for fido?  Master doesn't have 2.20 anymore (2.21)
> and I believe that works with gcc5 hosts.

It was nominally written for dizzy.

It looks like Khem already added -fgnu89-inline in his initial commit of
cross-localedef-native_2.21.bb, so that's why this works in fido (and
master).


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

end of thread, other threads:[~2015-07-07 16:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-19 10:11 "cross-localedef-native" build error (with gcc-5.0.0) Robert P. J. Day
2015-07-06 21:12 ` Daniel.
2015-07-07  2:54   ` [PATCH] cross-localedef-native_2.20.bb: fix for gcc5 Richard Tollerton
2015-07-07  3:34     ` Daniel.
2015-07-07  8:29     ` Burton, Ross
2015-07-07  8:29       ` [OE-core] " Burton, Ross
2015-07-07 12:17       ` Otavio Salvador
2015-07-07 12:17         ` [OE-core] " Otavio Salvador
2015-07-07 16:37       ` Richard Tollerton
2015-07-07 16:37         ` [OE-core] " Richard Tollerton

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.