# Libdevmapper centos7 compilation fails

**URL:** <https://forum.openwrt.org/t/libdevmapper-centos7-compilation-fails/60644>\
**Category:** For Developers\
**Created:** [April 15, 2020, 3:31am UTC](https://forum.openwrt.org/t/libdevmapper-centos7-compilation-fails/60644 "2020-04-15T03:31:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaobo](https://forum.openwrt.org/user_avatar/forum.openwrt.org/xiaobo/32/126556_2.png) [@xiaobo](https://forum.openwrt.org/u/xiaobo)\
**Post date:** [April 15, 2020, 3:31am UTC](https://forum.openwrt.org/t/libdevmapper-centos7-compilation-fails/60644/1 "2020-04-15T03:31:56Z")

</div>

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

> <https://github.com/openwrt/openwrt/blob/ad19751edc21ae713bd95df6b93be64bd1e0c612/rules.mk#L197>

```
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'

```

---

<div class="post-metadata">

**Author:** ![juppin](https://forum.openwrt.org/user_avatar/forum.openwrt.org/juppin/32/29489_2.png) [@juppin](https://forum.openwrt.org/u/juppin)\
**Post date:** [April 15, 2020, 6:03am UTC](https://forum.openwrt.org/t/libdevmapper-centos7-compilation-fails/60644/2 "2020-04-15T06:03:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![xiaobo](https://forum.openwrt.org/user_avatar/forum.openwrt.org/xiaobo/32/126556_2.png) [@xiaobo](https://forum.openwrt.org/u/xiaobo)\
**Post date:** [April 15, 2020, 6:38am UTC](https://forum.openwrt.org/t/libdevmapper-centos7-compilation-fails/60644/3 "2020-04-15T06:38:16Z")

</div>

Replaced with ubuntu 18.04 fixed.

---

<div class="post-metadata">

**Author:** ![system](https://forum.openwrt.org/uploads/default/original/3X/7/4/740520c71f00039bbf001045c682f0ecb25e905a.png) [@system](https://forum.openwrt.org/u/system)\
**Post date:** [April 25, 2020, 6:38am UTC](https://forum.openwrt.org/t/libdevmapper-centos7-compilation-fails/60644/4 "2020-04-25T06:38:21Z")

</div>

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