OpenWrt Forum Archive

Topic: Error building OpenWrt for TP-LINK TD-W8980...

The content of this topic has been archived on 24 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all,
i'm trying to build a new image of OpenWrt 14 BB for the router in subject (mips + lantiq + xrx200), starting from configuration for TD-W8970 and applying patches for WiFi.

The build process fails building the oprofile-1.1.0rc2 package.
When make launches ./configure, it says the bfd library is missing, but is not. There are correct libbfd.so and .h files under toolchain and staging directories.

Maybe in make process is downloaded a too many newer version of the loprofile package? In this case, what version is safe for compiling OpenWrt 14?

Someone have builded/installed successfully the OpenWrt version 15 on this hardware?

Thanks in advance

Regards
Max

This is the tail of the "make V=s" output:
...
checking for dlopen in -ldl... yes
checking for main in -lintl... no
checking for bfd_openr in -lbfd... no
checking for compress in -lz... yes
checking for bfd_fdopenr in -lbfd... no
configure: error: bfd library not found
Makefile:93: recipe for target '/home/massimo/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/oprofile-1.1.0rc2/.configured_yyyyyyyy' failed
make[3]: *** [/home/massimo/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/oprofile-1.1.0rc2/.configured_yyyyyyyy] Error 1
make[3]: Leaving directory '/home/massimo/openwrt/package/devel/oprofile'
package/Makefile:191: recipe for target 'package/devel/oprofile/compile' failed
make[2]: *** [package/devel/oprofile/compile] Error 2
make[2]: Leaving directory '/home/massimo/openwrt'
package/Makefile:188: recipe for target '/home/massimo/openwrt/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/stamp/.package_compile' failed
make[1]: *** [/home/massimo/openwrt/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/massimo/openwrt'
/home/massimo/openwrt/include/toplevel.mk:177: recipe for target 'world' failed
make: *** [world] Error 2

Not sure what is your problem, maybe it's related wit dependency's you need ?

I managed to compile the image for chaos calmer 15.0.5 for this router yesterday in my debian machine, the only thing not working is wireless which I wrote yesterday in the forum (https://forum.openwrt.org/viewtopic.php?id=60312).

I had to install the following packages in debian:

sudo apt-get update
sudo apt-get install git-core build-essential libssl-dev libncurses5-dev unzip
sudo apt-get install subversion mercurial

Maybe you can try to compile 15.05 and see if you still have errors:

git clone git://git.openwrt.org/15.05/openwrt.git
patch -p1 < TDW8980.patch
./scripts/feeds update -a
./scripts/feeds install -a 

make defconfig
make prereq
make menuconfig
make -j 4 V=s


UPDATE:
The version in trunk compiled is working fine even wireless is working!

(Last edited by adamastor666 on 15 Oct 2015, 17:57)

Hi, thanks for your answer.
There was a little mistake. I was using version 15 instead of 14.

Restarted the build process from version 14 from git, patch and now is rebuilding image from scratch.

Regards
Max

The discussion might have continued from here.