Closed jameskleung closed 1 month ago
Hi, thanks for the issue. I will look into this next few days.
I just got a M3 macOS machine and could replicate this issue. This is not an issue with fortran but SCHED's C code. Cit/sys_linux/exit.o Cit/sys_linux/exit.c
is a simple C code as below.
/* Wrapper function for exit */
/* by kaj.wiik@hut.fi (25 May 1996) */
#include <stdlib.h>
void exit_ (int *errno) {
exit(errno);
}
I think the latest Xcode's stdlib.h anticipate that exit
function will take only an integer rather than the pointer. This causes an error here. In the mean time, I will ignore this compile error by specifying "-Wno-int-conversion" option for GCC. But, this just allows to compile sched without an error and doesn't guarantee that the compiled software will work without an issue by that. Ultimately this needs to be fixed by the SCHED developer team.
@jameskleung if you don't mind, would you volunteer to create an issue at the NRAO website to report this issue? Please feel free to link this issue page. Here is the link to the page. https://science.nrao.edu/observing/helpdesk
Hi I just made the above adhoc fix that at least allows to compile SCHED without an error. Please try brew update; brew install sched
, and also let me know if it doesn't work or you have any issues with the compiled software. As I said this particular issue needs to be fixed by the SCHED developer team.
Thanks Kazu, I have submitted a helpdesk ticket and will let you know how it goes. Meanwhile, the work around works well and I have not run into any problems while using it.
Great! Thanks for confirming this so quickly! I will close the issue. Please feel free to reopen if you find any issues.
In file included from Cit/sys_linux/exit.c:3: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/stdlib.h:145:15: note: expected 'int' but argument is of type 'int *' 145 | void exit(int) __dead2; | ^~~ make[1]: [Cit/sys_linux/exit.o] Error 1 make: [all] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core): https://github.com/kazuakiyama/homebrew-sched/issues