Summary: | [bisected] [ia64] systemd fails to compile with error: redefinition of 'struct ia64_fpreg' | ||
---|---|---|---|
Product: | systemd | Reporter: | Émeric Maschino <emeric.maschino> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED NOTOURBUG | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | CC: | emeric.maschino, pachoramos1 |
Version: | unspecified | ||
Hardware: | IA64 (Itanium) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 67961 | ||
Attachments: | Failed compilation of systemd with error: redefinition of 'struct ia64_fpreg' |
Description
Émeric Maschino
2013-08-09 22:55:56 UTC
It's looks like a bug in kernel headers and/or glibc headers. It would be best if you could investigate which of those two is broken, and file the bug there. (In reply to comment #1) > It's looks like a bug in kernel headers and/or glibc headers. It would be > best if you could investigate which of those two is broken, and file the bug > there. You need to take the full list of #includes, and remove them step by step until you find the minimal set that reproduces the error. (In reply to comment #2) > You need to take the full list of #includes, and remove them step by step > until you find the minimal set that reproduces the error. That's interesting. Do you think the same systemd source code could successfully compile with a different version of kernel or glibc? I'm asking this, because it appears that Debian successfully built systemd-204 for ia64 [1][2]. Émeric [1] http://snapshot.debian.org/package/systemd/204-1/ [2] http://snapshot.debian.org/package/systemd/204-2/ (In reply to comment #2) > You need to take the full list of #includes, and remove them step by step > until you find the minimal set that reproduces the error. You're absolutely right, this has nothing to do with systemd. I just successfully compiled systemd-204 on a Debian ia64 system. Bu contrast, the exact same systemd-204 source code fails to compile on Gentoo ia64 with error: redefinition of 'struct ia64_fpreg'. Googling a little bit, I found this 10-year old bug reported against glibc [1]. This explain why systemd compiles fine on Debian: eglibc is shipped rather than glibc. Sorry for the noise, closing bug. Émeric [1] http://sourceware.org/bugzilla/show_bug.cgi?id=762 Until glibc is fixed, maybe a workaround like the following (currently needed for "audit") could be used in systemd to allow its compilation on ia64 (since looks like glibc bug is there for really a long time without solution): http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-process/audit/files/audit-2.1.3-ia64-compile-fix.patch?view=markup (In reply to comment #5) > Until glibc is fixed, maybe a workaround like the following (currently > needed for "audit") could be used in systemd to allow its compilation on > ia64 (since looks like glibc bug is there for really a long time without > solution): > http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-process/audit/ > files/audit-2.1.3-ia64-compile-fix.patch?view=markup I am pretty sure that it's a better idea to apply such a fix to glibc on ia64 on your distro rather than to each and every app making use of it... |
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.