# Tailf yang error compilation

**URL:** <https://dmap-community.ductus.global/t/tailf-yang-error-compilation/881>\
**Category:** YANG\
**Created:** [December 12, 2016, 8:47am UTC](https://dmap-community.ductus.global/t/tailf-yang-error-compilation/881 "2016-12-12T08:47:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![InbalAmram](https://avatars.discourse-cdn.com/v4/letter/i/0ea827/32.png) [@InbalAmram](https://dmap-community.ductus.global/u/InbalAmram)\
**Post date:** [December 12, 2016, 8:47am UTC](https://dmap-community.ductus.global/t/tailf-yang-error-compilation/881/1 "2016-12-12T08:47:02Z")

</div>

Hi,

we get the following compilation error while compiling the tailf’s yang files.  
can you suggest how to resolve that?  
recompiling the yang files doesn’t help.

regards,  
Inbal

```auto
Use tailf:code-name on the conflicting enums, bits, or nodes
to avoid the conflict.
error: cannot compile submodules; compile the module instead
'tailf-cli-extensions.fxs': tailf-cli-extensions.fxs: Must be recompiled!

```

=ERROR REPORT==== 11-Dec-2016::15:16:55 ===

```auto
confd_loading:718: strerror() cannot handle error:
{recompile_needed,"tailf-cli-extensions.fxs"}
[{confd_loading,strerror,1,[{file,"confd_loading.erl"},{line,718}]},
{confd_emit_tools,mk_h_file,2,[{file,"confd_emit_tools.erl"},{line,170}]},
{confdc,run,0,[{file,"confdc.erl"},{line,48}]},
{init,start_it,1,[]},
{init,start_em,1,[]}]
error: cannot compile submodules; compile the module instead
'tailf-meta-extensions.fxs': tailf-meta-extensions.fxs: Must be recompiled!

```

=ERROR REPORT==== 11-Dec-2016::15:16:55 ===

```auto
confd_loading:718: strerror() cannot handle error:
{recompile_needed,"tailf-meta-extensions.fxs"}
[{confd_loading,strerror,1,[{file,"confd_loading.erl"},{line,718}]},
{confd_emit_tools,mk_h_file,2,[{file,"confd_emit_tools.erl"},{line,170}]},
{confdc,run,0,[{file,"confdc.erl"},{line,48}]},
{init,start_it,1,[]},
{init,start_em,1,[]}]

```

---

<div class="post-metadata">

**Author:** ![mnovak](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/mnovak/32/183_2.png) [@mnovak](https://dmap-community.ductus.global/u/mnovak)\
**Post date:** [December 12, 2016, 2:25pm UTC](https://dmap-community.ductus.global/t/tailf-yang-error-compilation/881/2 "2016-12-12T14:25:57Z")

</div>

Please, can you describe (ideally paste `confdc` command), how you compile the yang files?  
Also which `tailf` yang files do you compile?

---

<div class="post-metadata">

**Author:** ![per](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@per](https://dmap-community.ductus.global/u/per)\
**Post date:** [December 12, 2016, 2:41pm UTC](https://dmap-community.ductus.global/t/tailf-yang-error-compilation/881/3 "2016-12-12T14:41:38Z")

</div>

And maybe also say **why** you are trying to compile them? There is no reason to compile any of tailf-cli-extensions, tailf-meta-extensions, or tailf-common (the latter being the “main” module that has the others as submodules).

---

<div class="post-metadata">

**Author:** ![InbalAmram](https://avatars.discourse-cdn.com/v4/letter/i/0ea827/32.png) [@InbalAmram](https://dmap-community.ductus.global/u/InbalAmram)\
**Post date:** [December 13, 2016, 9:05am UTC](https://dmap-community.ductus.global/t/tailf-yang-error-compilation/881/4 "2016-12-13T09:05:57Z")

</div>

Hi,

we simply compile all yang models that we have.  
If there is no reason to compile them, it is better and we won’t…

thanks  
Inbal

---

<div class="post-metadata">

**Author:** ![per](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@per](https://dmap-community.ductus.global/u/per)\
**Post date:** [December 13, 2016, 8:15pm UTC](https://dmap-community.ductus.global/t/tailf-yang-error-compilation/881/5 "2016-12-13T20:15:13Z")

</div>

ConfD ships with basically all relevant YANG modules pre-compiled, in the $CONFD\_DIR/etc/confd directory - there may in some cases be reasons to recompile some of them, e.g. using the --export option to make them “invisible” to some/all northbound agents. But there is no reason to compile any **additional** modules found in $CONFD\_DIR/src/confd/yang.
