question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duktape fails to compile with DJGPP (DOS port of GCC)

See original GitHub issue

There is a very simple fix, though… I added in

#ifdef __DJGPP
#undef DUK_USE_DATE_PRS_STRPTIME
#endif

in duk_config.h after the OS/compiler detection logic and my test program compiled and ran flawlessly.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
svaaralacommented, Feb 23, 2022

Re: SIGABRT, it’s best practice for the first call into Duktape to be a protected one (e.g. duk_safe_call()) so that you should not easily be able to invoke an abort.

0reactions
phcodercommented, May 28, 2022

Can we have a .1 release with this? I’m porting tic80 to djgpp and this is one of pieces it needs

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · svaarala/duktape - GitHub
Duktape - embeddable Javascript engine with a focus on portability and compact footprint - Issues ... Duktape fails to compile with DJGPP (DOS...
Read more >
22.9 DJGPP as cross-compiler - delorie software
Q: I want to build GCC as a Unix-to-DOS cross-compiler. ... The Cygwin port of GCC can also be configured as a cross-compiler...
Read more >
Portability - (o) Duktape Wiki
Platform and compiler specific issues are discussed in more detail below the table. ... Linux, GCC, x32, No known issues, use -mx32 ....
Read more >
Porting Blood Nova to DOS | blog - shdon.com
Examples of such interpreters are Sami Varaala's Duktape, ... provided I can build them with DJGPP (a DOS port of the GCC compiler)....
Read more >
GCC cross compiler for DOS produces linker errors for simple ...
The problem is that you have not properly built a DJGPP cross compiler and all the needed components. You do not show us...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found