ReferenceError: ___syscall is not defined

26 views
Skip to first unread message

stéphane conversy

unread,
Dec 10, 2019, 4:21:16 AM12/10/19
to emscripten-discuss
Hi, trying to port fontconfig, I get 'ReferenceError: ___syscall is not defined', possibly when calling fstats64:


function ___syscall269(which, varargs) {SYSCALLS.varargs = varargs;
   try {
   // fstatfs64
     var stream = SYSCALLS.getStreamFromFD(), size = SYSCALLS.get(), buf = SYSCALLS.get();
     return ___syscall([268, 0, size, buf], 0);
   } catch (e) {
     if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
     return -e.errno;
 }


I could not find any reference to this problem, did I miss something?


Cheers,

Stéphane

Sam Clegg

unread,
Dec 18, 2019, 6:45:25 PM12/18/19
to emscripte...@googlegroups.com
I think you are correct, looks like a bug in fstatfs.  I can't see any tests for that syscall so it not surprising.  Would you mind opening a bug?

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/6535fc23-686a-4c4e-9892-bb662a481ff9%40googlegroups.com.

Alon Zakai

unread,
Dec 19, 2019, 10:27:07 AM12/19/19
to emscripte...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages