Bug 78923

Summary: Cannot build systemd with --enable-compat-libs and -O2
Product: systemd Reporter: Vadim Rutkovsky <vrutkovs>
Component: generalAssignee: systemd-bugs
Status: RESOLVED NOTOURBUG QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Vadim Rutkovsky 2014-05-19 19:23:49 UTC
Failed to build systemd with --enable-compat-libs and -O2 set, error message is:

/tmp/ccbqZQEN.ltrans0.ltrans.o: In function `sd_booted':
ccbqZQEN.ltrans0.o:(.text+0x140): multiple definition of `sd_booted'

and for some other functions as well.
Disabling --enable-compat-libs or switching -O2 to -O0 makes it build.

GCC 4.8.2, yocto 1.6 x86_64
Comment 1 Zbigniew Jedrzejewski-Szmek 2014-06-21 03:58:03 UTC
Please try with a newer or different gcc and linker. I now tried to build with -O2 and gcc-4.8.3 and everything seems to work fine.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.