Build failure in mingw toolchain

2022-10-11 Thread Biswapriyo Nath
I have been trying to compile guile with mingw toolchain for native Win32 target. But the compilation process failed at the following error: ``` ld.exe: .libs/libguile_3.0_la-posix.o: in function `scm_gethostname': libguile/posix.c:2379: undefined reference to `__imp_gethostname_used_without_reque

[DRAFT] Improve reporting of exception locations

2022-10-11 Thread Andrew Whatson
Hello guile-dev! I'm working on a revised patch to improve the reporting of exception locations, after last month's initial flawed attempt. The new patch takes the more radical approach of capturing the stack when an exception is created, including it as part of the compound exception object. Th

[DRAFT] Improve reporting of exception locations

2022-10-11 Thread Andrew Whatson
TODO: use exception-stack in other error handlers TODO: print-exception variant for exception objects TODO: test cases for other kinds of errors * module/ice-9/exceptions.scm (&stack): New exception type. (convert-guile-exception): Capture the stack when creating an exception. * module/system/repl