Can't build protobuf

Philip Prindeville philipp_subx at redfish-solutions.com
Sun May 4 09:49:26 PDT 2025


Hi,

Just rebased to HEAD on openwrt and packages and I’m trying to build for x86_64/generic w/ MUSL.  Build host is Ubuntu 24.04 LTS.

I’m seeing:

…
rm -rf /home/philipp/lede/build_dir/target-x86_64_musl/protobuf-3.17.3/.pkgdir/protobuf.installed /home/philipp/lede/build_dir/target-x86_64_musl/protobuf-3.17.3/.pkgdir/protobuf
mkdir -p /home/philipp/lede/build_dir/target-x86_64_musl/protobuf-3.17.3/.pkgdir/protobuf
install -d -m0755 /home/philipp/lede/build_dir/target-x86_64_musl/protobuf-3.17.3/.pkgdir/protobuf/usr/lib
cp -fpR /home/philipp/lede/build_dir/target-x86_64_musl/protobuf-3.17.3/ipkg-install/usr/lib/libprotoc.so* /home/philipp/lede/build_dir/target-x86_64_musl/protobuf-3.17.3/.pkgdir/protobuf/usr/lib/
cp: cannot stat '/home/philipp/lede/build_dir/target-x86_64_musl/protobuf-3.17.3/ipkg-install/usr/lib/libprotoc.so*': No such file or directory
make[2]: *** [Makefile:114: /home/philipp/lede/build_dir/target-x86_64_musl/protobuf-3.17.3/.pkgdir/protobuf.installed] Error 1
make[2]: Leaving directory '/home/philipp/lede/feeds/packages/libs/protobuf'
time: package/feeds/packages/protobuf/compile#435.52#30.50#454.56
    ERROR: package/feeds/packages/protobuf failed to build.
make[1]: *** [package/Makefile:189: package/feeds/packages/protobuf/compile] Error 1
make[1]: Leaving directory '/home/philipp/lede'
make: *** [/home/philipp/lede/include/toplevel.mk:233: package/protobuf/compile] Error 2


and when I look in the ipkg-install directory I see:

build_dir/target-x86_64_musl/protobuf-3.17.3/ipkg-install/usr/lib:
cmake/   			libprotobuf-lited.so@ 		libprotocd.so.3.17.3.0
libprotobufd.so@   		libprotobuf-lited.so.3.17.3.0  	pkgconfig/
libprotobufd.so.3.17.3.0  	libprotocd.so@


Do we know why?

Is it as simple as adding a ‘d’ to the ‘cp’ command?  What’s the difference between the two?

Thanks,

-Philip




More information about the openwrt-devel mailing list