Package: llvm-gcc-4.2
Version: 2.6-2
Severity: important
Tags: patch
User: debian-...@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-omi
 t-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.
--- a/gcc/limitx.h
+++ b/gcc/limitx.h
@@ -12,7 +12,9 @@
 #define _GCC_LIMITS_H_
 #endif
 /* LLVM LOCAL end Fix for Linux builds */
+#if 0
 #include_next <limits.h>
+#endif
 #undef _GCC_NEXT_LIMITS_H
 #endif
 /* APPLE LOCAL end 4401222 */

Reply via email to