Summary

csm fails on Windows

Metadata

Description

(Reported by Quinn Van De Keere:)

I'm trying to compile a simple project via CSM consisting of just one .scm file (for now) and it refuses to work on Windows.

C:/code/avs/code $ csm

  "C:/CHICKEN/bin/csc" "-s" "-J" "-I" "C:/code/avs/code" "-C" "-I" "-C"

"C:/code/avs/code" "C:/code/avs/code\avs.scm" "-o" "avs.so"

The filename, directory name, or volume label syntax is incorrect.

command failed with non-zero exit status: "C:/CHICKEN/bin/csc" "-s" "-J" "-I" "C:/code/avs/code" "-C" "-I" "-C" "C:/code/avs/code" "C:/code/avs/code\avs.scm" "-o" "avs.so"

This command was executed via the w64devkit shell, although it also refuses to work outside that environment (e.g. in powershell or the standard command prompt) with the same error. I tested this same setup in my OpenBSD VM and it works just fine.

Changes and comments

[2026-08-23 10:21:10 UTC] felix set owner to felix

[2026-08-23 10:21:11 UTC] felix changed status from new to accepted

[2026-08-26 12:35:41 UTC] felix wrote:

I think slashification produces inconsistent filenames. csm 0.93 drops windows-specific slash-substitution. Trying to use "sh -c ' ... '" in a replacement for "system" didn't work, for currently unknown reasons. "-g" should produce a workable makefile, but the problem is not solved yet.