Libdevmapper centos7 compilation fails

gcc: error: unrecognized command line option '-fhonour-copts'; did you mean '-fhonor-std'?
make[5]: *** [datastruct/bitset.o] Error 1

make -C include device-mapper
make[5]: Entering directory `/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/LVM2.2.03.08/include'
make[5]: Nothing to be done for `device-mapper'.
make[5]: Leaving directory `/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/LVM2.2.03.08/include'
make -C libdm device-mapper
make[5]: Entering directory `/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/LVM2.2.03.08/libdm'
    [CC] datastruct/bitset.c
gcc: error: unrecognized command line option '-fhonour-copts'; did you mean '-fhonor-std'?
make[5]: *** [datastruct/bitset.o] Error 1
make[5]: Leaving directory `/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/LVM2.2.03.08/libdm'
make[4]: *** [libdm.device-mapper] Error 2
make[4]: Leaving directory `/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/LVM2.2.03.08'
make[3]: *** [/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/LVM2.2.03.08/.built] Error 2
make[3]: Leaving directory `/home/openwrt/master/openwrt/package/feeds/tools/lvm2'
time: package/feeds/tools/lvm2/compile#0.13#0.09#0.21
make[2]: *** [package/feeds/tools/lvm2/compile] Error 2
make[2]: Leaving directory `/home/openwrt/master/openwrt'
make[1]: *** [/home/openwrt/master/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/openwrt/master/openwrt'

This is a custom flag introduced by openwrt itself.
If the compiler has this flag set it does nothing apart from not throwing this warning/error.
If it isn't set, then the compiler will throw this message.
This message is only for tracking if the build of the package does include the TARGET_CFLAGS.
So this package doesn't honor all by openwrt buildroot defined cflags for the target and should be fixed.

Replaced with ubuntu 18.04 fixed.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.