Skip to content

Installing RST on a Mac...once more! #609

@mtwalach

Description

@mtwalach

BUG

I am trying to install RST on a new MacBook and seeing an error I have never seen before. When running make.code. The installation aborts upon the following error:
locate.c:190:31: error: incompatible function pointer types passing 'int (struct dirent *)' to parameter of type 'int (*)(const struct dirent *)' [-Wincompatible-function-pointer-types] status=scandir(dir,&dlist,dsel,alphasort); ^~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/dirent.h:150:11: note: passing argument to parameter here int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **)) __DARWIN_INODE64(scandir); ^ 10 warnings and 1 error generated. make: *** [locate.o] Error 1 Compilation Aborted.

I am guessing it's something to do with the C libraries or the compiler but it is not something I have ever encountered before, so I don't know how to fix it. Any ideas?

Priority

  • Minor - typo, incorrect naming, fails in a specific uncommon situation
  • Major - misrepresentation of data, failure in a common situation
  • Urgent - failure in usage, large misrepresentation of data

RST version

Does the bug occur in an official RST release?

  • Yes. RST version: 5.0
  • No. Branch containing the bug (e.g. develop): ______

Example of the bug

The error above occurs when compiling the following:

`Compiling Binary:/Users/walach/Documents/rst/codebase/analysis/src.bin/cdf/istp_plot.1.11

make clean
rm -f *.o
rm -f version.h
rm -f errstr.h
rm -f hlpstr.h
rm -f istp_plot
make
make.version /Users/walach/Documents/rst/codebase/analysis/src.bin/cdf/istp_plot.1.11
make.help
./doc/istp_plot.doc.xml `

See log file here:
superdarn-rst.build.20240403.1717.txt

Attempts

What have you tried already to fix it?
I followed @billetd's instructions (#556 (comment)) for M chipped Macs and am still getting errors.

What have you tried to work around it?
N/A

Data Access

Please describe how to obtain the data needed to reproduce the bug (e.g. specific file, use make_fit on any rawacf file).
N/A

Potential Bug Location

No idea.

Potential Solution(s)

No idea.

Extra Notes

  • Software: Sonoma 14.4.1
  • Hardware: Apple M3
  • Compiler:
    Apple clang version 15.0.0 (clang-1500.3.9.4)
    Target: x86_64-apple-darwin23.4.0
    Thread model: posix
    InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions