On Tue, Feb 14, 2012 at 14:57, entropy <jberw...@gmail.com> wrote:
> Darn, flopped again. The mpir package "could not find a working
> compiler". Kind of ironic, since this whole thread has been about
> building gcc-4.6.2. :)  From the log, it seems to have found the
> system's gcc (4.2.1, the same one that couldn't build 4.6 I suppose).
> But has issues with the following issue: "no, double -> ulong
> conversion". To be clear, after gcc-4.6.2 built and installed, in
> order to restart the build process, I simply typed "make" again in the
> sage root directory. Is it necessary to modify this command if one
> restarts a build process? Or is my problem that the built process
> should be using gcc-4.6.2 throughout once gcc-4.6.2 is built?

Once gcc-4.6.2 is built, it should start using it. FYI, I didn't
actually test using clang for building only gcc-4.6.2, I tested it for
building all the gcc deps in addition to gcc-4.6.2.

Specifically:

$ CC=clang CXX=clang++ make

compiled a fully working version of sage on sage1.cs, since it used
clang until gcc was built, and then it switched over to the newly
compiled gcc.

(granted, on this system llvm-gcc works just fine)

>
> The log file for the failed mpir build can be found here if anyone is
> interested: http://dl.dropbox.com/u/546764/mpir-2.1.3.p9.log
>
> Jesse
>
> On Feb 14, 5:24 pm, entropy <jberw...@gmail.com> wrote:
>> woohoo! Success as well using
>>
>> $ CC=clang CXX=clang++ MAKE="make -j1" ./sage -f spkg/standard/
>> gcc-4.6.2.spkg
>>
>> Successfully installed gcc-4.6.2
>> Now cleaning up tmp files.
>> Finished installing gcc-4.6.2.spkg  (!!)
>>
>> Learning many things during this painful transition from linux to mac.
>> I'll continue the build process.....
>>
>> Jesse
>>
>> On Feb 14, 4:56 pm, William Stein <wst...@gmail.com> wrote:
>>
>>
>>
>>
>>
>>
>>
>> > On Tue, Feb 14, 2012 at 1:55 PM, William Stein <wst...@gmail.com> wrote:
>> > > On Tue, Feb 14, 2012 at 12:42 PM, R. Andrew Ohana
>> > > <andrew.oh...@gmail.com> wrote:
>> > >> You could also try
>>
>> > >> $ CC=clang CXX=clang++ MAKE="make -j1" ./sage -f 
>> > >> spkg/standard/gcc-4.6.2.spkg
>>
>> > >> One of the main points of the gcc spkg is because llvm-gcc is buggy,
>> > >> clang should be just as able to build gcc, and doesn't suffer from the
>> > >> same bugs as llvm-gcc does with pari and symmetrica.
>>
>> > > gcc built for me with those options.  Now I'll resume the build of Sage.
>>
>> > Here's my log file:
>>
>> >http://wstein.org/tmp/install.log
>>
>> > > d-69-91-145-32:sage-5.0.beta3-gcc wstein$ uname -a
>> > > Darwin d-69-91-145-32.dhcp4.washington.edu 11.2.0 Darwin Kernel
>> > > Version 11.2.0: Tue Aug  9 20:54:00 PDT 2011;
>> > > root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
>>
>> > > -----
>> > > ...
>> > >  /usr/bin/install -c -m 644 omp.h
>> > > '/Users/wstein/sage/install/sage-5.0.beta3-gcc/local/lib/gcc/x86_64-apple-d
>> > >  arwin11.2.0/4.6.2/include'
>>
>> > > real    16m28.713s
>> > > user    11m57.666s
>> > > sys     3m5.779s
>> > > Successfully installed gcc-4.6.2
>> > > Now cleaning up tmp files.
>> > > Finished installing gcc-4.6.2.spkg
>>
>> > >> On Tue, Feb 14, 2012 at 10:50, Jeroen Demeyer <jdeme...@cage.ugent.be> 
>> > >> wrote:
>> > >>> John, entropy, Could you try the following:
>>
>> > >>> $ rm spkg/logs/gcc-4.6.2.log
>> > >>> $ MAKE="make -j1" SAGE_CHECK=yes CFLAGS="-O0" ./sage -f
>> > >>> spkg/standard/gcc-4.6.2.spkg
>>
>> > >>> If it fails, send me spkg/logs/gcc-4.6.2.log
>>
>> > >>> --
>> > >>> To post to this group, send an email to sage-devel@googlegroups.com
>> > >>> To unsubscribe from this group, send an email to 
>> > >>> sage-devel+unsubscr...@googlegroups.com
>> > >>> For more options, visit this group 
>> > >>> athttp://groups.google.com/group/sage-devel
>> > >>> URL:http://www.sagemath.org
>>
>> > >> --
>> > >> Andrew
>>
>> > >> --
>> > >> To post to this group, send an email to sage-devel@googlegroups.com
>> > >> To unsubscribe from this group, send an email to 
>> > >> sage-devel+unsubscr...@googlegroups.com
>> > >> For more options, visit this group 
>> > >> athttp://groups.google.com/group/sage-devel
>> > >> URL:http://www.sagemath.org
>>
>> > > --
>> > > William Stein
>> > > Professor of Mathematics
>> > > University of Washington
>> > >http://wstein.org
>>
>> > --
>> > William Stein
>> > Professor of Mathematics
>> > University of Washingtonhttp://wstein.org
>
> --
> To post to this group, send an email to sage-devel@googlegroups.com
> To unsubscribe from this group, send an email to 
> sage-devel+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org



-- 
Andrew

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to