Eric K Richardson

Results 394 comments of Eric K Richardson

Just as a FYI, the restriction to allow debug + thin was lifted (requested by Lorenzo) whereas previously it was not allowed. Poking through online information suggested that allowing it...

@JD557 Could you report your OS, clang version etc? It might be in your references but here would be nicer.

Right we shouldn't use Scala libraries in the javalib so also `import scala.collection.mutable.UnrolledBuffer` should be replaced with a Java API and ScalaOps if needed for some functional niceness.

I just updated to Visual Studio 2022 17.7.4 which has clang 16.0.5. Still no luck. I found this which seems to at least explain the problem of external symbols. https://www.plantation-productions.com/Webster/Win32Asm/win32API.html...

Update: I have been able to compile 64 bit using the LLVM toolchain directly. Install into `C:\Users\\AppData\Local\LLVM` ``` $ ~/AppData/Local/LLVM/bin/clang --version clang version 16.0.6 Target: x86_64-pc-windows-msvc Thread model: posix InstalledDir:...

This is the results for `0.5.0-RC3`. Looks like we can't compile now - terrible that the MS tools and the Clang differ so much. ```sh $ clang --version clang version...

Working on trying to see if using `clang-cl` might work better but now getting this which seems un-related. It always seems to happen on `eh.cpp` however. ```scala [info] Compiling to...

This was an idea I had for making sure the function would link with 32-bit. ```C +++ b/nativelib/src/main/resources/scala-native/gc/commix/GCThread.c @@ -11,7 +11,7 @@ #include "State.h" #ifdef _WIN32 -#define LastError GetLastError() +#define...

The ability to use `trait`s and `extern` is new. See https://github.com/scala-native/scala-native/pull/2988 and https://github.com/scala-native/scala-native/pull/3001 cc/ @WojciechMazur

This is also a case where we really don't need a posix trait - https://github.com/scala-native/scala-native/blob/main/posixlib/src/main/scala/scala/scalanative/posix/errno.scala The object can extend the trait and in the body can add posix specific code....