Skip to content

Instantly share code, notes, and snippets.

@realpg
Created September 21, 2018 12:04
Show Gist options
  • Save realpg/9fe632c9f5a83f1b9a48b9b976780354 to your computer and use it in GitHub Desktop.
Save realpg/9fe632c9f5a83f1b9a48b9b976780354 to your computer and use it in GitHub Desktop.
touch /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/.prepared_1efd686f6e00eebf767553a1d128eb23_6664517399ebbbc92a37c5bb081b5c53_check
mkdir -p /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone
cp -fpR ../src/* /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/
sed -e "s/module\\.o/bcm63xx-phone\\.o/g" -e "s/module-objs/bcm63xx-phone-objs/g" "/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/Makefile.src" > "/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/Makefile"
touch /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/.prepared_1efd686f6e00eebf767553a1d128eb23_6664517399ebbbc92a37c5bb081b5c53
rm -f /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/.configured_*
rm -f /root/openwrt-hg556/staging_dir/target-mips_mips32_musl/stamp/.bcm63xx-phone_installed
(cd /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/./; if [ -x ./configure ]; then find /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/ -name config.guess | xargs -r chmod u+w; find /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/ -name config.guess | xargs -r -n1 cp --remove-destination /root/openwrt-hg556/scripts/config.guess; find /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/ -name config.sub | xargs -r chmod u+w; find /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/ -name config.sub | xargs -r -n1 cp --remove-destination /root/openwrt-hg556/scripts/config.sub; AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone:bcm63xx-phone -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CFLAGS="-Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone:bcm63xx-phone -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone:bcm63xx-phone -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/root/openwrt-hg556/staging_dir/target-mips_mips32_musl/usr/include -I/root/openwrt-hg556/staging_dir/target-mips_mips32_musl/include -I/root/openwrt-hg556/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/usr/include -I/root/openwrt-hg556/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/include/fortify -I/root/openwrt-hg556/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/include " LDFLAGS="-L/root/openwrt-hg556/staging_dir/target-mips_mips32_musl/usr/lib -L/root/openwrt-hg556/staging_dir/target-mips_mips32_musl/lib -L/root/openwrt-hg556/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/usr/lib -L/root/openwrt-hg556/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/lib -znow -zrelro " ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; )
touch /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/.built
touch /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/.built_check
cat /dev/null > /root/openwrt-hg556/staging_dir/target-mips_mips32_musl/pkginfo/bcm63xx-phone.symvers; for subdir in .; do cat /root/openwrt-hg556/staging_dir/target-mips_mips32_musl/pkginfo/*.symvers 2>/dev/null > /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/$subdir/Module.symvers; done
make -C "/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.70" CROSS_COMPILE="mips-openwrt-linux-musl-" ARCH="mips" SUBDIRS="/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone" BCMPH_EFLAGS="-DBCMPH_MODULE_NAME=bcm63xx_phone -DBCMPH_MODULE_VERSION=0.2 -DBCMPH_EXPORT_DEV_FILE -DBCMPH_DEBUG" modules V=1
make[4]: Entering directory `/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.70'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/.tmp_versions ; rm -f /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone
mips-openwrt-linux-musl-gcc -Wp,-MD,/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/board/.board.o.d -nostdinc -isystem /root/openwrt-hg556/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/lib/gcc/mips-openwrt-linux-musl/7.3.0/include -I./arch/mips/include -I./arch/mips/include/generated -I./include -I./arch/mips/include/uapi -I./arch/mips/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -DVMLINUX_LOAD_ADDRESS=0xffffffff80010000 -DDATAOFFSET=0 -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-check-zero-division -mabi=32 -G 0 -mno-abicalls -fno-pic -pipe -mno-branch-likely -msoft-float -DGAS_HAS_SET_HARDFLOAT -Wa,-msoft-float -ffreestanding -fno-stack-check -march=mips32 -Wa,-mips32 -Wa,--trap -DTOOLCHAIN_SUPPORTS_VIRT -I./arch/mips/include/asm/mach-bcm63xx/ -I./arch/mips/include/asm/mach-generic -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 -fno-reorder-blocks -fno-tree-ch -fno-caller-saves --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector -Wno-unused-but-set-variable -Wno-unused-const-variable -fomit-frame-pointer -fno-var-tracking-assignments -g -femit-struct-debug-baseonly -fno-var-tracking -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wall -I/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/inc -DBCMPH_MODULE_NAME=bcm63xx_phone -DBCMPH_MODULE_VERSION=0.2 -DBCMPH_EXPORT_DEV_FILE -DBCMPH_DEBUG -I/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/extern/zarlink/arch/bcm63xx -I/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/extern/zarlink/2.24.0.lite/api_lib/includes -I/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/extern/zarlink/2.24.0.lite/api_lib/vp880_api -DMODULE -mno-long-calls -DKBUILD_BASENAME='"board"' -DKBUILD_MODNAME='"bcm63xx_phone"' -c -o /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/board/board.o /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/board/board.c
In file included from /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/extern/zarlink/arch/bcm63xx/vp_api_types.h:12:0,
from /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/extern/zarlink/2.24.0.lite/api_lib/includes/vp_api.h:43,
from /root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/board/board.c:31:
/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/inc/mpi.h:18:13: fatal error: ../drivers/spi/spi-bcm63xx.h: No such file or directory
# include <../drivers/spi/spi-bcm63xx.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[5]: *** [/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/board/board.o] Error 1
make[4]: *** [_module_/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone] Error 2
make[4]: Leaving directory `/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.14.70'
make[3]: *** [/root/openwrt-hg556/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/bcm63xx-phone/.built] Error 2
make[3]: Leaving directory `/root/openwrt-hg556/feeds/chan/bcm63xx-phone/bcm63xx-phone'
time: package/feeds/chan/bcm63xx-phone/compile#0.92#0.38#1.45
make[2]: *** [package/feeds/chan/bcm63xx-phone/compile] Error 2
make[2]: Leaving directory `/root/openwrt-hg556'
make[1]: *** [/root/openwrt-hg556/staging_dir/target-mips_mips32_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory `/root/openwrt-hg556'
make: *** [world] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment