* [Buildroot] [PATCH 1/1] host-localdef fails under gcc5
@ 2015-08-31 21:50 Stephen Agate
2015-10-03 15:39 ` Romain Naour
2015-10-04 10:21 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Stephen Agate @ 2015-08-31 21:50 UTC (permalink / raw)
To: buildroot
Building host-localdef fails under gcc5.1 reporting multiple definitions and undefined references:
argp-help.o: In function `argp_fmtstream_write':
argp-help.c:(.text+0x1dc0): multiple definition of `argp_fmtstream_write'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x750): first defined here
argp-help.o: In function `argp_fmtstream_puts':
argp-help.c:(.text+0x1e10): multiple definition of `argp_fmtstream_puts'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x810): first defined here
argp-help.o: In function `argp_fmtstream_putc':
argp-help.c:(.text+0x1e80): multiple definition of `argp_fmtstream_putc'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x7b0): first defined here
argp-help.o: In function `argp_fmtstream_set_lmargin':
argp-help.c:(.text+0x1ed0): multiple definition of `argp_fmtstream_set_lmargin'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x590): first defined here
argp-help.o: In function `argp_fmtstream_set_rmargin':
argp-help.c:(.text+0x1f00): multiple definition of `argp_fmtstream_set_rmargin'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x5c0): first defined here
argp-help.o: In function `argp_fmtstream_set_wmargin':
argp-help.c:(.text+0x1f30): multiple definition of `argp_fmtstream_set_wmargin'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x5f0): first defined here
argp-help.o: In function `argp_fmtstream_point':
argp-help.c:(.text+0x1f60): multiple definition of `argp_fmtstream_point'
argp-fmtstream.o:argp-fmtstream.c:(.text+0x620): first defined here
charmap.o: In function `cmlr_open.constprop.2':
charmap.c:(.text+0x230a): undefined reference to `charmap_hash'
charmap.o: In function `charmap_read':
charmap.c:(.text+0x2397): undefined reference to `charmap_hash'
locfile.o: In function `locfile_read':
locfile.c:(.text+0x2e4): undefined reference to `locfile_hash'
locfile.c:(.text+0x8f4): undefined reference to `locfile_hash'
locfile.c:(.text+0x9b3): undefined reference to `locfile_hash'
locfile.c:(.text+0xa36): undefined reference to `locfile_hash'
collect2: error: ld returned 1 exit status
Makefile:58: recipe for target 'localedef' failed
Ref: http://permalink.gmane.org/gmane.comp.embedded.ptxdist.devel/12950
Signed-off-by: Stephen Agate <stephen.agate@talktalk.net>
---
package/localedef/localedef.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/localedef/localedef.mk b/package/localedef/localedef.mk
index 4762e64..1fe431a 100644
--- a/package/localedef/localedef.mk
+++ b/package/localedef/localedef.mk
@@ -12,6 +12,8 @@ HOST_LOCALEDEF_CONF_OPTS += \
--prefix=/usr \
--with-glibc=./eglibc
+HOST_LOCALEDEF_CONF_ENV = CFLAGS="$(HOST_CFLAGS) -fgnu89-inline"
+
# The makefile does not implement an install target
define HOST_LOCALEDEF_INSTALL_CMDS
$(INSTALL) -D -m 0755 $(@D)/localedef $(HOST_DIR)/usr/bin/localedef
--
2.5.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] host-localdef fails under gcc5
2015-08-31 21:50 [Buildroot] [PATCH 1/1] host-localdef fails under gcc5 Stephen Agate
@ 2015-10-03 15:39 ` Romain Naour
2015-10-04 10:21 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Romain Naour @ 2015-10-03 15:39 UTC (permalink / raw)
To: buildroot
Hi Stephen,
Le 31/08/2015 23:50, Stephen Agate a ?crit :
> Building host-localdef fails under gcc5.1 reporting multiple definitions and undefined references:
>
> argp-help.o: In function `argp_fmtstream_write':
> argp-help.c:(.text+0x1dc0): multiple definition of `argp_fmtstream_write'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x750): first defined here
> argp-help.o: In function `argp_fmtstream_puts':
> argp-help.c:(.text+0x1e10): multiple definition of `argp_fmtstream_puts'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x810): first defined here
> argp-help.o: In function `argp_fmtstream_putc':
> argp-help.c:(.text+0x1e80): multiple definition of `argp_fmtstream_putc'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x7b0): first defined here
> argp-help.o: In function `argp_fmtstream_set_lmargin':
> argp-help.c:(.text+0x1ed0): multiple definition of `argp_fmtstream_set_lmargin'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x590): first defined here
> argp-help.o: In function `argp_fmtstream_set_rmargin':
> argp-help.c:(.text+0x1f00): multiple definition of `argp_fmtstream_set_rmargin'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x5c0): first defined here
> argp-help.o: In function `argp_fmtstream_set_wmargin':
> argp-help.c:(.text+0x1f30): multiple definition of `argp_fmtstream_set_wmargin'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x5f0): first defined here
> argp-help.o: In function `argp_fmtstream_point':
> argp-help.c:(.text+0x1f60): multiple definition of `argp_fmtstream_point'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x620): first defined here
> charmap.o: In function `cmlr_open.constprop.2':
> charmap.c:(.text+0x230a): undefined reference to `charmap_hash'
> charmap.o: In function `charmap_read':
> charmap.c:(.text+0x2397): undefined reference to `charmap_hash'
> locfile.o: In function `locfile_read':
> locfile.c:(.text+0x2e4): undefined reference to `locfile_hash'
> locfile.c:(.text+0x8f4): undefined reference to `locfile_hash'
> locfile.c:(.text+0x9b3): undefined reference to `locfile_hash'
> locfile.c:(.text+0xa36): undefined reference to `locfile_hash'
> collect2: error: ld returned 1 exit status
> Makefile:58: recipe for target 'localedef' failed
>
> Ref: http://permalink.gmane.org/gmane.comp.embedded.ptxdist.devel/12950
>
> Signed-off-by: Stephen Agate <stephen.agate@talktalk.net>
I reproduced this build issue locally.
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
[Build tested only]
Tested-by: Romain Naour <romain.naour@openwide.fr>
Best regards,
Romain
> ---
> package/localedef/localedef.mk | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/package/localedef/localedef.mk b/package/localedef/localedef.mk
> index 4762e64..1fe431a 100644
> --- a/package/localedef/localedef.mk
> +++ b/package/localedef/localedef.mk
> @@ -12,6 +12,8 @@ HOST_LOCALEDEF_CONF_OPTS += \
> --prefix=/usr \
> --with-glibc=./eglibc
>
> +HOST_LOCALEDEF_CONF_ENV = CFLAGS="$(HOST_CFLAGS) -fgnu89-inline"
> +
> # The makefile does not implement an install target
> define HOST_LOCALEDEF_INSTALL_CMDS
> $(INSTALL) -D -m 0755 $(@D)/localedef $(HOST_DIR)/usr/bin/localedef
> --
> 2.5.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] host-localdef fails under gcc5
2015-08-31 21:50 [Buildroot] [PATCH 1/1] host-localdef fails under gcc5 Stephen Agate
2015-10-03 15:39 ` Romain Naour
@ 2015-10-04 10:21 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2015-10-04 10:21 UTC (permalink / raw)
To: buildroot
>>>>> "Stephen" == Stephen Agate <stephen.agate@talktalk.net> writes:
> Building host-localdef fails under gcc5.1 reporting multiple definitions and undefined references:
> argp-help.o: In function `argp_fmtstream_write':
> argp-help.c:(.text+0x1dc0): multiple definition of `argp_fmtstream_write'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x750): first defined here
> argp-help.o: In function `argp_fmtstream_puts':
> argp-help.c:(.text+0x1e10): multiple definition of `argp_fmtstream_puts'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x810): first defined here
> argp-help.o: In function `argp_fmtstream_putc':
> argp-help.c:(.text+0x1e80): multiple definition of `argp_fmtstream_putc'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x7b0): first defined here
> argp-help.o: In function `argp_fmtstream_set_lmargin':
> argp-help.c:(.text+0x1ed0): multiple definition of `argp_fmtstream_set_lmargin'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x590): first defined here
> argp-help.o: In function `argp_fmtstream_set_rmargin':
> argp-help.c:(.text+0x1f00): multiple definition of `argp_fmtstream_set_rmargin'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x5c0): first defined here
> argp-help.o: In function `argp_fmtstream_set_wmargin':
> argp-help.c:(.text+0x1f30): multiple definition of `argp_fmtstream_set_wmargin'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x5f0): first defined here
> argp-help.o: In function `argp_fmtstream_point':
> argp-help.c:(.text+0x1f60): multiple definition of `argp_fmtstream_point'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x620): first defined here
> charmap.o: In function `cmlr_open.constprop.2':
> charmap.c:(.text+0x230a): undefined reference to `charmap_hash'
> charmap.o: In function `charmap_read':
> charmap.c:(.text+0x2397): undefined reference to `charmap_hash'
> locfile.o: In function `locfile_read':
> locfile.c:(.text+0x2e4): undefined reference to `locfile_hash'
> locfile.c:(.text+0x8f4): undefined reference to `locfile_hash'
> locfile.c:(.text+0x9b3): undefined reference to `locfile_hash'
> locfile.c:(.text+0xa36): undefined reference to `locfile_hash'
> collect2: error: ld returned 1 exit status
> Makefile:58: recipe for target 'localedef' failed
> Ref: http://permalink.gmane.org/gmane.comp.embedded.ptxdist.devel/12950
> Signed-off-by: Stephen Agate <stephen.agate@talktalk.net>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-04 10:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-31 21:50 [Buildroot] [PATCH 1/1] host-localdef fails under gcc5 Stephen Agate
2015-10-03 15:39 ` Romain Naour
2015-10-04 10:21 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox