Had so many problems with building images since v18.06.5 in the last few days.. tried to build a 19.07.1 image and finally found This closed bug report, and added a comment specifying a possible workaround(A very small modification), I hope this isn't considered double-posting, I just want to make sure that this little "fix" if you can call it that won't cause any trouble?
I did check the notes about make v4.3 here, to make sure what were the backwards-incompatible changes... and they don't seem to affect this specific issue.. using this "workaround", 'make menuconfig' worked and I can access the menu, any thoughts about this?
I’ve just built v19.07.02 on Arch. It failed with make -j5 but worked just fine with make -j1 V=s.
Overall hadn’t had many issues building from source on Arch. Usually running either the Zen or vanilla kernel while building.
Edit: just looked at your first link, I don’t build any wpa_* or other wireless packages, maybe that’s the difference. I also build with GCC 8 instead of 7 if that makes any difference.
v19.07.01 worked for me as well when it just came out, I'll retry tomorrow to confirm if it still works.
I always build with the following steps:
git clone https://git.openwrt.org/openwrt/openwrt.git
git checkout v19.07.1
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig #select your target, subtarget and profile only
make defconfig #this makes default config for your target device
make download
make -j5
Regarding GCC - you can select GCC and binutils in:
Advanced Configuration Options (for developers) --->Toolchain Options ---> Binutils Version (I set mine to 2.32)
Advanced Configuration Options (for developers) --->Toolchain Options ---> GCC Compiler Version (I set mine to gcc 8.x)
Doesn't matter, my workaround may have let me reach "make menuconfig" and actually compile, but it doesn't help even after setting target->subtarget->profile' and saving space make' still causes a problem (a dependency error, my fault for not copying it, so I'm trying what @SirToffski suggested).
While I failed before using the original repository at https://git.openwrt.org/openwrt/openwrt.git, it's still much more updated than the mirror (weeks if not months since last commit) so I'll stake my chances again.
What I did:
git clone https://git.openwrt.org/openwrt/openwrt.git
git checkout v19.07.1
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
This still caused the same warning messages and syntax error and doesn't compile, so I used the workaround again, this time I followed @SirToffski's advice:
make menuconfig #select your target, subtarget and profile only
make defconfig #this makes default config for your target device
make download
Only difference is I used make -j1 V=sc in case there's an error (highly likely), I'll post when it's done.
Package wpad-basic is missing dependencies for the following libraries:
libnl-tiny.so
Well, I'll try and manually download all missing packages with "./scripts/feeds install" and see where this goes... unless I remedy the dependency problem this problem will never be resolved.
So, if you have make 4.3+ ("make -v" in the terminal), you need to commit that change.
process:
git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
git checkout v19.07.1
git cherry-pick b6c01fec921bb094416e70abad4c706b6cb030fd
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig # choose your device
make defconfig # default config (also helps avoid config problems, overwrites '.config' file)
# make menuconfig # OPTIONAL, choose your own options (customized '.config' file)
# make kernel_menuconfig # OPTIONAL additional settings
make download
make -j5 # you can change '5' to how many hardware threads you can spare (hw threads + 1)
[NOTE] -jN, where N is the number of hardware threads plus 1.
4 cores = 4 + 1 = 5
8 cores = 8 + 1 = 9
@freezeheat - just got around to to building v19.07.01 - confirmed I could reproduce the error.
Also confirmed the fix worked. I must have built v19.07.01 before make was updated to v4.3, so it went through then.