Update my Build

Hello, I wanted to update my build and I get the following error message after starting the build.

/home/stefan.harbich/Downloads/apu/openwrt/build_dir/target-x86_64_musl/linux-x86_64/openvswitch-2.11.3/datapath/linux/compat/include/linux/random.h: In function 'prandom_u32_max':
/home/stefan.harbich/Downloads/apu/openwrt/build_dir/target-x86_64_musl/linux-x86_64/openvswitch-2.11.3/datapath/linux/compat/include/linux/random.h:7:24: error: implicit declaration of function 'random32'; did you mean 'prandom_u32'? [-Werror=implicit-function-declaration]
 #define prandom_u32()  random32()
                        ^
/home/stefan.harbich/Downloads/apu/openwrt/build_dir/target-x86_64_musl/linux-x86_64/openvswitch-2.11.3/datapath/linux/compat/include/linux/random.h:13:22: note: in expansion of macro 'prandom_u32'
  return (u32)(((u64) prandom_u32() * ep_ro) >> 32);
                      ^~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:326: recipe for target '/home/stefan.harbich/Downloads/apu/openwrt/build_dir/target-x86_64_musl/linux-x86_64/openvswitch-2.11.3/datapath/linux/actions.o' failed
make[9]: *** [/home/stefan.harbich/Downloads/apu/openwrt/build_dir/target-x86_64_musl/linux-x86_64/openvswitch-2.11.3/datapath/linux/actions.o] Error 1
Makefile:1550: recipe for target '_module_/home/stefan.harbich/Downloads/apu/openwrt/build_dir/target-x86_64_musl/linux-x86_64/openvswitch-2.11.3/datapath/linux' failed
make[8]: *** [_module_/home/stefan.harbich/Downloads/apu/openwrt/build_dir/target-x86_64_musl/linux-x86_64/openvswitch-2.11.3/datapath/linux] Error 2
make[8]: Leaving directory '/home/stefan.harbich/Downloads/apu/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-4.14.206'
Makefile.main:71: recipe for target 'default' failed
make[7]: *** [default] Error 2
make[7]: Leaving directory '/home/stefan.harbich/Downloads/apu/openwrt/build_dir/target-x86_64_musl/linux-x86_64/openvswitch-2.11.3/datapath/linux'
Makefile:576: recipe for target 'all-recursive' failed
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory '/home/stefan.harbich/Downloads/apu/openwrt/build_dir/target-x86_64_musl/linux-x86_64/openvswitch-2.11.3/datapath'
Makefile:5154: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/home/stefan.harbich/Downloads/apu/openwrt/build_dir/target-x86_64_musl/linux-x86_64/openvswitch-2.11.3'
Makefile:2985: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/stefan.harbich/Downloads/apu/openwrt/build_dir/target-x86_64_musl/linux-x86_64/openvswitch-2.11.3'
Makefile:327: recipe for target '/home/stefan.harbich/Downloads/apu/openwrt/build_dir/target-x86_64_musl/linux-x86_64/openvswitch-2.11.3/.built' failed
make[3]: *** [/home/stefan.harbich/Downloads/apu/openwrt/build_dir/target-x86_64_musl/linux-x86_64/openvswitch-2.11.3/.built] Error 2
make[3]: Leaving directory '/home/stefan.harbich/Downloads/apu/openwrt/feeds/packages/net/openvswitch'
time: package/feeds/packages/openvswitch/compile#70.74#20.94#87.68
package/Makefile:111: recipe for target 'package/feeds/packages/openvswitch/compile' failed
make[2]: *** [package/feeds/packages/openvswitch/compile] Error 2
make[2]: Leaving directory '/home/stefan.harbich/Downloads/apu/openwrt'
package/Makefile:107: recipe for target '/home/stefan.harbich/Downloads/apu/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile' failed
make[1]: *** [/home/stefan.harbich/Downloads/apu/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/stefan.harbich/Downloads/apu/openwrt'
/home/stefan.harbich/Downloads/apu/openwrt/include/toplevel.mk:225: recipe for target 'world' failed
make: *** [world] Error 2

How to fix the problem?

Greetings from Stefan Harbich

1 Like

Here's what I did:

git pull
make defconfig
make -j1 V=s

After a while the build aborts with the error message mentioned above. Here are my brunch information

git branch -v
  master  4d3a53b9ef [6319 hinterher] kernel: add DT binding support to the TRX and minor parsers
  openwrt-18.06 ab9d1bf608 [119 hinterher] ethtool: fix PKG_CONFIG_DEPENDS
* openwrt-19.07 a448ad7490 uhttpd: update to 19.07 Git HEAD
  v18.06.6      8004e3f2c6 OpenWrt v18.06.6: adjust config defaults
rm -f -R tmp
scripts/feeds update -a
scripts/feeds install -a
make clean

Make sure you are following all of the steps in - https://openwrt.org/docs/guide-developer/quickstart-build-images

1 Like

Thank you very much, that's exactly what fixed my problem. The build went through.
Greetings from Stefan Harbich

1 Like