Bug 1160283

Summary: memcached fails with -fno-common
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: Marcus Rückert <mrueckert>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: alynx.zhou, martin.liska
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1160244    

Description Martin Liška 2020-01-07 14:00:43 UTC
The package fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:M/memcached/standard/x86_64

Please take a look at the META issue for the instructions.
Comment 1 Marcus Rückert 2020-01-13 11:03:52 UTC
What is the meta issue?
Comment 2 Martin Liška 2020-01-13 11:07:23 UTC
(In reply to Marcus Rückert from comment #1)
> What is the meta issue?

It's the issue blocked by this one.
Comment 3 Martin Liška 2020-02-04 11:25:28 UTC
May I please ping this issue?
Comment 4 Martin Liška 2020-03-02 12:00:23 UTC
May I please ping this as we're slowly (but surely) approaching a new GCC release and this will unblock acceptance of the new package into Factory.
Comment 5 Martin Liška 2020-03-23 16:56:44 UTC
Another ping please..
Comment 6 Martin Liška 2020-03-31 11:38:53 UTC
Upstream bug:
https://github.com/memcached/memcached/issues/633
Comment 7 Marcus Rückert 2020-03-31 11:57:06 UTC
The LTO thing was the only thing that breaks with -fno-common?
Comment 8 Martin Liška 2020-03-31 12:00:19 UTC
I also see these linker errors:

[   41s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: memcached-hash.o (symbol from plugin): in function `hash_init':
[   41s] (.text+0x0): multiple definition of `hash'; memcached-memcached.o (symbol from plugin):(.text+0x0): first defined here
[   41s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: memcached-jenkins_hash.o (symbol from plugin): in function `jenkins_hash':
[   41s] (.text+0x0): multiple definition of `hash'; memcached-memcached.o (symbol from plugin):(.text+0x0): first defined here
[   41s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: memcached-slabs.o (symbol from plugin): in function `hash':
[   41s] (.text+0x0): multiple definition of `hash'; memcached-memcached.o (symbol from plugin):(.text+0x0): first defined here
[   41s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: memcached-items.o (symbol from plugin): in function `item_stats_reset':
[   41s] (.text+0x0): multiple definition of `hash'; memcached-memcached.o (symbol from plugin):(.text+0x0): first defined here
[   41s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: memcached-assoc.o (symbol from plugin): in function `hashpower':
[   41s] (.text+0x0): multiple definition of `hash'; memcached-memcached.o (symbol from plugin):(.text+0x0): first defined here
[   41s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: memcached-thread.o (symbol from plugin): in function `item_lock':
[   41s] (.text+0x0): multiple definition of `hash'; memcached-memcached.o (symbol from plugin):(.text+0x0): first defined here
[   41s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: memcached-daemon.o (symbol from plugin): in function `daemonize':
[   41s] (.text+0x0): multiple definition of `hash'; memcached-memcached.o (symbol from plugin):(.text+0x0): first defined here
[   41s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: memcached-stats.o (symbol from plugin): in function `hash':
[   41s] (.text+0x0): multiple definition of `hash'; memcached-memcached.o (symbol from plugin):(.text+0x0): first defined here
[   41s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: memcached-util.o (symbol from plugin): in function `uriencode_init':
[   41s] (.text+0x0): multiple definition of `hash'; memcached-memcached.o (symbol from plugin):(.text+0x0): first defined here
[   41s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: memcached-logger.o (symbol from plugin): in function `watchers':
[   41s] (.text+0x0): multiple definition of `hash'; memcached-memcached.o (symbol from plugin):(.text+0x0): first defined here
[   41s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: memcached-crawler.o (symbol from plugin): in function `active_crawler_mod':
[   41s] (.text+0x0): multiple definition of `hash'; memcached-memcached.o (symbol from plugin):(.text+0x0): first defined here
[   41s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: memcached-slab_automove.o (symbol from plugin): in function `slab_automove_init':
[   41s] (.text+0x0): multiple definition of `hash'; memcached-memcached.o (symbol from plugin):(.text+0x0): first defined here
[   41s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: memcached-sasl_defs.o (symbol from plugin): in function `locations':
[   41s] (.text+0x0): multiple definition of `hash'; memcached-memcached.o (symbol from plugin):(.text+0x0): first defined here
Comment 9 Marcus Rückert 2020-03-31 13:35:53 UTC
so it is a different issue.
Comment 10 Martin Liška 2020-04-03 06:35:34 UTC
Note that we moved to :N staging:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:N/memcached/standard/x86_64
Comment 11 Martin Liška 2020-04-14 06:08:19 UTC
@darix: It seems that you have a typo in spec file:
https://build.opensuse.org/package/live_build_log/home:darix:branches:network:utilities/memcached/openSUSE_Factory/x86_64
Comment 12 Martin Liška 2020-04-15 05:53:16 UTC
I can confirm home:darix:branches:network:utilities/memcached can be build with Staging:N gcc10 compiler. Thanks for the fix!
Comment 13 Martin Liška 2020-04-22 04:16:19 UTC
Now it's fixed in devel project.