Hi Dima, Just wanted to give you an update that Isuru's suggested fix also worked for me. I have Xcode installed and have the directory
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk and a symlink /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk to this directory. I downloaded Isuru's suggested file and moved it to /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk, and now everything works. I'm guessing I could have just symlinked MacOSX10.14.sdk to MacOSX.sdk and everything would have worked, but I have not tested this yet. Best, Zach On Wednesday, October 9, 2019 at 12:00:51 AM UTC-4, Dima Pasechnik wrote: > > I think there is no need to make Homebrew build gcc from source. (and > again, you only need gfortran, so make sure there is no "real" gcc in your > PATH) > It's much more likely just the problem of using a binary built of Sage. > > On Tue, Oct 8, 2019 at 10:47 PM Zachary Scherr <zsc...@gmail.com > <javascript:>> wrote: > >> Will do. It also occurs to me that maybe I should force Homebrew to build >> GCC from source first and see if that works. I'll experiment some more and >> let you know how it goes. Thank you for the help. >> >> On Tuesday, October 8, 2019 at 11:44:53 PM UTC-4, Dima Pasechnik wrote: >>> >>> Note that Ben was building Sage from source, whereas you're trying to >>> modify a binary Sage installation, something that is more error-prone. >>> Would you mind trying to build from source instead? >>> >>> >>> On Tue, Oct 8, 2019 at 10:22 PM Zachary Scherr <zsc...@gmail.com> wrote: >>> >>>> That makes sense. I also tried installing gcc@8 and symlinking gfortran >>>> to make it point to the older version, but everything I've tried fails at >>>> the same point. >>>> >>>> On Tuesday, October 8, 2019 at 7:14:49 PM UTC-4, Dima Pasechnik wrote: >>>>> >>>>> No, you do NOT need "proper" gcc to build Sage on OSX, you need OSX's >>>>> clang/clang++ >>>>> OSX in its infinite wisdom aliases clang to gcc. >>>>> >>>>> One cannot build Sage on OSX with "real" gcc. >>>>> That is, your "gcc" should be /usr/bin/gcc, which is actually clang. >>>>> >>>>> >>>>> >>>>> On Tue, Oct 8, 2019 at 5:56 PM Zachary Scherr <zsc...@gmail.com> >>>>> wrote: >>>>> >>>>>> Hi Dima, >>>>>> >>>>>> I have, but I noticed something interesting which is that gcc and >>>>>> g++ are no longer symlinked in my /usr/local/bin. I have gcc-9 and >>>>>> g++-9 >>>>>> in there, but when I try "which gcc" and "which g++" I get /usr/bin/gcc >>>>>> and >>>>>> /usr/bin/g++ which are the versions installed by command line tools. >>>>>> This >>>>>> is making me even more confused because sage didn't even attempt to >>>>>> build >>>>>> with the version of gcc installed by homebrew. >>>>>> >>>>>> I'm currently retesting with gcc and g++ symlinked to the new >>>>>> version. I'll let you know if I have any success. >>>>>> >>>>>> Thanks, >>>>>> Zach >>>>>> >>>>>> On Tuesday, October 8, 2019 at 4:25:23 PM UTC-4, Dima Pasechnik wrote: >>>>>>> >>>>>>> did you try updating homebrew? >>>>>>> >>>>>>> I think that what ultimately helped Ben to get a working gfortran, >>>>>>> and correctly build whatever scipy's dependency is causing the problem. >>>>>>> >>>>>>> >>>>>>> On Tue, Oct 8, 2019 at 3:17 PM Zachary Scherr <zsc...@gmail.com> >>>>>>> wrote: >>>>>>> >>>>>>>> In an attempt to add openssl to sage I ran: sage -i openssl && sage >>>>>>>> -f python2 (which I've done successfully in every previous version of >>>>>>>> Sage >>>>>>>> 8.x). >>>>>>>> >>>>>>>> The sage -f python2 failed while trying to build scipy-1.2.0. This >>>>>>>> may be related to Ben's post >>>>>>>> https://groups.google.com/forum/#!topic/sage-devel/40E66JVHhW8 >>>>>>>> since it also failed with the message >>>>>>>> >>>>>>>> ld: library not found for -lSystem >>>>>>>> >>>>>>>> I too have gcc installed through homebrew, but I also tried >>>>>>>> removing it and installing gfortran separately and ended up with the >>>>>>>> same >>>>>>>> error. I've attached the log file, anyone know what's going on? >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> You received this message because you are subscribed to the Google >>>>>>>> Groups "sage-devel" group. >>>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>>> send an email to sage-...@googlegroups.com. >>>>>>>> To view this discussion on the web visit >>>>>>>> https://groups.google.com/d/msgid/sage-devel/5a356d10-a069-487a-a75c-ace33ba11f07%40googlegroups.com >>>>>>>> >>>>>>>> <https://groups.google.com/d/msgid/sage-devel/5a356d10-a069-487a-a75c-ace33ba11f07%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>> . >>>>>>>> >>>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "sage-devel" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to sage-...@googlegroups.com. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/sage-devel/cd8fa4be-df55-42a4-aeb3-d747fc42fbda%40googlegroups.com >>>>>> >>>>>> <https://groups.google.com/d/msgid/sage-devel/cd8fa4be-df55-42a4-aeb3-d747fc42fbda%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> >>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "sage-devel" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to sage-...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/sage-devel/8847eaa7-389c-49d8-b9d2-09d696e2a4b8%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/sage-devel/8847eaa7-389c-49d8-b9d2-09d696e2a4b8%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "sage-devel" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to sage-...@googlegroups.com <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/sage-devel/432f41bd-e140-445e-a4ac-856911505016%40googlegroups.com >> >> <https://groups.google.com/d/msgid/sage-devel/432f41bd-e140-445e-a4ac-856911505016%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/13e43b4d-2a0c-4735-a623-f9beaeea792e%40googlegroups.com.