Bug#669613: llvm-3.1: FTBFS on hurd-i386: conflict with st_dev/st_ino identifiers

Pino Toscano pino at debian.org
Fri Apr 20 12:15:22 UTC 2012


Package: llvm-3.1
Version: 3.1~+rc1-1
Severity: important
Tags: patch
User: debian-hurd at lists.debian.org
Usertags: hurd

Hi,

currently[1], llvm-3.1 fails to build on GNU/Hurd.

The problem is that the struct file_status on UNIX systems has two
members called st_dev and st_ino; those are also members of the
struct stat, and they are reserved identifiers which can also be
provided as #define (and this is the case for st_dev on Hurd).
The solution (attached) is to rename them, for example adding a
"fs_" prefix (= file status) to them.

Regarding the test suite, the situation wrt running it is the same as
described in #652283 (i.e. no $ORIGIN in RPATH); running it with
LD_LIBRARY_PATH properly exported gives the same result of linux-i386
(i.e. the only failure is CodeGen/X86/2010-06-14-fast-isel-fs-load.ll).

[1] https://buildd.debian.org/status/fetch.php?pkg=llvm-3.1&arch=hurd-i386&ver=3.1%7E%2Brc1-1&stamp=1334882462

Thanks,
-- 
Pino
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hurd_stat.diff
Type: text/x-diff
Size: 985 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20120420/995bec95/attachment.diff>


More information about the Pkg-llvm-team mailing list