Skip to content

Conversation

@BCSharp
Copy link
Member

@BCSharp BCSharp commented Feb 5, 2025

I think I've found a way to detect ARM64 on Mono that is reliable enough.

Copy link
Contributor

@slozier slozier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm! I guess I should try it on my Pi...

@slozier
Copy link
Contributor

slozier commented Feb 6, 2025

I guess I should try it on my Pi...

No luck on my Pi (not related to this PR though).

>>> import fcntl, termios
>>> fcntl.ioctl(0, termios.TIOCGPGRP, "  ")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 14] Bad address

@BCSharp
Copy link
Member Author

BCSharp commented Feb 6, 2025

What flavour of Linux are you running? Is the error the same across frameworks? Bad address usually means that OS got a null pointer iso the buffer. What is the output of uname -m?

@slozier
Copy link
Contributor

slozier commented Feb 6, 2025

What flavour of Linux are you running? Is the error the same across frameworks? Bad address usually means that OS got a null pointer iso the buffer. What is the output of uname -m?

Raspberry Pi OS (64-bit) which is based on Debian 12. I only tried .NET 8.

Linux raspberrypi 6.6.62+rpt-rpi-v8 #⁠1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64 GNU/Linux

@BCSharp BCSharp merged commit 2c5de6f into IronLanguages:main Feb 6, 2025
8 checks passed
@BCSharp BCSharp deleted the ioctl_mono branch February 6, 2025 23:38
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

Successfully merging this pull request may close these issues.

2 participants