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

Re: -bsd@ stuff to do during DebConf?



sys/ is plain freebsd svn 270273 from https://svn0.us-west.freebsd.org/base/stable/10/sys

% env -u DEB_BUILD_OPTIONS dpkg-buildpackage -b
dpkg-buildpackage: source package kfreebsd-10
dpkg-buildpackage: source version 10.1~svn270273-1
dpkg-buildpackage: source distribution UNRELEASED
dpkg-buildpackage: source changed by Steven Chamberlain <steven@pyro.eu.org>
dpkg-buildpackage: host architecture kfreebsd-amd64
 dpkg-source --before-build kfreebsd-10-experimental
dpkg-source: info: applying radeonkms_abort_nofw.diff
dpkg-source: info: applying mount_remount.diff
dpkg-source: info: applying userland.diff
dpkg-source: info: applying 001_misc.diff
dpkg-source: info: applying 002_maxpathlen.diff
dpkg-source: info: applying 003_glibc_dev_aicasm.diff
dpkg-source: info: applying 004_xargs.diff
dpkg-source: info: applying 107_mount_update.diff
dpkg-source: info: applying 109_linprocfs_non_x86.diff
dpkg-source: info: applying 110_ftbfs.diff
dpkg-source: info: applying 111_ipsec_nat-t.diff
dpkg-source: info: applying firmware_load.diff
dpkg-source: info: applying 902_version.diff
dpkg-source: info: applying 904_dev_full.diff
dpkg-source: info: applying 906_grow_sysv_ipc_limits.diff
dpkg-source: info: applying 908_linprocfs_is_not_proc.diff
dpkg-source: info: applying 910_GENERIC_hints.diff
dpkg-source: info: applying 914_psm.diff
dpkg-source: info: applying 915_ip6.v6only.diff
dpkg-source: info: applying 917_disable_kgssapi.diff
dpkg-source: info: applying 918_unix_socket_overflow.diff
dpkg-source: info: applying 919_delete_key.diff
dpkg-source: info: applying 920_linux_cflags.diff
dpkg-source: info: applying 921_signal_watchdog.diff
dpkg-source: info: applying 922_cc_version.diff
dpkg-source: info: applying 923_newvers_timestamp.diff
dpkg-source: info: applying 924_module_objdir.diff
dpkg-source: info: applying 999_config.diff
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -rf kfreebsd-source-* flavor-*
rm -f debian/kfreebsd-image-*.preinst
rm -f debian/kfreebsd-image-*.prerm
rm -f debian/kfreebsd-image-*.postinst
rm -f debian/kfreebsd-image-*.postrm
rm -f *-stamp
dh_clean
 debian/rules build
mkdir -p flavor-10.1-0-amd64
cp -af sys flavor-10.1-0-amd64/
# Compile objects with relative, not absolute paths, to avoid embedding
# full build tree paths into modules (Bug #757629)
find flavor-10.1-0-amd64/sys/modules/ \
 \( -name Makefile -o -name Makefile.inc \) \
 -exec sed -i 's@${.CURDIR}/@@' \{\} \;
touch src-flavor-amd64-stamp
# Add the abiname and the flavor to the kernel version
sed -i -e 's/^RELEASE=".*"/RELEASE="10.1-0-amd64"/g' flavor-10.1-0-amd64/sys/conf/newvers.sh
# Change ident to the kernel version
sed -i -e 's/^i=.*/i="Debian amd64 (10.1~svn270273-1)"/g' flavor-10.1-0-amd64/sys/conf/newvers.sh
# Set /lib/modules/ as module dir
sed -i -e 's,^KODIR?=.*,KODIR="/lib/modules/10.1-0-amd64",g' flavor-10.1-0-amd64/sys/conf/kern.pre.mk
# Always set explicit link target to match with ld's implicit target (needed
# to build on non-kFreeBSD)
sed -i \
	-e 's/elf32-i386-freebsd/elf64-x86-64-freebsd/g' \
	-e 's/elf64-x86-64-freebsd/elf64-x86-64-freebsd/g' \
	-e 's/elf32-tradlittlemips-freebsd/elf64-x86-64-freebsd/g' \
	-e 's/elf32-tradbigmips-freebsd/elf64-x86-64-freebsd/g' \
flavor-10.1-0-amd64/sys/conf/ldscript.amd64
# Configure the kernel
cp debian/arch/amd64/amd64.config flavor-10.1-0-amd64/sys/amd64/conf/
ln -sf amd64.config flavor-10.1-0-amd64/sys/amd64/conf/DEBCUSTOM
cd flavor-10.1-0-amd64/sys/amd64/conf \
	&& config DEBCUSTOM
WARNING: duplicate option `DEV_VT' encountered.
WARNING: duplicate device `vt' encountered.
WARNING: duplicate option `DEV_VT_VGA' encountered.
WARNING: duplicate device `vt_vga' encountered.
WARNING: duplicate option `QUOTA' encountered.
WARNING: duplicate option `KTRACE' encountered.
WARNING: duplicate option `INCLUDE_CONFIG_FILE' encountered.
WARNING: duplicate option `KDB_TRACE' encountered.
Kernel build directory is ../compile/DEBCUSTOM
Don't forget to do ``make cleandepend && make depend''
# Build it
MAKEFLAGS= make MACHINE_ARCH=amd64 -DWITHOUT_SOURCELESS -DWITHOUT_CLANG_IS_CC WERROR= -DWITHOUT_CTF -DWITHOUT_KERNEL_SYMBOLS	 -DWITHOUT_SSP CC=clang-3.4 -C flavor-10.1-0-amd64/sys/amd64/compile/DEBCUSTOM/ depend
machine -> ../../../amd64/include
x86 -> ../../../x86/include
clang-3.4 -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-format -nostdinc -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../dev/ath -I../../../dev/ath/ath_hal -I../../../contrib/dev/ath/ath_hal -I../../../contrib/ngatm -I../../../dev/twa -I../../../dev/cxgb -I../../../dev/cxgbe -I../../../contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -Ulinux -U__linux__ -D__FreeBSD__=10 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding ../../../amd64/amd64/genassym.c
NM='nm' sh ../../../kern/genassym.sh genassym.o > assym.s
awk -f ../../../tools/vnode_if.awk ../../../kern/vnode_if.src -p
awk -f ../../../tools/vnode_if.awk ../../../kern/vnode_if.src -q
awk -f ../../../tools/vnode_if.awk ../../../kern/vnode_if.src -h
awk -f ../../../tools/acpi_quirks2h.awk ../../../dev/acpica/acpi_quirks
CC='clang-3.4' make -f ../../../dev/aic7xxx/aicasm/Makefile MAKESRCPATH=../../../dev/aic7xxx/aicasm
Warning: Object directory not changed from original /home/christoph/debian/kfreebsd-10-experimental/flavor-10.1-0-amd64/sys/amd64/compile/DEBCUSTOM
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
clang-3.4 -O2 -pipe  -D_GNU_SOURCE -isystem /usr/include/freebsd -I../../../dev/aic7xxx/aicasm -std=gnu99 -Qunused-arguments -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-missing-prototypes -c ../../../dev/aic7xxx/aicasm/aicasm.c
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:16:7: error: conflicting types for 'funopen'
FILE *funopen (const void *cookie, int (*readfn)(void *, char *, int),
      ^
/usr/include/bsd/stdio.h:57:7: note: previous declaration is here
FILE *funopen(const void *cookie,
      ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:19:7: error: expected ')'
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
      ^
/usr/include/bsd/stdio.h:63:48: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                               ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:19:7: note: to match this '('
/usr/include/bsd/stdio.h:63:48: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                               ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:19:7: error: expected ')'
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
      ^
/usr/include/bsd/stdio.h:63:54: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                                     ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:19:7: note: to match this '('
/usr/include/bsd/stdio.h:63:54: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                                     ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:19:7: error: expected ')'
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
      ^
/usr/include/bsd/stdio.h:63:60: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:19:7: note: to match this '('
/usr/include/bsd/stdio.h:63:60: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:19:7: error: conflicting types for 'funopen'
FILE *fropen (void *cookie, int (*readfn)(void *, char *, int));
      ^
/usr/include/bsd/stdio.h:63:28: note: expanded from macro 'fropen'
#define fropen(cookie, fn) funopen(cookie, fn, NULL, NULL, NULL)
                           ^
/usr/include/bsd/stdio.h:57:7: note: previous declaration is here
FILE *funopen(const void *cookie,
      ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:20:7: error: expected ')'
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
      ^
/usr/include/bsd/stdio.h:64:44: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:20:7: note: to match this '('
/usr/include/bsd/stdio.h:64:44: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:20:7: error: expected ')'
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
      ^
/usr/include/bsd/stdio.h:64:54: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                                     ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:20:7: note: to match this '('
/usr/include/bsd/stdio.h:64:54: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                                     ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:20:7: error: expected ')'
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
      ^
/usr/include/bsd/stdio.h:64:60: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:24: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
                       ^
/usr/include/freebsd/stdio.h:20:7: note: to match this '('
/usr/include/bsd/stdio.h:64:60: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                                                           ^
/usr/lib/llvm-3.4/bin/../lib/clang/3.4.2/include/stddef.h:77:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^
In file included from ../../../dev/aic7xxx/aicasm/aicasm.c:50:
/usr/include/freebsd/stdio.h:20:7: error: conflicting types for 'funopen'
FILE *fwopen (void *cookie, int (*writefn)(void *, const char *, int));
      ^
/usr/include/bsd/stdio.h:64:28: note: expanded from macro 'fwopen'
#define fwopen(cookie, fn) funopen(cookie, NULL, fn, NULL, NULL)
                           ^
/usr/include/bsd/stdio.h:57:7: note: previous declaration is here
FILE *funopen(const void *cookie,
      ^
9 errors generated.
*** [aicasm.o] Error code 1

Stop in /home/christoph/debian/kfreebsd-10-experimental/flavor-10.1-0-amd64/sys/amd64/compile/DEBCUSTOM.
*** [aicasm] Error code 1

Stop in /home/christoph/debian/kfreebsd-10-experimental/flavor-10.1-0-amd64/sys/amd64/compile/DEBCUSTOM.
debian/rules:186: recipe for target 'build-flavor-amd64-stamp' failed
make: *** [build-flavor-amd64-stamp] Error 1
rm src-flavor-amd64-stamp
dpkg-buildpackage: error: debian/rules build gave error exit status 2


Reply to: