On 2013-08-18, Adam Getchell <adam.getch...@gmail.com> wrote:
> N.B. I don't really expect this to work, since I'm using XCode5-DP with LLVM, 
> but FYI.
Are you trying to build the wholw of Sage with it?
IMHO it was tried for quite a while to deal with Apple's LLVM in "new"
Xcode, but to no avail. It was too buggy.

If not, what you get probably is semi-trivial, as mpir config rejects
the compiler for no good reason, mistaking it for an old buggy "real" gcc.

Someone more knowledgeable about mpir should step in here.

>
> Details are:
>
> configure: error: could not find a working compiler, see config.log for 
> details
> Error configuring MPIR (with CFLAGS unset).
> Consult 
> /Users/getchell/sage/local/var/tmp/sage/build/mpir-2.6.0.p2/src/config.log 
> for for details.
>
> real 0m1.975s
> user 0m0.355s
> sys 0m0.398s
>
> Error installing package mpir-2.6.0.p2
>
> Please email sage-devel (http://groups.google.com/group/sage-devel)
> explaining the problem and including the relevant part of the log file
> /Users/getchell/sage/logs/pkgs/mpir-2.6.0.p2.log
> Describe your computer, operating system, etc.
> If you want to try to fix the problem yourself, don't just cd to
> /Users/getchell/sage/local/var/tmp/sage/build/mpir-2.6.0.p2 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/getchell/sage/local/var/tmp/sage/build/mpir-2.6.0.p2' && 
> '/Users/getchell/sage/sage' --sh)
> When you are done debugging, you can type "exit" to leave the subshell.
>
> make[2]: *** 
> [/Users/getchell/sage/local/var/lib/sage/installed/mpir-2.6.0.p2] Error 1
> make[1]: *** [all] Error 2
>
> real 0m34.244s
> user 0m8.538s
> sys 0m5.590s
>
> Error building Sage.
>
> The following package(s) may have failed to build:
>
> package: mpir-2.6.0.p2
> log file: /Users/getchell/sage/logs/pkgs/mpir-2.6.0.p2.log
> build directory: /Users/getchell/sage/local/var/tmp/sage/build/mpir-2.6.0.p2
>
> 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
> ┌─[getchell][Hapkido][±][build_system ✓][~/sage]
> └─▪ system_profiler SPSoftwareDataType
> Software:
>
> System Software Overview:
>
>   System Version: OS X 10.8.4 (12E55)
>   Kernel Version: Darwin 12.4.0
>   Boot Volume: Macintosh HD
>   Boot Mode: Normal
>   Computer Name: Hapkido
>   User Name: Getchell, Adam (getchell)
>   Secure Virtual Memory: Enabled
>   Time since boot: 14:06
> ┌─[getchell][Hapkido][±][build_system ✓][~/sage]
> └─▪ gcc -v
> Configured with: --prefix=/Applications/Xcode5-DP.app/Contents/Developer/usr 
> --with-gxx-include-dir=/usr/include/c++/4.2.1
> Apple LLVM version 5.0 (clang-500.1.58) (based on LLVM 3.3svn)
> Target: x86_64-apple-darwin12.4.0
> Thread model: posix
>
> Logs are:
>
> ┌─[getchell][Hapkido][±][build_system ✓][~/sage]
> └─▪ cat logs/pkgs/mpir-2.6.0.p2.log 
> Using local scripts to install mpir-2.6.0.p2
> Attempting to download package mpir-2.6.0.p2
>>>> Trying to download 
>>>> http://www.sagemath.org/packages/upstream//mpir/mpir-2.6.0.tar.bz2
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  
> Current
>                                  Dload  Upload   Total   Spent    Left  Speed
> 100 3165k  100 3165k    0     0   313k      0  0:00:10  0:00:10 --:--:--  353k
> Checksum: a9fbfe30db672939abab06d16ce48087ee1b0d01 vs 
> a9fbfe30db672939abab06d16ce48087ee1b0d01
> mpir-2.6.0.p2
>====================================================
> Setting up build directory for mpir-2.6.0.p2
> Finished set up
> ****************************************************
> Host system:
> Darwin Hapkido.local 12.4.0 Darwin Kernel Version 12.4.0: Wed May  1 17:57:12 
> PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64
> ****************************************************
> C compiler: /usr/bin/clang
> C compiler version:
> Apple LLVM version 5.0 (clang-500.1.63) (based on LLVM 3.3svn)
> Target: x86_64-apple-darwin12.4.0
> Thread model: posix
> ****************************************************
> Renaming *,asm files to *.asm...
> Applying patches to upstream sources...
> patching file configure
> patching file configure.in
> patching file acinclude.m4
> patching file configure.in
> patching file yasm/Makefile.in
> patching file configure
> patching file acinclude.m4
> patching file configure.in
> patching file configure
> patching file gmp-h.in
> patching file tests/mpz/t-scan.c
> patching file mpn/alpha/addlsh1_n.asm
> patching file mpn/alpha/sublsh1_n.asm
> patching file mpn/ia64/add_n.asm
> patching file mpn/ia64/addlsh1_n.asm
> patching file mpn/ia64/and_n.asm
> patching file mpn/ia64/andn_n.asm
> patching file mpn/ia64/ior_n.asm
> patching file mpn/ia64/iorn_n.asm
> patching file mpn/ia64/lshift.asm
> patching file mpn/ia64/nand_n.asm
> patching file mpn/ia64/nior_n.asm
> patching file mpn/ia64/rsh1add_n.asm
> patching file mpn/ia64/rsh1sub_n.asm
> patching file mpn/ia64/rshift.asm
> patching file mpn/ia64/sub_n.asm
> patching file mpn/ia64/sublsh1_n.asm
> patching file mpn/ia64/xnor_n.asm
> patching file mpn/ia64/xor_n.asm
> patching file mpn/powerpc32/vmx/and_n.asm
> patching file mpn/powerpc32/vmx/andn_n.asm
> patching file mpn/powerpc32/vmx/ior_n.asm
> patching file mpn/powerpc32/vmx/iorn_n.asm
> patching file mpn/powerpc32/vmx/nand_n.asm
> patching file mpn/powerpc32/vmx/nior_n.asm
> patching file mpn/powerpc32/vmx/xnor_n.asm
> patching file mpn/powerpc32/vmx/xor_n.asm
> patching file mpn/x86/add_n.asm
> patching file mpn/x86/addmul_1.asm
> patching file mpn/x86/applenopic/addmul_1.asm
> patching file mpn/x86/applenopic/submul_1.asm
> patching file mpn/x86/core2/add_n.asm
> patching file mpn/x86/core2/sub_n.asm
> patching file mpn/x86/k6/add_n.asm
> patching file mpn/x86/k6/addmul_1.asm
> patching file mpn/x86/k6/mmx/and_n.asm
> patching file mpn/x86/k6/mmx/andn_n.asm
> patching file mpn/x86/k6/mmx/hamdist.asm
> patching file mpn/x86/k6/mmx/ior_n.asm
> patching file mpn/x86/k6/mmx/iorn_n.asm
> patching file mpn/x86/k6/mmx/nand_n.asm
> patching file mpn/x86/k6/mmx/nior_n.asm
> patching file mpn/x86/k6/mmx/popcount.asm
> patching file mpn/x86/k6/mmx/xnor_n.asm
> patching file mpn/x86/k6/mmx/xor_n.asm
> patching file mpn/x86/k6/sub_n.asm
> patching file mpn/x86/k6/submul_1.asm
> patching file mpn/x86/k7/add_n.asm
> patching file mpn/x86/k7/addmul_1.asm
> patching file mpn/x86/k7/mmx/hamdist.asm
> patching file mpn/x86/k7/mmx/popcount.asm
> patching file mpn/x86/k7/sub_n.asm
> patching file mpn/x86/k7/submul_1.asm
> patching file mpn/x86/nehalem/hamdist.asm
> patching file mpn/x86/nehalem/popcount.asm
> patching file mpn/x86/p6/addmul_1.asm
> patching file mpn/x86/p6/submul_1.asm
> patching file mpn/x86/pentium/add_n.asm
> patching file mpn/x86/pentium/addmul_1.asm
> patching file mpn/x86/pentium/and_n.asm
> patching file mpn/x86/pentium/andn_n.asm
> patching file mpn/x86/pentium/ior_n.asm
> patching file mpn/x86/pentium/iorn_n.asm
> patching file mpn/x86/pentium/nand_n.asm
> patching file mpn/x86/pentium/nior_n.asm
> patching file mpn/x86/pentium/sub_n.asm
> patching file mpn/x86/pentium/submul_1.asm
> patching file mpn/x86/pentium/xnor_n.asm
> patching file mpn/x86/pentium/xor_n.asm
> patching file mpn/x86/pentium4/mmx/hamdist.asm
> patching file mpn/x86/pentium4/mmx/popcount.asm
> patching file mpn/x86/sub_n.asm
> patching file mpn/x86/submul_1.asm
> Building a 64-bit version of MPIR, which is the default.
> Building a reduced version of MPIR to bootstrap GCC.
> MPIR will later get rebuilt (with the C++ interface and static libraries
> enabled) using the new compiler.
> Checking what CFLAGS MPIR would use if they were empty...
> checking build system type... sandybridge-apple-darwin12.4.0
> checking host system type... sandybridge-apple-darwin12.4.0
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... ./install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking ABI=64
> checking compiler /usr/bin/gcc -m64 ... no, gcc-4.3.2 on 64bit is bad , try 
> -O1 or -fno-strict-aliasing for the flags
> checking ABI=32
> checking compiler /usr/bin/gcc -m32 -O2 -fomit-frame-pointer ... no, 
> gcc-4.3.2 on 64bit is bad , try -O1 or -fno-strict-aliasing for the flags
> checking compiler /usr/bin/gcc -O2 -fomit-frame-pointer ... no, gcc-4.3.2 on 
> 64bit is bad , try -O1 or -fno-strict-aliasing for the flags
> configure: error: could not find a working compiler, see config.log for 
> details
> Error configuring MPIR (with CFLAGS unset).
> Consult 
> /Users/getchell/sage/local/var/tmp/sage/build/mpir-2.6.0.p2/src/config.log 
> for for details.
>
> real  0m1.975s
> user  0m0.355s
> sys   0m0.398s
> ************************************************************************
> Error installing package mpir-2.6.0.p2
> ************************************************************************
> Please email sage-devel (http://groups.google.com/group/sage-devel)
> explaining the problem and including the relevant part of the log file
>   /Users/getchell/sage/logs/pkgs/mpir-2.6.0.p2.log
> Describe your computer, operating system, etc.
> If you want to try to fix the problem yourself, *don't* just cd to
> /Users/getchell/sage/local/var/tmp/sage/build/mpir-2.6.0.p2 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/getchell/sage/local/var/tmp/sage/build/mpir-2.6.0.p2' && 
> '/Users/getchell/sage/sage' --sh)
> When you are done debugging, you can type "exit" to leave the subshell.
> ************************************************************************
>

-- 
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/groups/opt_out.

Reply via email to