Summary: | assertion error's on compilation for arm | ||
---|---|---|---|
Product: | systemd | Reporter: | Stefan Schantl <stefan.schantl> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED NOTOURBUG | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | CC: | michael.tremer |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Stefan Schantl
2012-06-23 12:55:47 UTC
That looks like a bug in your binutils, not systemd. In fact, if the build tools crash when building a project it's definitely a build tool problem, never a project problem. Lennart, you are possibly right. If I had a guess I would say it is related to LTO or some stuff. We could not see this error on any other package so far, so maybe there is some code which may possibly cause this error? Newer versions of GCC (4.7.1) and binutils (2.22.52.0.3) abort the whole systemd build, so we need to do something about it :D There's nothing really that interesting in the systemd build, except that we comprehensively make use of "-ffunction-sections -fdata-sections" plus "-Wl,--as-needed -Wl,--gc-sections". Dropping thes eoptions might fix the build for you (at the expense of much bigger binaries). We did some further investigation on the topic (latest binutils version) and manual builds. Passing --gc-sections causes the problems on nearly all linker jobs on the ARM platform. Removing that from CCLDFLAGS lets us run the build through. The issue is known to the binutils team for quite some time: http://sourceware.org/bugzilla/show_bug.cgi?id=14189 Thank you Lennart for giving the right hint. |
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.