<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Sam,<br><br>looks like the XCode command line tools containing standard headers are either not installed or updated. Try xcode-select --install or manually download them from <a href="https://developer.apple.com/download/more/">https://developer.apple.com/download/more/</a> and maybe uninstall/reinstall them in case updates don't work. Check with </div><div dir="ltr"><br></div><div dir="ltr">find /Library/Developer/CommandLineTools/ -name _stdio.h</div><div dir="ltr"><br></div><div>which should give /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h (besides possible older versions of MacOSX)</div><div><br></div><div>Best,</div><div><br></div><div>Chris</div><div><br></div><div><br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Sa., 9. Jan. 2021 um 03:02 Uhr schrieb Samuel Dupree <<a href="mailto:sdupree@speakeasy.net">sdupree@speakeasy.net</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">I'm attempting to wrap a Fortran-77 source member library using f2py. <br>
I'm running he Anaconda distribution for Python 3.7.6 on a Mac Pro <br>
(2019) under Mac OS X Big Sur (ver. 11.1). The version of Xcode.app I'm <br>
running is 12.3. The version of NumPy I'm running is 1.18.3.<br>
<br>
The errors I'm getting are from header files the compiler can't find as <br>
captured in the attached log file. A sample of the kind of errors I'm <br>
seeing are captured below.<br>
<br>
compile options: <br>
'-I/var/folders/2r/4bw6nw0x58z0_ybx632_h14m0000gq/T/tmp5uemdb2k/src.macosx-10.9-x86_64-3.7 <br>
-I/Users/user/opt/anaconda3/lib/python3.7/site-packages/numpy/core/include <br>
-I/Users/user/opt/anaconda3/include/python3.7m -c'<br>
gcc: <br>
/var/folders/2r/4bw6nw0x58z0_ybx632_h14m0000gq/T/tmp5uemdb2k/src.macosx-10.9-x86_64-3.7/sofapymodule.c<br>
gcc: <br>
/var/folders/2r/4bw6nw0x58z0_ybx632_h14m0000gq/T/tmp5uemdb2k/src.macosx-10.9-x86_64-3.7/fortranobject.c<br>
In file included from <br>
/opt/local/lib/gcc10/gcc/x86_64-apple-darwin20/10.2.0/include-fixed/syslimits.h:7,<br>
                  from <br>
/opt/local/lib/gcc10/gcc/x86_64-apple-darwin20/10.2.0/include-fixed/limits.h:34,<br>
                  from <br>
/Users/user/opt/anaconda3/include/python3.7m/Python.h:11,<br>
                  from <br>
/var/folders/2r/4bw6nw0x58z0_ybx632_h14m0000gq/T/tmp5uemdb2k/src.macosx-10.9-x86_64-3.7/sofapymodule.c:14:<br>
/opt/local/lib/gcc10/gcc/x86_64-apple-darwin20/10.2.0/include-fixed/limits.h:195:61: <br>
error: no include path in which to search for limits.h<br>
   195 | #include_next <limits.h>  /* recurse down to the real one */<br>
|                                                             ^<br>
In file included from <br>
/Users/user/opt/anaconda3/include/python3.7m/Python.h:25,<br>
                  from <br>
/var/folders/2r/4bw6nw0x58z0_ybx632_h14m0000gq/T/tmp5uemdb2k/src.macosx-10.9-x86_64-3.7/sofapymodule.c:14:<br>
/opt/local/lib/gcc10/gcc/x86_64-apple-darwin20/10.2.0/include-fixed/stdio.h:78:10: <br>
fatal error: _stdio.h: No such file or directory<br>
    78 | #include <_stdio.h><br>
       |          ^~~~~~~~~~<br>
compilation terminated.<br>
<br>
Any suggestions?<br>
<br>
Sam Dupree.<br>
<br>
<br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@python.org" target="_blank">NumPy-Discussion@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/numpy-discussion" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/numpy-discussion</a><br>
</blockquote></div>