# Binding Error gcc.lkopt

**URL:** <https://forum.sierrawireless.com/t/binding-error-gcc-lkopt/4139>\
**Category:** Development tools\
**Created:** [January 26, 2010, 1:15pm UTC](https://forum.sierrawireless.com/t/binding-error-gcc-lkopt/4139 "2010-01-26T13:15:37Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![parfum](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@parfum](https://forum.sierrawireless.com/u/parfum)\
**Post date:** [January 26, 2010, 1:15pm UTC](https://forum.sierrawireless.com/t/binding-error-gcc-lkopt/4139/1 "2010-01-26T13:15:37Z")

</div>

Platform: Linux x386;  
Install C/C++ Eclipse;  
Install Software: M2M studio;  
Install Plug-ins: OpenAt and necessary components;

Build example: hello\_world

I receive an error: ‘cannot open linker script file gcc.lkopt: No such file or directory’

That does not suffice??

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/daav/32/2767_2.png) [@daav](https://forum.sierrawireless.com/u/daav)\
**Post date:** [January 27, 2010, 7:34am UTC](https://forum.sierrawireless.com/t/binding-error-gcc-lkopt/4139/2 "2010-01-27T07:34:34Z")

</div>

Do you have python installed on your Linux system? gcc.lkopt linker script is generated by a python script.  
M2M Studio Windows edition embeds the python runtime, but not the Linux one.

---

<div class="post-metadata">

**Author:** ![parfum](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@parfum](https://forum.sierrawireless.com/u/parfum)\
**Post date:** [January 27, 2010, 11:08am UTC](https://forum.sierrawireless.com/t/binding-error-gcc-lkopt/4139/3 "2010-01-27T11:08:08Z")

</div>

Installing Python 2.2,2.3,2.4; What version is necessary?

Can it is necessary what or a Python`s package?

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/daav/32/2767_2.png) [@daav](https://forum.sierrawireless.com/u/daav)\
**Post date:** [January 28, 2010, 8:41am UTC](https://forum.sierrawireless.com/t/binding-error-gcc-lkopt/4139/4 "2010-01-28T08:41:39Z")

</div>

M2M Studio embeds Python 2.5.2, but 2.4 will be fine.

---

<div class="post-metadata">

**Author:** ![dbarallat](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@dbarallat](https://forum.sierrawireless.com/u/dbarallat)\
**Post date:** [May 1, 2010, 11:18pm UTC](https://forum.sierrawireless.com/t/binding-error-gcc-lkopt/4139/5 "2010-05-01T23:18:45Z")

</div>

Platform: Windows7 x386 (working on XP compatibility mode)  
Installed Full M2M Studio 1.1.1  
Build Version 1.1.1.200911160856-R3160

Build Example: Multitask Example

Error: c:\program files\sierrawireless\m2mstudio\tools\armelfgcc\4.0.1\bin…\lib\gcc\arm-elf\4.0.1…\arm-elf\bin\ld.exe: cannot open linker script file gcc.lkopt: No such file or directory

If M2M Windows Edition already embeds the python runtime…What am i missing?

Thanks!

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/daav/32/2767_2.png) [@daav](https://forum.sierrawireless.com/u/daav)\
**Post date:** [May 3, 2010, 12:41pm UTC](https://forum.sierrawireless.com/t/binding-error-gcc-lkopt/4139/6 "2010-05-03T12:41:09Z")

</div>

> [@dbarallat](#):
>
> Platform: Windows7 x386 (working on XP compatibility mode)  
> …  
> If M2M Windows Edition already embeds the python runtime…What am i missing?

Potentially another issue related to Windows 7 support, even in XP compatibility mode.  
Incoming 1.1.2 (before the end of this month) should fix the issue.

---

<div class="post-metadata">

**Author:** ![Panifis](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@Panifis](https://forum.sierrawireless.com/u/Panifis)\
**Post date:** [October 28, 2012, 1:31am UTC](https://forum.sierrawireless.com/t/binding-error-gcc-lkopt/4139/7 "2012-10-28T01:31:56Z")

</div>

I just moved from Windows XP to windows 7 (64bit). I am having the same issue, is there a fix for this out?

I am using the latest studio available on the website.

Any help would be very much appreciated.

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/daav/32/2767_2.png) [@daav](https://forum.sierrawireless.com/u/daav)\
**Post date:** [October 29, 2012, 8:01am UTC](https://forum.sierrawireless.com/t/binding-error-gcc-lkopt/4139/8 "2012-10-29T08:01:25Z")

</div>

This linker script is normally automatically generated by DS.  
It should appear in the output directory immediately after a clean.  
Does the project _compile_ correctly (no compilation error before the link step)?  
I’m thinking about an issue around the dependency to the OS package…  
The most efficient way to help you: please can you issue a technical report including the project source code?

---

<div class="post-metadata">

**Author:** ![Panifis](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@Panifis](https://forum.sierrawireless.com/u/Panifis)\
**Post date:** [November 1, 2012, 8:39am UTC](https://forum.sierrawireless.com/t/binding-error-gcc-lkopt/4139/9 "2012-11-01T08:39:21Z")

</div>

I received this error with every project I’ve tried, including the hello\_world example. I have reinstalled the studio.

I have checked in the workspace directories and the gcc.lkopt files are there, yet I still get the error ‘cannot open linker script file gcc.lkopt: No such file or directory’ at the “problems” sections.

To keep things simple, I created a new project with no code. So just the 2 defines and the main\_task function. I then tried to build the system and copied the report here:

> [@](#):
>
> \*\*\*\* Internal Builder is used for build \*\*\*\*  
> C:\Program Files (x86)\Sierra Wireless\Developer Studio251\tools\armeabigcc\4.4.1\bin\arm-none-eabi-gcc.exe -D\_\_OAT\_API\_VERSION\_\_=651 -DDS\_TARGET\_BB0 -D\_\_arm -D\_\_GNU\_GCC\_\_ -IC:\Program Files (x86)\Sierra Wireless\Embedded Software\com.wavecom.openat.ide.spm.lib.os.model.6.51.0.201206010944\_6.51.0.201206010944\resources/ADL/itf -IC:\Program Files (x86)\Sierra Wireless\Embedded Software\com.wavecom.openat.ide.spm.lib.os.model.6.51.0.201206010944\_6.51.0.201206010944\resources/ADL/basic -IC:\workspace\test\inc -O3 -Os -ggdb3 -Wall -c -fshort-enums -fdollars-in-identifiers -nostartfiles -fno-strict-aliasing -fno-common -fomit-frame-pointer -mthumb-interwork -mthumb -march=armv5te -msoft-float -mapcs -mno-apcs-stack-check -o src\generated.o …\src\generated.c  
> C:\Program Files (x86)\Sierra Wireless\Developer Studio251\tools\armeabigcc\4.4.1\bin\arm-none-eabi-gcc.exe -D\_\_OAT\_API\_VERSION\_\_=651 -DDS\_TARGET\_BB0 -D\_\_arm -D\_\_GNU\_GCC\_\_ -IC:\Program Files (x86)\Sierra Wireless\Embedded Software\com.wavecom.openat.ide.spm.lib.os.model.6.51.0.201206010944\_6.51.0.201206010944\resources/ADL/itf -IC:\Program Files (x86)\Sierra Wireless\Embedded Software\com.wavecom.openat.ide.spm.lib.os.model.6.51.0.201206010944\_6.51.0.201206010944\resources/ADL/basic -IC:\workspace\test\inc -O3 -Os -ggdb3 -Wall -c -fshort-enums -fdollars-in-identifiers -nostartfiles -fno-strict-aliasing -fno-common -fomit-frame-pointer -mthumb-interwork -mthumb -march=armv5te -msoft-float -mapcs -mno-apcs-stack-check -o src\main.o …\src\main.c  
> C:\Program Files (x86)\Sierra Wireless\Developer Studio251\tools\armeabigcc\4.4.1\bin\arm-none-eabi-g++.exe -Wl,–script,gcc.lkopt src\main.o src\generated.o -Wl,-( -nostartfiles -Os -O2 -fshort-enums -fdollars-in-identifiers -ggdb3 -fomit-frame-pointer -mthumb-interwork -mthumb -march=armv5te -msoft-float -mfpu=fpa -mapcs -mno-apcs-stack-check -Wl,-nmagic -Wl,-Map,test.map C:\Program Files (x86)\Sierra Wireless\Embedded Software\com.wavecom.openat.ide.spm.lib.os.model.6.51.0.201206010944\_6.51.0.201206010944\resources\ADL\RVDS\_ADL.lib -Wl,-) -otest.axf  
> c:/program files (x86)/sierra wireless/developer studio251/tools/armeabigcc/4.4.1/bin/…/lib/gcc/arm-none-eabi/4.4.1/…/…/…/…/arm-none-eabi/bin/ld.exe: cannot open linker script file gcc.lkopt: No such file or directory  
> collect2: ld returned 1 exit status  
> Build error occurred, build is stopped  
> Time consumed: 941 ms.

Any ideas?  
Everything is working fine on my old computer (running Windows XP).

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/daav/32/2767_2.png) [@daav](https://forum.sierrawireless.com/u/daav)\
**Post date:** [November 5, 2012, 8:59am UTC](https://forum.sierrawireless.com/t/binding-error-gcc-lkopt/4139/10 "2012-11-05T08:59:35Z")

</div>

No ideas, but some clues:

- Give a try by installing everything somewhere with no spaces and out of Program Files directory. Normally this shouldn’t be an issue (this is our main test configuration), but who knows?..
- Give a try to edit the linker command line, to make point to an absolute location to find the gcc.lkopt file (copy it elsewhere (once generated) if necessary).
