Bug#559385: llvm-gcc-4.2: FTBFS on GNU/kFreeBSD

Cyril Brulebois kibi at debian.org
Fri Dec 4 00:27:01 UTC 2009


Package: llvm-gcc-4.2
Version: 2.6-2
Severity: important
Tags: patch
User: debian-bsd at lists.debian.org
Usertags: kfreebsd

Hi,

your package FTBFS on GNU/kFreeBSD because of limits.h include issues:
| /build/buildd-llvm-gcc-4.2_2.6-2-kfreebsd-amd64-RhEG3J/llvm-gcc-4.2-2.6/build-llvm-gcc-4.2/./gcc/xgcc -B/build/buildd-llvm-gcc-4.2_2.6-2-kfreebsd-amd64-RhEG3J/llvm-gcc-4.2-2.6/build-llvm-gcc-4.2/./gcc/ -B/usr/lib/llvm/gcc-4.2/x86_64-kfreebsd-gnu/bin/ -B/usr/lib/llvm/gcc-4.2/x86_64-kfreebsd-gnu/lib/ -isystem /usr/lib/llvm/gcc-4.2/x86_64-kfreebsd-gnu/include -isystem /usr/lib/llvm/gcc-4.2/x86_64-kfreebsd-gnu/sys-include -O2 -O2 -g -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I../../llvm-gcc-4.2-2.6/gcc -I../../llvm-gcc-4.2-2.6/gcc/. -I../../llvm-gcc-4.2-2.6/gcc/../include -I../../llvm-gcc-4.2-2.6/gcc/../libcpp/include  -I../../llvm-gcc-4.2-2.6/gcc/../libdecnumber -I../libdecnumber -I/usr/lib/llvm/include -I/usr/include -I/usr/include/llvm -I/usr/include/llvm-c  -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder  -fno-omit-frame-pointer -fno-asynchronous-unwind-tables \
| 	  -c ../../llvm-gcc-4.2-2.6/gcc/crtstuff.c -DCRT_BEGIN \
| 	  -o crtbegin.o
| In file included from /build/buildd-llvm-gcc-4.2_2.6-2-kfreebsd-amd64-RhEG3J/llvm-gcc-4.2-2.6/build-llvm-gcc-4.2/./gcc/include/limits.h:15,
|                  from ../../llvm-gcc-4.2-2.6/gcc/tsystem.h:108,
|                  from ../../llvm-gcc-4.2-2.6/gcc/crtstuff.c:68:
| /usr/include/limits.h:125:26: error: no include path in which to search for limits.h
| make[4]: *** [crtbegin.o] Error 1

Given there's already some kind of hack to fix the Linux build, I chose
to completely disable the include (see attached patch), and it then went
fine.

I guess you might want to:
 - only call #include_next if linux is defined;
 - or try and enable the hack for GNU/kFreeBSD too (you then want to
   check for __GLIBC__); I didn't try so because the include didn't seem
   needed.

If you want me to run a test build with a given patch, just ask.

Thanks for considering.

Mraw,
KiBi.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Try-and-fix-non-Linux-builds.patch
Type: text/x-c
Size: 238 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20091204/5accfe49/attachment.bin>


More information about the Pkg-llvm-team mailing list