Compile Error with libreadline8 architecture not compatiable

Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for libreadline8 found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package libreadline8.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for haproxy:
 * 	libncursesw6
 * opkg_install_cmd: Cannot install package haproxy.
make[2]: *** [package/Makefile:69: package/install] Error 255
make[2]: Leaving directory '/home/newton/Desktop/openwrt'
make[1]: *** [package/Makefile:109: /home/newton/Desktop/openwrt/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/newton/Desktop/openwrt'
make: *** [/home/newton/Desktop/openwrt/include/ world] Error 2

I am using Ubuntu 20.04.

The source code is the latest master branch.

I am trying to delete the old .config file and compile it again.

My target is Linksys WRT1900AC v2.

there is an open bug -

a temporary fix - is to update the ncurses makefile changing



PROVIDES:=libncursesw libncursesw6

In my case it helps:

  make package/ncurses/{clean,prepare} V=s
  make package/ncurses/compile V=s
  make package/readline/{clean,prepare} V=s
  make package/readline/compile V=s
  make -j1 V=s
1 Like

It seems that after modifying the ncurses's Makefile, the compile will success.

But after being installed on the Linksys WRT1900ac, it won't boot as I wish.

After trying the latest commits, the compile will success.

I didn't do any changes to the source code.