Good points but no cigar, the below has a script to reproduce the problem. It assumes you have AFNI_demo/CD under your home directory (where else would it be?).
My afni version is: Precompiled binary macos_10.12_local: Oct 1 2022 (Version AFNI_22.2.12 ‘Marcus Aurelius’)
I am able to duplicate this - sort of. I don’t get an error, but the long path doesn’t return anything at all. The long path doesn’t work under Rosetta emulation mode with our MacOS binaries, but both short and long paths work on binaries built from source on an M1 system. Are there any cigars for M1/M2 Apple system here?
Additional info - I do get an “Illegal instruction” error if run this with “sh” or “bash” instead of “zsh”, the default shell on the Mac now.
Are you running this on an M1 or M2 Mac?
Are you doing this in a Rosetta Terminal or the standard Terminal?
Which shell in the terminal? As an sh script within that shell?
This is happening on a mac pro 2019, Intel Xeon W. The command is failing in zsh and I am using iTterm2 , but the dicom_hinfo command also fails from Terminal, whether using zsh, sh, or tcsh.
I see an “illegal instruction” on an Intel Mac too, but it works with binaries built on the same machine. Okay, one more question (at least) - what version of OS are you using?
Can you try this copy of my 10.15 binaries and see if this works for you?
Hi Z.
My guess is to why this happens is there is some optimization that doesn’t translate across MacOS versions. That’s based on similar kinds of issues with illegal instructions on differing versions. We could compile these particular programs with no optimization or… we could compile for the more current MacOS. More recent OS’s can also require code signing which we still don’t do. One good solution then is to make scripts that do the building for you. That should be available soon. Hopefully. In the meantime, would the binaries for those two programs be okay as is? Can you build AFNI for your own system?
Thanks for the reply. I would love to be able to build regularly but I often run into glitches that I don’t have time to resolve. I need the whole package to run seamlessly, including dependencies on R_io.so.
If you have new tools to automate the build I would be happy to test them out.
In the meanwhile, I grabbed the dicom_ programs from the version that worked and that seems fine.
All the best,
Ziad
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.