negan07 / ancistrus

Netgear's D7000 Nighthawk Router Experience Distributed Project
https://negan07.github.io/ancistrus/
GNU General Public License v2.0
66 stars 17 forks source link

Compile Issue #32

Closed dniasoff closed 6 years ago

dniasoff commented 6 years ago

Hi,

Sorry if I appear stupid. Using Debian 9 with latest patches. I have managed to compile the toolchain without issues. When it comes to sources I hit the following issue `root@d7000-dev:/home/mockbuild/ancistrus# make sources -j 1 V=s -e KERNEL: make vmlinux.lz PROJECT=D7000 make -C Source -s -e IMG: clean -e TARGET: clean -e SOURCE: PRE_FS garbage orphans cleanup -e SOURCE: make UCLIBC -e SOURCE: make APPS -e APPS: make nvram -e APPS: make sc_libs -e APPS: make cnapt -e APPS: make libiconv.1.8

-e libiconv-1.8/lib

All LIBS are OK! -e APPS: make flex-2.5.4 -e APPS: make openssl-1.0.0r making all in crypto... making all in crypto/objects... making all in crypto/md4... making all in crypto/md5... making all in crypto/sha... making all in crypto/mdc2... making all in crypto/hmac... making all in crypto/ripemd... making all in crypto/whrlpool... making all in crypto/des... making all in crypto/aes... making all in crypto/rc2... making all in crypto/rc4... making all in crypto/idea... making all in crypto/bf... making all in crypto/cast... making all in crypto/camellia... making all in crypto/seed... making all in crypto/modes... making all in crypto/bn... making all in crypto/ec... making all in crypto/rsa... making all in crypto/dsa... making all in crypto/ecdsa... making all in crypto/dh... making all in crypto/ecdh... making all in crypto/dso... making all in crypto/engine... making all in crypto/buffer... making all in crypto/bio... making all in crypto/stack... making all in crypto/lhash... making all in crypto/rand... making all in crypto/err... making all in crypto/evp... making all in crypto/asn1... making all in crypto/pem... making all in crypto/x509... making all in crypto/x509v3... making all in crypto/conf... making all in crypto/txt_db... making all in crypto/pkcs7... making all in crypto/pkcs12... making all in crypto/comp... making all in crypto/ocsp... making all in crypto/ui... making all in crypto/krb5... making all in crypto/cms... making all in crypto/pqueue... making all in crypto/ts... making all in ssl... making all in engines...

making all in engines/ccgost... making all in apps... making all in test... making all in tools... -e APPS: make libixml -e APPS: make samba-3.0.22 Removing prototype headers Linking bin/smbclient Using FLAGS = -marm -march=armv7-a -mcpu=cortex-a9 -mtune=cortex-a9 -pipe -funit-at-a-time -fomit-frame-pointer -ffixed-r8 -fno-common -mno-thumb-interwork -mabi=aapcs-linux -mfloat-abi=soft -Os -rdynamic -fPIC -DSC_BUILD -I./popt -Iinclude -I/home/mockbuild/ancistrus/D7000_V1.0.1.64_WW_src/Source/apps/samba-3.0.22/source/include -I/home/mockbuild/ancistrus/D7000_V1.0.1.64_WW_src/Source/apps/samba-3.0.22/source/ubiqx -I/home/mockbuild/ancistrus/D7000_V1.0.1.64_WW_src/Source/apps/samba-3.0.22/source/smbwrapper -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/home/mockbuild/ancistrus/D7000_V1.0.1.64_WW_src/Source/apps/samba-3.0.22/source -I../../acl/include LIBS = -lnsl -lcrypt -lresolv -ldl -liconv LDSHFLAGS = -shared -Wl,-Bsymbolic LDFLAGS = -L/home/mockbuild/ancistrus/D7000_V1.0.1.64_WW_src/Source//apps/libiconv.1.8/lib -lnsl -lcrypt -lresolv -ldl -liconv PIE_CFLAGS = PIE_LDFLAGS = -e APPS: make e2fsprogs has configuration making all in lib/et making all in lib/ss making all in lib/e2p making all in lib/uuid making all in lib/ext2fs making all in lib/blkid making all in intl making all in lib/et making all in lib/ss making all in lib/e2p making all in lib/uuid making all in lib/ext2fs making all in lib/blkid making all in intl making all in e2fsck making all in debugfs making all in misc making all in tests/progs making all in po -e APPS: make bftpd-2.3 -e APPS: make mtool -e APPS: make hd-idle -e APPS: make hdparm-9.43 -e APPS: make lsof_4.82_src Constructing version.h print.o: In function `gethostnm': print.c:(.text+0x944): warning: gethostbyaddr is obsolescent, use getaddrinfo() instead. -e APPS: make mediaserver

-e library/ffmpeg

has configuration

-e library/zlib-1.2.3


-e library/sqlite-3.5.9


-e library/jpeg-6b


-e library/libogg-1.3.0/src

../libtool: 1564: ../libtool: preserve_args+= --tag CC: not found ../libtool: 1: eval: base_compile+= /opt/toolchains/crosstools-arm-gcc-4.6-linux-3.4-uclibc-0.9.32-binutils-2.21-NPTL/usr/bin/arm-linux-gcc: not found ../libtool: 1: eval: base_compile+= -DHAVE_CONFIG_H: not found ../libtool: 1: eval: base_compile+= -I.: not found ../libtool: 1: eval: base_compile+= -I..: not found ../libtool: 1: eval: base_compile+= -I../include: not found ../libtool: 1: eval: base_compile+= -I../include: not found ../libtool: 1: eval: base_compile+= -marm: not found ../libtool: 1: eval: base_compile+= -march=armv7-a: not found ../libtool: 1: eval: base_compile+= -mcpu=cortex-a9: not found ../libtool: 1: eval: base_compile+= -mtune=cortex-a9: not found ../libtool: 1: eval: base_compile+= -pipe: not found ../libtool: 1: eval: base_compile+= -funit-at-a-time: not found ../libtool: 1: eval: base_compile+= -fomit-frame-pointer: not found ../libtool: 1: eval: base_compile+= -ffixed-r8: not found ../libtool: 1: eval: base_compile+= -fno-common: not found ../libtool: 1: eval: base_compile+= -mno-thumb-interwork: not found ../libtool: 1: eval: base_compile+= -mabi=aapcs-linux: not found ../libtool: 1: eval: base_compile+= -mfloat-abi=soft: not found ../libtool: 1: eval: base_compile+= -Os: not found ../libtool: 1: eval: base_compile+= -Wall: not found ../libtool: 1: eval: base_compile+= -s: not found ../libtool: 1: eval: base_compile+= -MMD: not found ../libtool: 1: eval: base_compile+= -DSC_MUTIL_GROUP: not found ../libtool: 1: eval: base_compile+= -MT: not found ../libtool: 1: eval: base_compile+= framing.lo: not found ../libtool: 1: eval: base_compile+= -MD: not found ../libtool: 1: eval: base_compile+= -MP: not found ../libtool: 1: eval: base_compile+= -MF: not found ../libtool: 1: eval: base_compile+= .deps/framing.Tpo: not found ../libtool: 1: eval: base_compile+= -c: not found libtool: compile: you must specify a compilation command libtool: compile: Try libtool --help --mode=compile' for more information. Makefile:347: recipe for target 'framing.lo' failed make[4]: *** [framing.lo] Error 1 Makefile:57: recipe for target 'libs' failed make[3]: *** [libs] Error 1 Makefile:102: recipe for target 'nvram' failed make[2]: *** [nvram] Error 1 Makefile:93: recipe for target 'apps' failed make[1]: *** [apps] Error 1 Makefile:44: recipe for target 'source' failed make: *** [source] Error 2 Makefile:32: recipe for target 'sources' failed make: *** [sources] Error 2

Any ideas what could be causing this?

Thanks alot for this amazing project and your hard work.

Daniel

dniasoff commented 6 years ago

fixed it. replaced dash with bash using the command "chsh -s /bin/bash". also replaced the symlink /bin/sh to point to bash. Seems to work

dniasoff commented 6 years ago

now i have this issue /usr/bin/install -c .libs/nsupdate /usr/local/bin/nsupdate making install in /home/mockbuild/ancistrus/D7000_V1.0.1.64_WW_src/Source/apps/bind-9.2.3/bin/check /usr/bin/install -c .libs/named-checkconf /usr/local/sbin/named-checkconf /usr/bin/install -c .libs/named-checkzone /usr/local/sbin/named-checkzone making install in /home/mockbuild/ancistrus/D7000_V1.0.1.64_WW_src/Source/apps/bind-9.2.3/doc making all in /home/mockbuild/ancistrus/D7000_V1.0.1.64_WW_src/Source/apps/bind-9.2.3/doc/arm making all in /home/mockbuild/ancistrus/D7000_V1.0.1.64_WW_src/Source/apps/bind-9.2.3/doc/misc making install in /home/mockbuild/ancistrus/D7000_V1.0.1.64_WW_src/Source/apps/bind-9.2.3/doc/arm making install in /home/mockbuild/ancistrus/D7000_V1.0.1.64_WW_src/Source/apps/bind-9.2.3/doc/misc APPS: install noip-2.1.9-1 APPS: install tcpdump/libpcap-1.2.0 APPS: install tcpdump/tcpdump-4.2.0 APPS: install curl APPS: install sysstat SOURCE: make DRIVERS -- make kernel modules --

cp: cannot stat '/home/mockbuild/ancistrus/D7000_V1.0.1.64_WW_src/Kernel/bcm963xx/bcmdrivers/broadcom/char/pktflow/bcm963138/pktflow.ko': No such file or directory sc.mak:228: recipe for target 'sc_modules_install' failed make[2]: [sc_modules_install] Error 1 Makefile:101: recipe for target 'drivers' failed make[1]: [drivers] Error 2 Makefile:44: recipe for target 'source' failed make: [source] Error 2 Makefile:32: recipe for target 'sources' failed make: [sources] Error 2

Any ideas?

dniasoff commented 6 years ago

Deleting and repeating the compile process fixed it. Maybe left over from using dash.

Now to flash the router!