Chibi 18 missing DLL for OpenOCD Topic is solved

Discussions and support about ChibiStudio, the free development environment for ARM.
Post Reply
steved
Posts: 834
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 138 times

Chibi 18 missing DLL for OpenOCD

Post by steved »

When trying to start OpenOCD, I got a message "missing dll libgcc_s_dw2-1.dll".
One option is to copy the file fromChibiStudio/tools/gnutools/bin to ChibiStudio/tools/openocd/bin
(I start OpenOCD from a batch file in the project directory, so maybe the dll isn't in the path).
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: Chibi 18 missing DLL for OpenOCD

Post by RoccoMarco »

Or maybe you can set the path in your bat file...
set PATH=C:\ChibiStudio\tools\gnutools\bin;%PATH%

I will add this dll by default in the next built
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Chibi 18 missing DLL for OpenOCD

Post by Giovanni »

Could it be compiled to not use DLLs?

Giovanni
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: Chibi 18 missing DLL for OpenOCD

Post by RoccoMarco »

I have to check this. BTW it is good as is for standard use (since the dll is added by the chibistudio start batch file)
steved
Posts: 834
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 138 times

Re: Chibi 18 missing DLL for OpenOCD

Post by steved »

Giovanni wrote:Could it be compiled to not use DLLs?

Giovanni

Some of the comments on playembedded suggest its just a compiler switch.

(I could add paths to a batch file, but I prefer to keep as much as possible position-independent, since I don't always have Chibi installed on the same drive. And I'm not keen on long search paths)
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: Chibi 18 missing DLL for OpenOCD

Post by RoccoMarco »

It seems that link gcc statically would require an edit to the PKGBUILD which actually is a kind of standard.
Right now I have solved the problem adding the missing dll taking it from the compiler used to build openocd. I have also updated the related article on PLAY Embedded.

I will ask to Alexpux (the maintainer of PKGBUILD) if it makes any sense to create an alternative PKGBUILD to link dlls statically.

Attached the latest version of OpenOCD. Can you try it? If it is good I will create another ChibiStudio package. (Preview 19)
Thanks for reporting.

EDIT: tested on my side and it works
Attachments
openocd.7z
(1.21 MiB) Downloaded 741 times
steved
Posts: 834
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 138 times

Re: Chibi 18 missing DLL for OpenOCD

Post by steved »

All fine - 'just works' now.
Post Reply