-
Notifications
You must be signed in to change notification settings - Fork 255
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
gccgo compatibility #201
Comments
For some reason the syscall.NAME_MAX constant does not exist on gccgo, and it does not hurt us to use unix.NAME_MAX instead. #201
How about converting with |
What's the error with getdents?
|
Here is the error:
|
Can reproduce on amd64, looking into it
|
Uh, libgo does not support reading the directory contents from a file descriptor. This is the error we get thrown: https://github.com/gcc-mirror/gcc/blob/11ce88c6d4dc0f847d8e5d8fac795b7de05ec0e4/libgo/go/os/dir_gccgo.go#L55 Note that "file.name" is the empty string because of
|
Why, for Darwin, are we not using the |
Meanwhile, I turned off the problematic emulation (and its test) for Debian. Your great software |
The test is known to fail on gccgo (#201), but getdents emulation is not used on linux, so let's skip the test and ignore the failure.
You might like commit 8151222 which skips the broken test when running on gccgo + linux. As for Darwin and getdirentries64: yes, could work, but I cannot give it enough testing to have confidence in it. emulateGetdents is bulletproof because it only uses the stdlib. |
PS: Thank you for your work on the Debian package! |
Continues the discussion at #200
The text was updated successfully, but these errors were encountered: