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

Does not work on arm #91

Open
tejassharma96 opened this issue Feb 28, 2024 · 6 comments · May be fixed by #92
Open

Does not work on arm #91

tejassharma96 opened this issue Feb 28, 2024 · 6 comments · May be fixed by #92

Comments

@tejassharma96
Copy link

Was curious about trying this out, but I am on an M1 mac and this tool does not appear to support arm. I'm not familiar enough with c/makefiles/anything going on here to attempt to make those updates myself 😅

devnoname120 added a commit to devnoname120/stderred that referenced this issue Oct 29, 2024
i386 (32 bits) has been deprecated for a long time on macOS, not supported by libSystem,  and it thus breaks compilation with the following error:

```
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/lib/libSystem.tbd (3 slices)
ld: dynamic executables or dylibs must link with libSystem.dylib for architecture i386
cc: error: linker command failed with exit code 1 (use -v to see invocation)
```

Fix ku1ik#91
@devnoname120
Copy link

@tejassharma96 You can try this: #92

@tejassharma96
Copy link
Author

neat, will give it a try

@tejassharma96
Copy link
Author

this definitely builds now, but I haven't been able to get it to work after exporting DYLD_INSERT_LIBRARIES as per the readme. is there a different thing I should be doing for arm?

@devnoname120
Copy link

@tejassharma96 For me the following works. I have it in my ~/.zshrc:

export DYLD_INSERT_LIBRARIES="/Users/paul/devnoname120/stderred/build/libstderred.dylib${DYLD_INSERT_LIBRARIES:+:$DYLD_INSERT_LIBRARIES}"

What command did you try it with?

@tejassharma96
Copy link
Author

first I tried it with the alias:

alias stderred="DYLD_INSERT_LIBRARIES=/Users/tejass/Test/stderred/build/libstderred.dylib${DYLD_INSERT_LIBRARIES:+:$DYLD_INSERT_LIBRARIES}"
stderred cat jsdkj
cat: jsdkj: No such file or directory

but the output was just white

then I tried

export DYLD_INSERT_LIBRARIES=/Users/tejass/Test/stderred/build/libstderred.dylib${DYLD_INSERT_LIBRARIES:+:$DYLD_INSERT_LIBRARIES}
stderred cat jsdkj
cat: jsdkj: No such file or directory

but again the output was white. I'll try putting it in my zshrc and starting a new shell

@tejassharma96
Copy link
Author

no luck 🤷

it's probably a bad interaction with something else in my shell environment, I have several customizations...
either way, it certainly builds for me now and if it works for you then the issue must be something local to me. hopefully the maintainer merges your PR 🙏

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 a pull request may close this issue.

2 participants