Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system calls on aarch64 darwin fail opaquely with llvm-{18,19} #928

Open
tkerber opened this issue Mar 27, 2025 · 0 comments
Open

system calls on aarch64 darwin fail opaquely with llvm-{18,19} #928

tkerber opened this issue Mar 27, 2025 · 0 comments

Comments

@tkerber
Copy link

tkerber commented Mar 27, 2025

This may be related to #896, although I cannot tell.

Empirically, calls to the system procedure (for instance (system "echo foo")) fail on chez scheme 10.1.0 and 10.0.0 when compiled with llvm 18 / 19, but not with llvm 17. I have not observed this on aarch64 linux. Here's a sample repl transcript:

$ scheme
Chez Scheme Version 10.1.0
Copyright 1984-2024 Cisco Systems, Inc.

> (system "echo foo bar")
Exception in system: Resource temporarily unavailable
Type (debug) to enter the debugger.
> 

This was tested through nix, and currently affects the latest scheme obtainable on macos on nixos, though I'll make a PR to patch this downstream.

mflatt added a commit to mflatt/ChezScheme that referenced this issue Apr 2, 2025
Recent versions of the build tools on macOS define `TARGET_OS_IPHONE`
as 0 when not compiling for iOS.

Closes cisco#896 and cisco#928
mflatt added a commit to mflatt/ChezScheme that referenced this issue Apr 2, 2025
Recent versions of the build tools on macOS define `TARGET_OS_IPHONE`
as 0 when not compiling for iOS.

Closes cisco#896 and cisco#928
mflatt added a commit to mflatt/ChezScheme that referenced this issue Apr 3, 2025
Recent versions of the build tools on macOS define `TARGET_OS_IPHONE`
as 0 when not compiling for iOS, so `#ifdef` needs to be `#if`.
Meanwhile, older versions of macOS tools have
`-Wundef-prefix=TARGET_OS_`, so it's not good to just change `#ifdef`
to `#if`.

Closes cisco#896 and cisco#928
mflatt added a commit that referenced this issue Apr 7, 2025
Recent versions of the build tools on macOS define `TARGET_OS_IPHONE`
as 0 when not compiling for iOS, so `#ifdef` needs to be `#if`.
Meanwhile, older versions of macOS tools have
`-Wundef-prefix=TARGET_OS_`, so it's not good to just change `#ifdef`
to `#if`.

Closes #896 and #928
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant