Chibi 18 missing DLL for OpenOCD Topic is solved

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

Chibi 18 missing DLL for OpenOCD

Postby steved » Tue Jun 27, 2017 1:51 pm

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
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Chibi 18 missing DLL for OpenOCD

Postby RoccoMarco » Tue Jun 27, 2017 3:12 pm

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
Ciao,
RM

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Chibi 18 missing DLL for OpenOCD

Postby Giovanni » Tue Jun 27, 2017 3:25 pm

Could it be compiled to not use DLLs?

Giovanni

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Chibi 18 missing DLL for OpenOCD

Postby RoccoMarco » Tue Jun 27, 2017 3:43 pm

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)
Ciao,
RM

steved
Posts: 823
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

Re: Chibi 18 missing DLL for OpenOCD

Postby steved » Tue Jun 27, 2017 5:45 pm

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
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Chibi 18 missing DLL for OpenOCD

Postby RoccoMarco » Tue Jun 27, 2017 10:50 pm

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 213 times
Ciao,
RM

steved
Posts: 823
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

Re: Chibi 18 missing DLL for OpenOCD  Topic is solved

Postby steved » Wed Jun 28, 2017 1:18 pm

All fine - 'just works' now.


Return to “ChibiStudio”

Who is online

Users browsing this forum: No registered users and 13 guests