When I have had problems with libpng, it has helped to do "brew install pkg-config". If you happened to start building Sage and then upgraded Homebrew and/or Xcode in the middle of that, or if you've installed any new Homebrew packages, you should probably start over with "make distclean" followed by "make".
On Wednesday, April 8, 2020 at 7:58:38 PM UTC-7, David Einstein wrote: > > Here is the config.log. > > On Wednesday, April 8, 2020 at 10:32:51 PM UTC-4, Dima Pasechnik wrote: >> >> Hi David, >> It might help if you posted the top-level config.log, thanks. >> >> Dima >> >> On Thu, Apr 9, 2020 at 9:58 AM David Einstein <dei...@gmail.com> wrote: >> > >> > I am trying to build on OSX Catalina, and everything seems to go well >> until it builds sagelib, and I get a libpng not found. >> > >> > Everything built nicely a few weeks ago. I am tempted to blame the >> upgrade to catalina, but I also upgraded hombrew and XCode. >> > >> > Any ideas? >> > >> > Here is the final output from the terminal. >> > >> > if [ -z "$SAGE_INSTALL_FETCH_ONLY" ]; then \ >> > >> > cd /Users/davideinstein/projects/sage/src && source bin/sage-env && >> source /Users/davideinstein/projects/sage/build/bin/sage-build-env-config >> && \ >> > >> > sage-logger -p 'time make sage' >> '/Users/davideinstein/projects/sage/logs/pkgs/sagelib-9.1.beta9.log'; \ >> > >> > fi >> > >> > [sagelib-9.1.beta9] cd . && export \ >> > >> > [sagelib-9.1.beta9] SAGE_ROOT=/doesnotexist >> \ >> > >> > [sagelib-9.1.beta9] SAGE_SRC=/doesnotexist >> \ >> > >> > [sagelib-9.1.beta9] SAGE_SRC_ROOT=/doesnotexist >> \ >> > >> > [sagelib-9.1.beta9] SAGE_DOC_SRC=/doesnotexist >> \ >> > >> > [sagelib-9.1.beta9] SAGE_BUILD_DIR=/doesnotexist >> \ >> > >> > [sagelib-9.1.beta9] >> SAGE_PKGS=/Users/davideinstein/projects/sage/build/pkgs \ >> > >> > [sagelib-9.1.beta9] && sage-python -u setup.py --no-user-cfg build >> install >> > >> > [sagelib-9.1.beta9] >> /Users/davideinstein/projects/sage/src/bin/sage-env: line 130: cd: >> /doesnotexist: No such file or directory >> > >> > [sagelib-9.1.beta9] Warning: overwriting SAGE_ROOT environment >> variable: >> > >> > [sagelib-9.1.beta9] Old SAGE_ROOT=/doesnotexist >> > >> > [sagelib-9.1.beta9] New SAGE_ROOT= >> > >> > [sagelib-9.1.beta9] >> ************************************************************************ >> > >> > [sagelib-9.1.beta9] Traceback (most recent call last): >> > >> > [sagelib-9.1.beta9] File "setup.py", line 72, in <module> >> > >> > [sagelib-9.1.beta9] from module_list import ext_modules, >> library_order >> > >> > [sagelib-9.1.beta9] File >> "/Users/davideinstein/projects/sage/src/module_list.py", line 36, in >> <module> >> > >> > [sagelib-9.1.beta9] png_pc = pkgconfig.parse('libpng') >> > >> > [sagelib-9.1.beta9] File >> "/Users/davideinstein/projects/sage/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py", >> >> line 248, in parse >> > >> > [sagelib-9.1.beta9] _raise_if_not_exists(package) >> > >> > [sagelib-9.1.beta9] File >> "/Users/davideinstein/projects/sage/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py", >> >> line 103, in _raise_if_not_exists >> > >> > [sagelib-9.1.beta9] raise PackageNotFoundError(package) >> > >> > [sagelib-9.1.beta9] pkgconfig.pkgconfig.PackageNotFoundError: libpng >> not found >> > >> > [sagelib-9.1.beta9] >> ************************************************************************ >> > >> > [sagelib-9.1.beta9] Error building the Sage library >> > >> > [sagelib-9.1.beta9] >> ************************************************************************ >> > >> > [sagelib-9.1.beta9] Please email sage-devel ( >> http://groups.google.com/group/sage-devel) >> > >> > [sagelib-9.1.beta9] explaining the problem and including the relevant >> part of the log file >> > >> > [sagelib-9.1.beta9] >> /Users/davideinstein/projects/sage/logs/pkgs/sagelib-9.1.beta9.log >> > >> > [sagelib-9.1.beta9] Describe your computer, operating system, etc. >> > >> > [sagelib-9.1.beta9] >> ************************************************************************ >> > >> > [sagelib-9.1.beta9] make[4]: *** [sage] Error 1 >> > >> > [sagelib-9.1.beta9] >> > >> > [sagelib-9.1.beta9] real 0m0.612s >> > >> > [sagelib-9.1.beta9] user 0m0.193s >> > >> > [sagelib-9.1.beta9] sys 0m0.133s >> > >> > make[3]: *** [sagelib] Error 2 >> > >> > make[2]: *** [all-start] Error 2 >> > >> > >> > real 212m28.552s >> > >> > user 151m29.195s >> > >> > sys 26m1.334s >> > >> > *************************************************************** >> > >> > Error building Sage. >> > >> > >> > The following package(s) may have failed to build (not necessarily >> > >> > during this run of 'make all-start'): >> > >> > >> > * package: sagelib-9.1.beta9 >> > >> > last build time: Apr 8 21:23 >> > >> > log file: >> /Users/davideinstein/projects/sage/logs/pkgs/sagelib-9.1.beta9.log >> > >> > >> > It is safe to delete any log files and build directories, but they >> > >> > contain information that is helpful for debugging build problems. >> > >> > WARNING: If you now run 'make' again, the build directory of the >> > >> > same version of the package will, by default, be deleted. Set the >> > >> > environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this. >> > >> > >> > make[1]: *** [all-start] Error 1 >> > >> > make: *** [all] Error 2 >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "sage-support" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to sage-s...@googlegroups.com. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/sage-support/d8e46d82-f201-4cbd-94ad-5bceccdc678c%40googlegroups.com. >> >> >> > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/fc0c661b-1cd3-4407-ae8f-4709eb72fad8%40googlegroups.com.