ARGH. I spent forever searching for a solution to the limits.h issue & concluded (hopefully not wrongly) that I have to rebuild Sage from source. Now I see that the question of chefs.h *has* been posed, several times...
If it doesn't work after xcode-select --install then I will inquire further; otherwise, sorry for the noise. john perry On Tuesday, June 10, 2014 12:38:30 AM UTC-5, john_perry_usm wrote: > > Hello > > I'm trying to build Sage from source on Mavericks. It quits when trying to > build gcc-4.7.3.p1, as it is unable to find cdefs.h. > > Mavericks is up-to-date; extra packages installed. I'm not finding an > option for "command-line tools" in Preferences->Downloads as per the > README, but I think they were installed in a previous OSX & I can certainly > run the command-line tools from the command line, e.g., clang, clang++, &c. > So maybe Xcode doesn't show it. > > I am copying below the last few lines of output (emphasis added to > emphasize the error), and attaching the relevant part of the log file as > requested by the build system. Please let me know if I should do something > else. > > Right now I'm reinstalling Xcode from scratch, in the hope that this will > fix it (as opposed to using the Xcode upgrade made when upgrading from 10.6 > to Mavericks). If that works, I'll report it. > > john perry > > ==================================================== > > Setting up build directory for gcc-4.7.3.p1 > > Finished set up > > **************************************************** > > Host system: > > Darwin Users-MacBook-Pro.local 13.2.0 Darwin Kernel Version 13.2.0: Thu > Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64 > > **************************************************** > > C compiler: /usr/bin/clang > > C compiler version: > > Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) > > Target: x86_64-apple-darwin13.2.0 > > Thread model: posix > > **************************************************** > > *sed: /usr/include/sys/cdefs.h: No such file or directory* > > > real 0m0.026s > > user 0m0.013s > > sys 0m0.016s > > ************************************************************************ > > Error installing package gcc-4.7.3.p1 > > ************************************************************************ > > Please email sage-devel (http://groups.google.com/group/sage-devel) > > explaining the problem and including the relevant part of the log file > > /Applications/sage-6.2/logs/pkgs/gcc-4.7.3.p1.log > > Describe your computer, operating system, etc. > > If you want to try to fix the problem yourself, *don't* just cd to > > /Applications/sage-6.2/local/var/tmp/sage/build/gcc-4.7.3.p1 and type > 'make' or whatever is appropriate. > > Instead, the following commands setup all environment variables > > correctly and load a subshell for you to debug the error: > > (cd '/Applications/sage-6.2/local/var/tmp/sage/build/gcc-4.7.3.p1' && > '/Applications/sage-6.2/sage' --sh) > > When you are done debugging, you can type "exit" to leave the subshell. > > ************************************************************************ > > make[2]: *** > [/Applications/sage-6.2/local/var/lib/sage/installed/gcc-4.7.3.p1] Error 1 > > make[1]: *** [all] Error 2 > > > real 10m55.365s > > user 3m45.790s > > sys 3m10.230s > > *************************************************************** > > Error building Sage. > > > The following package(s) may have failed to build: > > > package: gcc-4.7.3.p1 > > log file: /Applications/sage-6.2/logs/pkgs/gcc-4.7.3.p1.log > > build directory: > /Applications/sage-6.2/local/var/tmp/sage/build/gcc-4.7.3.p1 > > > The build directory may contain configuration files and other potentially > > helpful information. WARNING: if you now run 'make' again, the build > > directory will, by default, be deleted. Set the environment variable > > SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this. > > > make: *** [build] Error 1 > > user@Users-MacBook-Pro:sage-6.2$ > > -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.