You don't happen to set CFLAGS or CPPFLAGS by any chance? The problem in the failing compile command from your log is that "-I/Users/zscherr/sage/develop/local/include" appears after "-I/usr/local/include". It should appear before.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I./sage/cpython -I/Users/zscherr/sage/develop/local/include/singular -I/Users/zscherr/sage/develop/build/pkgs/sagelib/src -I/Users/zscherr/sage/develop/build/pkgs/sagelib/src/sage/ext -I/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/include/python3.8 -I/Users/zscherr/sage/develop/local/lib/python3.8/site-packages/numpy/core/include -Ibuild/cythonized -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/Users/zscherr/sage/develop/local/include -I/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c build/cythonized/sage/algebras/letterplace/free_algebra_element_letterplace.cpp -o build/temp.macosx-10.15-x86_64-3.8/build/cythonized/sage/algebras/letterplace/free_algebra_element_letterplace.o -fno-strict-aliasing -DCYTHON_CLINE_IN_TRACEBACK=1 -DSING_NDEBUG -DOM_NDEBUG -I/Users/zscherr/sage/develop/local/include/singular -std=c++11 On Wednesday, September 9, 2020 at 8:52:07 PM UTC-7, Zachary Scherr wrote: > > Running ./sage -sh -c 'pkg-config --cflags singular' with home-brew's > singular installed gives: > > -DSING_NDEBUG -DOM_NDEBUG -DSING_NDEBUG -DOM_NDEBUG -DSING_NDEBUG > -DOM_NDEBUG -DSING_NDEBUG -DOM_NDEBUG > -I/Users/zscherr/sage/develop/local/include/singular > > my env is a mess, but I do source .homebrew-build-env, here is what I > think are the relevant variables: > > > PATH=/usr/local/opt/gettext/bin:/Users/zscherr/perl5/bin:/usr/local/sbin:/usr/local/Cellar/modules/4.5.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Library/Apple/usr/bin > > PKG_CONFIG_PATH=/usr/local/opt/zlib/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/readline/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/openblas/lib/pkgconfig:/usr/local/lib/pkgconfig: > > LIBRARY_PATH=/usr/local/opt/gcc@9/lib/gcc/9:/usr/local/opt/readline/lib:/usr/local/lib > CPATH=/usr/local/opt/readline/include:/usr/local/include > ACLOCAL_PATH=/usr/local/opt/gettext/share/aclocal: > > As expected, if I brew uninstall singular then running ./sage -sh -c > 'pkg-config --cflags singular' gives > > -DSING_NDEBUG -DOM_NDEBUG -DSING_NDEBUG -DOM_NDEBUG -DSING_NDEBUG > -DOM_NDEBUG -DSING_NDEBUG -DOM_NDEBUG > -I/Users/zscherr/sage/develop/local/include/singular > > I was able to build beta 11 so I can try to git bisect if you think that > would be useful. > > > > > On Wednesday, September 9, 2020 at 11:04:16 PM UTC-4 Matthias Koeppe wrote: > >> On Wednesday, September 9, 2020 at 7:57:18 PM UTC-7, Matthias Koeppe >> wrote: >>> >>> On Wednesday, September 9, 2020 at 6:49:36 PM UTC-7, Zachary Scherr >>> wrote: >>>> >>>> I tried to build the most recent beta version of sage and it would >>>> appear that it's taking issue with the fact that I have singular installed >>>> on my Mac 10.15.6 through homebrew. Homebrew's version is singular >>>> 4.1.3p2 >>>> and when I try to build sage I get errors like: >>>> >>>> "In file included from >>>> build/cythonized/sage/rings/polynomial/plural.cpp:684: >>>> /usr/local/include/singular/Singular/libsingular.h:15:10: fatal error: >>>> 'polys/shiftop.h' file not found >>>> #include "polys/shiftop.h" >>>> >>>> >>> Could you run the following please: >>> ./sage -sh -c 'pkg-config --cflags singular' >>> >>> >> Also could you post the output of "env"? >> (Do you use .homebrew-build-env to set environment variables?) >> >> -- 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/cc37e026-8ba5-432d-87ed-a30e654137d0o%40googlegroups.com.