Unable to build v17.01.0-rc2 (tools/libressl)

Having issues trying to build lede from git source.

libtool: compile: gcc -std=gnu99 -DPACKAGE_NAME="libressl" -DPACKAGE_TARNAME="libressl" -DPACKAGE_VERSION="2.5.0" "-DPACKAGE_STRING="libressl 2.5.0"" -DPACKAGE_$
gcc-4.8: error: 2.5.0": No such file or directory
Makefile:3557: recipe for target 'sha/libcrypto_la-sha256-elf-x86_64.lo' failed
make[5]: *** [sha/libcrypto_la-sha256-elf-x86_64.lo] Error 1
make[5]: Leaving directory '/home/user/devel/git/lede/v17.01.0-rc2/build_dir/host/libressl-2.5.0/crypto'
Makefile:452: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/user/devel/git/lede/v17.01.0-rc2/build_dir/host/libressl-2.5.0'
Makefile:27: recipe for target '/home/user/devel/git/lede/v17.01.0-rc2/build_dir/host/libressl-2.5.0/.built' failed
make[3]: *** [/home/user/devel/git/lede/v17.01.0-rc2/build_dir/host/libressl-2.5.0/.built] Error 2
make[3]: Leaving directory '/home/user/devel/git/lede/v17.01.0-rc2/tools/libressl'
tools/Makefile:147: recipe for target 'tools/libressl/compile' failed
make[2]: *** [tools/libressl/compile] Error 2
make[2]: Leaving directory '/home/user/devel/git/lede/v17.01.0-rc2'
tools/Makefile:145: recipe for target '/home/user/devel/git/lede/v17.01.0-rc2/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.tools_install_yynyyyyynyyyyynyynnyyyynyyy$
make[1]: *** [/home/user/devel/git/lede/v17.01.0-rc2/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.tools_install_yynyyyyynyyyyynyynnyyyynyyyyyyyyyyyyyyynyynynnyyynnn$
make[1]: Leaving directory '/home/user/devel/git/lede/v17.01.0-rc2'
/home/user/devel/git/lede/v17.01.0-rc2/include/toplevel.mk:197: recipe for target 'world' failed
make: *** [world] Error 2

any pointers?

Why are you building release candidate rc2, when the release itself is available?

If you are going to build from 17.01 branch, I suggest that you build from the HEAD of the branch to get all the fixes included.

Well I had to give up on trying to build because the 17.01 branch failed as well. Bottom line is I am trying to upgrade a LinkIT-7688 Duo from Chaos Calmer 15.05 to LEDE. So far I have flashed the 17.01 image fine and ethernet works as does wifi. Sound and the MMC does not.. But it seems there are some packages/kernel modules that I not available in LEDE and so I will need to build against them somehow. Unless there are already pre-built modules I can just drop in? Packages missing are:


I can see the i2c-ralink is referenced in the build scripts of LEDE

define Device/dwr-512-b
DTS := DWR-512-B
IMAGE_SIZE := 7700k
DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-i2c-core kmod-i2c-ralink kmod-spi-dev
kmod-usb-serial kmod-usb-serial-option kmod-usb-serial-wwan comgt
TARGET_DEVICES += dwr-512-b

And there seems to be reference to kmod-sound-mtk in an OpenWrt patch

So in theory I should be able to build my own LEDE image and patch it or configure it to include things that are missing and getting the Smart LinkIT working with a modern firmware image not based in kernel 3.18 and which is over a year old now.

Bottom line is I am not going to use it unless it is up to date with security fixes and software because let's face it. ioT security has been appalling so far.

kmod-i2c-ralink should be there (did nto look into it any closer). Has been compiled for 17.01.0 at least for some targets: http://downloads.lede-project.org/releases/17.01.0/targets/ramips/rt305x/packages/kmod-i2c-ralink_4.4.50-1_mipsel_24kc.ipk
kmod-ipv6 is built-in https://github.com/lede-project/source/commit/33beafa8d88e51907acba6fdece5a35f509934df
kmod-usb-ledtrig-usbport is the replacement of kmod-ledtrig-usbdev
kmod-sound-mtk is broken since Jan 2016 (both in LEDE and Openwrt): https://github.com/lede-project/source/commit/63aa7023d8e04fb40ed0dc4971e80e86330b7ac6

Hmm odd why I cannot seem to find it?

root@mylinkit:~# opkg list |grep ralink
kmod-dma-ralink - 4.4.50-1 - Kernel modules for enable ralink dma engine.
kmod-sound-mt7620 - 4.4.50-1 - Alsa modules for ralink i2s controller.

Maybe this is why it is not showing?

opkg install ./kmod-i2c-ralink_4.4.50-1_mipsel_24kc.ipk
Installing kmod-i2c-ralink (4.4.50-1) to root...
Collected errors:

  • satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-i2c-ralink:
  • kernel (= 4.4.50-1-29d4eea4e6efd15216214d5a9522a147) * 
  • opkg_install_cmd: Cannot install package kmod-i2c-ralink.

As for the broken sound card driver. I will need to look into that myself then. If it is just it does not compile against the tree then should not be an issue I can prolly fix that , if however some functionality has been removed from 3.18 to 4.5 then I will need to investigate how to port it. If it really is very broken then I could always use a USB sound card instead.It is what I did with my Omega 2+ and that works fantastically well. (helps they are running a recent version of LEDE too)

Thanks for your help. Gotta admit I much like how flexible LEDE can be.