Bug#782860: FTBFS : use of undeclared identifier '__NR_open'

2015-04-18 Thread Erik de Castro Lopo
Erik de Castro Lopo wrote:

 To me it looks like some dependency is missing.

Same problem even after I install linux-headers-amd64.

Erik
-- 
--
Erik de Castro Lopo
http://www.mega-nerd.com/


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



Bug#782860: FTBFS : use of undeclared identifier '__NR_open'

2015-04-18 Thread Erik de Castro Lopo
Source: llvm-toolchain-3.5
Version: llvm-toolchain-3.5 (1:3.5-10)
Severity: important

Trying to build from source so I can then raise another bug *and*
provide a patch when I discovered I was not able to build the 
package from the un-modified Debian source package.

I just used `apt-get source llvm-toolchain-3.5` to get the sources
and then changed into the directory and used `dpkg-buildpackage`
to build it. Everything was going ok until I go to the part included
below.

To me it looks like some dependency is missing.

Cheers,
Erik

/tmp/llvm-toolchain-3.5-3.5/build-llvm/Release/bin/clang -std=c++11 
-fno-exceptions -fPIC -funwind-tables 
-I/tmp/llvm-toolchain-3.5-3.5/projects/compiler-rt/lib 
-I/tmp/llvm-toolchain-3.5-3.5/projects/compiler-rt/include -Wall -Werror -O3 
-fomit-frame-pointer -m32 -fPIE -fno-builtin -gline-tables-only -fno-rtti -c -o 
/tmp/llvm-toolchain-3.5-3.5/build-llvm/tools/clang/runtime/compiler-rt/clang_linux/san-i386/i386/SubDir.lib__sanitizer_common/sanitizer_linux.o
 
/tmp/llvm-toolchain-3.5-3.5/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
/tmp/llvm-toolchain-3.5-3.5/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc:123:27:
 error: use of
  undeclared identifier '__NR_open'
  return internal_syscall(SYSCALL(open), (uptr)filename, flags);
  ^
/tmp/llvm-toolchain-3.5-3.5/projects/compiler-rt/lib/sanitizer_common/sanitizer_syscall_generic.inc:17:24:
 note: 
  expanded from macro 'SYSCALL'
# define SYSCALL(name) __NR_ ## name
   ^
scratch space:57:1: note: expanded from here
__NR_open
^



-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (500, 'testing-updates'), 
(500, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf, arm64

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_AU.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)


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