Hi, I'm at a Sage Days and am trying to create an optional Sage package for Fredrik Johansson's library Arb <https://github.com/fredrik-johansson/arb>. I've followed the instructions for packaging third-party code <http://sagemath.org/doc/developer/packaging.html#section-directory-structure> up to the manual install step, where I get the following error during configuration:
------------- zeno:sage-6.2 laura$ ./sage -i -f arb Found local metadata for arb-2.2 Found local sources at /Users/laura/sage-6.2/upstream/arb-2.2.tar.gz Checksum: 237fa9128fedc3cf18640de56ae799e02dacd11f vs 237fa9128fedc3cf18640de56ae799e02dacd11f arb-2.2 ==================================================== Setting up build directory for arb-2.2 Finished set up **************************************************** Host system: Darwin zeno.local 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64 **************************************************** C compiler: gcc C compiler version: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/Users/laura/sage-6.2/local/bin/../libexec/gcc/x86_64-apple-darwin13.3.0/4.7.3/lto-wrapper Target: x86_64-apple-darwin13.3.0 Configured with: ../src/configure --prefix=/Users/laura/sage/sage-6.2/local --with-local-prefix=/Users/laura/sage/sage-6.2/local --with-gmp=/Users/laura/sage/sage-6.2/local --with-mpfr=/Users/laura/sage/sage-6.2/local --with-mpc=/Users/laura/sage/sage-6.2/local --with-system-zlib --disable-multilib --disable-nls Thread model: posix gcc version 4.7.3 (GCC) **************************************************** expr: syntax error Usage: ./configure <options> <args> where <options> may be -h display usage information where <args> may be: --with-gmp=<path> Specify location of GMP --with-mpfr=<path> Specify location of MPFR --with-flint=<path> Specify location of FLINT --prefix=<path> Specify path to installation location --disable-shared Do not build a shared library --disable-static Do not build a static library CC=<name> Use the C compiler with the given name AR=<name> Use the AR library builder with the given name CFLAGS=<flags> Pass the given flags to the compiler Error configuring arb. real 0m0.028s user 0m0.012s sys 0m0.013s ************************************************************************ Error installing package arb-2.2 ************************************************************************ Please email sage-devel (http://groups.google.com/group/sage-devel) explaining the problem and including the relevant part of the log file /Users/laura/sage-6.2/logs/pkgs/arb-2.2.log Describe your computer, operating system, etc. If you want to try to fix the problem yourself, *don't* just cd to /Users/laura/sage-6.2/local/var/tmp/sage/build/arb-2.2 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 '/Users/laura/sage-6.2/local/var/tmp/sage/build/arb-2.2' && '/Users/laura/sage-6.2/sage' --sh) When you are done debugging, you can type "exit" to leave the subshell. ************************************************************************ ------------------------------- This is my first time trying to package external code, so first I'll ask: ** Is there anything available in the Sage dev documentation re: troubleshooting package configuration/installation? If not, I'd appreciate any advice about: ** The nature of the error (my guess is that Sage tries to configure Arb with some unexpected arguments, e.g. --with-mpc and 4 others) ** Whether/how I might edit Arb's configure to resolve the error (my guess is that Arb's configure should be changed to expect those 5 extra arguments but not act on them?). This happens both on OSX 10.9 and Ubuntu 14.04 (64-bit). Thanks, Laura -- 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.