# Building a component fails in DS

**URL:** <https://forum.legato.io/t/building-a-component-fails-in-ds/6183>\
**Category:** Legato Application Framework\
**Created:** [April 27, 2022, 10:28am UTC](https://forum.legato.io/t/building-a-component-fails-in-ds/6183 "2022-04-27T10:28:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blackbeard](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/blackbeard/32/1585_2.png) [@Blackbeard](https://forum.legato.io/u/Blackbeard)\
**Post date:** [April 27, 2022, 10:28am UTC](https://forum.legato.io/t/building-a-component-fails-in-ds/6183/1 "2022-04-27T10:28:39Z")

</div>

Hallo Everyone,

I am building a component in Sierra Wireless studio using Legato 18.09 for WP77-WP77XX and every time I get this Error: “Legato builder: \*\* ERROR: INTERNAL ERROR: Trying to get target info ‘N6target20LinuxComponentInfo\_tE’, which is not set for the current target” and sometimes I get another error “lexing error”. Could you please help me out figuring out the problem?

Thanks

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [April 27, 2022, 10:46am UTC](https://forum.legato.io/t/building-a-component-fails-in-ds/6183/2 "2022-04-27T10:46:58Z")

</div>

how to reproduce the issue?  
Does your DS OK to build a helloworld application?

---

<div class="post-metadata">

**Author:** ![Blackbeard](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/blackbeard/32/1585_2.png) [@Blackbeard](https://forum.legato.io/u/Blackbeard)\
**Post date:** [April 27, 2022, 11:04am UTC](https://forum.legato.io/t/building-a-component-fails-in-ds/6183/3 "2022-04-27T11:04:32Z")

</div>

I have built the helloWorld project successfully, but there is a differnce here because in my project I am trying to build only the component using mkcomp and not the app using mkapp. I have realized that when I try to change the target platform from Legato 18.09 for WP85-WP77XX to Legato 18.09 for WP77-WP77XX the error of \*\* ERROR: INTERNAL ERROR: Trying to get target info ‘N6target20LinuxComponentInfo\_tE’, which is not set for the current target" disappears and is replaced with the “lexing error” one. When I try to know what produces the lexing error exactly I can see it is in the auto-generated makefile “target:  
$(MKCOMMAND)”

ninja: error: Component…/Target\_Legato\_Debug/build.ninja:82: lexing error

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [April 27, 2022, 11:18am UTC](https://forum.legato.io/t/building-a-component-fails-in-ds/6183/4 "2022-04-27T11:18:46Z")

</div>

I don’t see problem with mkcomp in DS:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/f/f2334aa0692f16b852fd772b91af0e5d806bfde2.png)

---

<div class="post-metadata">

**Author:** ![Blackbeard](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/blackbeard/32/1585_2.png) [@Blackbeard](https://forum.legato.io/u/Blackbeard)\
**Post date:** [April 27, 2022, 11:24am UTC](https://forum.legato.io/t/building-a-component-fails-in-ds/6183/5 "2022-04-27T11:24:53Z")

</div>

Yes, I have built also helloWorldComponent successfully

---

<div class="post-metadata">

**Author:** ![Blackbeard](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/blackbeard/32/1585_2.png) [@Blackbeard](https://forum.legato.io/u/Blackbeard)\
**Post date:** [April 27, 2022, 11:26am UTC](https://forum.legato.io/t/building-a-component-fails-in-ds/6183/6 "2022-04-27T11:26:42Z")

</div>

But still couldn’t figure out what does this mean \*\*\*\* ERROR:\*\*  
**INTERNAL ERROR: Trying to get target info ‘N6target20LinuxComponentInfo\_tE’, which is not set for the current target.**  
**Makefile:37: recipe for target ‘target’ failed**

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [April 27, 2022, 11:51am UTC](https://forum.legato.io/t/building-a-component-fails-in-ds/6183/7 "2022-04-27T11:51:18Z")

</div>

what is making this error?  
Can you port your component to helloworld component to understand this?

---

<div class="post-metadata">

**Author:** ![Blackbeard](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/blackbeard/32/1585_2.png) [@Blackbeard](https://forum.legato.io/u/Blackbeard)\
**Post date:** [April 29, 2022, 1:19pm UTC](https://forum.legato.io/t/building-a-component-fails-in-ds/6183/8 "2022-04-29T13:19:02Z")

</div>

I have found the error. Part of it was because I am using the wrong toolchain wp85 instead of wp77 and the other part was becuase an environment variable was not set.  
Thanks a lot for your support and help
