[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kfreebsd-10 FTBFS with libbsd/0.7.0



Christoph Egger <christoph@debian.org> writes:

> Steven Chamberlain <steven@pyro.eu.org> writes:
>> On 25/08/14 23:46, Christoph Egger wrote:
>>> I think it's no problem so far. It's just that the biarch libc-dev thing
>>> is not part on build-essential and therefore not installe don the
>>> buildds (if one doesn't build depend on it). I'd prbably just add a `-I
>>> /usr/include/$triple` at the right place to get things to build for
>>> now -- cleaner than adding a build-depends line -- if I figure out how.
>>
>> But from your sbuild log it (libc0.1-dev-i386) was actually being
>> brought in as a dependency?
>
> I added a `--add-depends=libc0.1-dev-i386` to my sbuild call ;-) not
> something that I'd do on the buildd

fwiw [0] helps already but seems to not get processed everywhere it
should. Now if one could reliably get the right biarch package verywhere
kfreebsd-10 is supposed to build .. (or just build it on
kfreebsd-{amd64,i386} as this is experimental and the rest of the
architectures is just nice-to-have?) What do you think?

  Christoph

===> aic7xxx (depend)
===> aic7xxx/aicasm (depend)
byacc -b aicasm_gram  -d -o aicasm_gram.c ../../../dev/aic7xxx/aicasm/aicasm_gram.y
byacc -b aicasm_macro_gram -p mm -d -o aicasm_macro_gram.c ../../../dev/aic7xxx/aicasm/aicasm_macro_gram.y
lex -t   ../../../dev/aic7xxx/aicasm/aicasm_scan.l > aicasm_scan.c
lex -t  -Pmm ../../../dev/aic7xxx/aicasm/aicasm_macro_scan.l > aicasm_macro_scan.c
rm -f .depend_aicasm
CC='clang-3.4' mkdep -f .depend_aicasm -a    -D_GNU_SOURCE -I../../../dev/aic7xxx/aicasm -std=gnu99   ../../../dev/aic7xxx/aicasm/aicasm.c ../../../dev/aic7xxx/aicasm/aicasm_symbol.c aicasm_gram.c aicasm_macro_gram.c aicasm_scan.c aicasm_macro_scan.c
../../../dev/aic7xxx/aicasm/aicasm.c:44:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h>
         ^
1 error generated.
../../../dev/aic7xxx/aicasm/aicasm_symbol.c:45:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h>
         ^
1 error generated.
../../../dev/aic7xxx/aicasm/aicasm_gram.y:46:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h>
         ^
1 error generated.
../../../dev/aic7xxx/aicasm/aicasm_macro_gram.y:46:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h>
         ^
1 error generated.
In file included from <stdout>:29:
In file included from /usr/include/stdio.h:27:
/usr/include/features.h:375:12: fatal error: 'sys/cdefs.h' file not found
#  include <sys/cdefs.h>
           ^
1 error generated.
In file included from <stdout>:48:
In file included from /usr/include/stdio.h:27:
/usr/include/features.h:375:12: fatal error: 'sys/cdefs.h' file not found
#  include <sys/cdefs.h>
           ^
1 error generated.
mkdep: compile failed
*** [.depend_aicasm] Error code 1

[0]
Index: kfreebsd-10-experimental/sys/dev/aic7xxx/aicasm/Makefile
===================================================================
--- kfreebsd-10-experimental.orig/sys/dev/aic7xxx/aicasm/Makefile
+++ kfreebsd-10-experimental/sys/dev/aic7xxx/aicasm/Makefile
@@ -18,7 +18,8 @@ LDADD=	-ll
 WARNS?=	5
 NO_WERROR?=	1
 LDADD+= -ldb -lbsd
-CFLAGS+= -D_GNU_SOURCE -isystem /usr/include/freebsd
+DEB_MULTIARCH_HACK != dpkg-architecture -qDEB_HOST_MULTIARCH
+CFLAGS+= -D_GNU_SOURCE -isystem /usr/include/freebsd -isystem /usr/include/${DEB_MULTIARCH_HACK}
 
 # Correct path for kernel builds
 # Don't rely on the kernel's .depend file


Reply to: