serial.nim icon indicating copy to clipboard operation
serial.nim copied to clipboard

Fails to compile on Windows with `--gc:orc`

Open maleyva1 opened this issue 2 years ago • 1 comments

As the title says, the following program fails to compile on Windows with --gc:orc:

import serial

for i in listSerialPorts():
   echo i

Expected behavior:

  • Sample program compiles

Actual behavior:

  • The program fails to compile with --gc:orc and we get the following message:
$HOME\.nimble\pkgs\serial-1.1.5\serial\private\utils\windows_registry.nim(89, 81) Error: expression cannot be cast to pointer

Nim Version: 1.6.12

OS: Windows 11 Pro 22H2 Build 22621.1702

maleyva1 avatar May 15 '23 18:05 maleyva1

Interesting. I haven’t actually tested with orc, but will do so next weekend when I next have access and time to test. Thanks for bringing this to my attention!On 15 May 2023, at 19:32, Mark Leyva @.***> wrote: As the title says, the following program fails to compile on Windows with --gc:orc: import serial

for i in serialPorts(): echo i Expected behavior:

Sample program compiles

Actual behavior:

The program fails to compile with --gc:orc and we get the following message:

$HOME.nimble\pkgs\serial-1.1.5\serial\private\utils\windows_registry.nim(89, 81) Error: expression cannot be cast to pointer

Nim Version: 1.6.12 OS: Windows 11 Pro 22H2 Build 22621.1702

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

euantorano avatar May 15 '23 19:05 euantorano