Bug#733376: ctfutils: FTBFS: elf.h:22:3: error: #error This header is unsupported on x86-64.

2013-12-28 Thread David Suárez
Source: ctfutils
Version: 9.2-1
Severity: serious
Tags: jessie sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20131226 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
 cc  -Wall -Wno-unknown-pragmas -g -pipe -fPIC -I. -D_GNU_SOURCE 
 -DNEED_SOLARIS_BOOLEAN -isystem /usr/include/freebsd 
 -Werror=implicit-function-declaration  -O2  -DCTF_OLD_VERSIONS 
 -I/«PKGBUILDDIR»/cddl/lib/libctf/../../../sys/cddl/compat/opensolaris  
 -I/«PKGBUILDDIR»/cddl/lib/libctf/../../../cddl/compat/opensolaris/include  
 -I/«PKGBUILDDIR»/cddl/contrib/opensolaris/head  
 -I/«PKGBUILDDIR»/cddl/contrib/opensolaris/common/ctf  
 -I/«PKGBUILDDIR»/cddl/contrib/opensolaris/lib/libctf/common  
 -I/«PKGBUILDDIR»/sys/cddl/contrib/opensolaris/uts/common -std=gnu99 
 -fstack-protector -Wno-pointer-sign -c 
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../cddl/contrib/opensolaris/common/ctf/ctf_create.c
  -o ctf_create.o
 In file included from 
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../cddl/contrib/opensolaris/common/ctf/ctf_create.c:30:0:
 /«PKGBUILDDIR»/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h:220:0: 
 warning: howmany redefined [enabled by default]
  #define howmany(x, y) (((x)+((y)-1))/(y))
  ^
 In file included from /usr/include/freebsd/sys/param.h:38:0,
  from 
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../sys/cddl/compat/opensolaris/sys/param.h:30,
  from 
 /«PKGBUILDDIR»/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h:33,
  from 
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../cddl/contrib/opensolaris/common/ctf/ctf_create.c:30:
 /usr/include/x86_64-linux-gnu/sys/param.h:87:0: note: this is the location of 
 the previous definition
  # define howmany(x, y)  (((x) + ((y) - 1)) / (y))
  ^
 In file included from 
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../cddl/contrib/opensolaris/common/ctf/ctf_create.c:30:0:
 /«PKGBUILDDIR»/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h:221:0: 
 warning: roundup redefined [enabled by default]
  #define roundup(x, y) x)+((y)-1))/(y))*(y))
  ^
 In file included from /usr/include/freebsd/sys/param.h:38:0,
  from 
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../sys/cddl/compat/opensolaris/sys/param.h:30,
  from 
 /«PKGBUILDDIR»/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h:33,
  from 
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../cddl/contrib/opensolaris/common/ctf/ctf_create.c:30:
 /usr/include/x86_64-linux-gnu/sys/param.h:90:0: note: this is the location of 
 the previous definition
  # define roundup(x, y)  (__builtin_constant_p (y)  powerof2 (y)
  \
  ^
 In file included from 
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../sys/cddl/compat/opensolaris/sys/elf.h:30:0,
  from 
 /«PKGBUILDDIR»/sys/cddl/contrib/opensolaris/uts/common/sys/ctf_api.h:47,
  from 
 /«PKGBUILDDIR»/cddl/contrib/opensolaris/common/ctf/ctf_impl.h:36,
  from 
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../cddl/contrib/opensolaris/common/ctf/ctf_create.c:33:
 /usr/include/x86_64-linux-gnu/sys/elf.h:22:3: error: #error This header is 
 unsupported on x86-64.
  # error This header is unsupported on x86-64.
^
 In file included from 
 /«PKGBUILDDIR»/sys/cddl/contrib/opensolaris/uts/common/sys/ctf_api.h:47:0,
  from 
 /«PKGBUILDDIR»/cddl/contrib/opensolaris/common/ctf/ctf_impl.h:36,
  from 
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../cddl/contrib/opensolaris/common/ctf/ctf_create.c:33:
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../sys/cddl/compat/opensolaris/sys/elf.h:34:1:
  error: unknown type name 'Elf__ELF_WORD_SIZE_Addr'
  __sElfN(Addr);
  ^
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../sys/cddl/compat/opensolaris/sys/elf.h:35:1:
  error: unknown type name 'Elf__ELF_WORD_SIZE_Cap'
  __sElfN(Cap);
  ^
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../sys/cddl/compat/opensolaris/sys/elf.h:36:1:
  error: unknown type name 'Elf__ELF_WORD_SIZE_Dyn'
  __sElfN(Dyn);
  ^
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../sys/cddl/compat/opensolaris/sys/elf.h:37:1:
  error: unknown type name 'Elf__ELF_WORD_SIZE_Ehdr'
  __sElfN(Ehdr);
  ^
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../sys/cddl/compat/opensolaris/sys/elf.h:38:1:
  error: unknown type name 'Elf__ELF_WORD_SIZE_Move'
  __sElfN(Move);
  ^
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../sys/cddl/compat/opensolaris/sys/elf.h:39:1:
  error: unknown type name 'Elf__ELF_WORD_SIZE_Off'
  __sElfN(Off);
  ^
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../sys/cddl/compat/opensolaris/sys/elf.h:40:1:
  error: unknown type name 'Elf__ELF_WORD_SIZE_Phdr'
  __sElfN(Phdr);
  ^
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../sys/cddl/compat/opensolaris/sys/elf.h:41:1:
  error: unknown type name 'Elf__ELF_WORD_SIZE_Rel'
  __sElfN(Rel);
  ^
 /«PKGBUILDDIR»/cddl/lib/libctf/../../../sys/cddl/compat/opensolaris/sys/elf.h:42:1:
  error: unknown type name 

Bug#733376: ctfutils: FTBFS: elf.h:22:3: error: #error This header is unsupported on x86-64.

2013-12-28 Thread Robert Millan
On 28/12/2013 18:29, David Suárez wrote:
 /usr/include/x86_64-linux-gnu/sys/elf.h:22:3: error: #error This header is 
 unsupported on x86-64.
  # error This header is unsupported on x86-64.

If sys/elf.h is not supported on amd64, why is this header even present?

-- 
Robert Millan


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org