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
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.