Bug 78923 - Cannot build systemd with --enable-compat-libs and -O2
Summary: Cannot build systemd with --enable-compat-libs and -O2
Status: RESOLVED NOTOURBUG
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-19 19:23 UTC by Vadim Rutkovsky
Modified: 2014-06-21 03:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.