Source tarball:
http://boxen.math.washington.edu/home/jdemeyer/release/sage-5.0.beta3-gcc/sage-5.0.beta3-gcc.tar
I also have a binary based on a slightly older version:
http://boxen.math.washington.edu/home/jdemeyer/release/sage-5.0.beta2-gcc/sage-5.0.beta2-gcc-x86_64-Darwin.dmg
The ticket which achieves this isn't quite ready yet (#12369). It still
needs to be tested on other systems to make sure that it doesn't break
anything. There is some discussion about LD_LIBRARY_PATH (#12405) and I
expect some work for my new spkg/install (#10492).
--
To post to this group, send an email to sage-...@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
That is so, so, so awesome!!!
>
> Source tarball:
> http://boxen.math.washington.edu/home/jdemeyer/release/sage-5.0.beta3-gcc/sage-5.0.beta3-gcc.tar
>
> I also have a binary based on a slightly older version:
> http://boxen.math.washington.edu/home/jdemeyer/release/sage-5.0.beta2-gcc/sage-5.0.beta2-gcc-x86_64-Darwin.dmg
>
> The ticket which achieves this isn't quite ready yet (#12369). It still
> needs to be tested on other systems to make sure that it doesn't break
> anything. There is some discussion about LD_LIBRARY_PATH (#12405) and I
> expect some work for my new spkg/install (#10492).
>
> --
> To post to this group, send an email to sage-...@googlegroups.com
> To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
> configure: error: cannot compute suffix of object files: cannot
If you google "cannot compute suffix of object files" you will get 110,000 hits.
I think the problem is often related to the fact the run-time linker can't find
the mpir of mpfr libraries. Although the configure script can find them, since
you have specified them, the linker often can't, so whilst the first stage of
gcc builds, the second stage does not.
I've tried to argue with the gcc developers that this is a bug, but they don't
seem to see it that way, and say it would be hard to fix.
You would be best to post your problem to the gcc mailing list, including the
config.log file from the directory where the failure occured. NOT the top-level
config.log, which wont have the reason for the failure
Dave
It fails in *exactly* the same way for me on my laptop.
deep:sage-5.0.beta3-gcc wstein$ uname -a
Darwin deep.local 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
deep:sage-5.0.beta3-gcc wstein$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2335.15.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-- William
> For more options, visit this group at http://groups.google.com/group/sage-devel
Or is there something about the laptop architecture which is causing the problem?
Likely this is hardware-specific failures. Please post also
what you see in "About this Mac", i.e. the processor type and
amount of RAM.
Dima
William (or somebody else), could you pack the whole
$SAGE_ROOT/spkg/build/gcc-4.6.2 directory in a tarball for me such that
I can have a look at log files?
Also send me $SAGE_ROOT/spkg/logs/gcc-4.6.2.log
Please do this from a *serially* built Sage (MAKE="make -j1").
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
5658) (LLVM build 2336.1.00)
With entropy's log of a failed build:
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
5658) (LLVM build 2335.15.00)
Note the different LLVM version number.
$ 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
$ 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.
> --
> To post to this group, send an email to sage-...@googlegroups.com
> To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
--
Andrew
gcc built for me with those options. Now I'll resume the build of Sage.
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-darwin11.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 <jdem...@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-...@googlegroups.com
>> To unsubscribe from this group, send an email to sage-devel+...@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-...@googlegroups.com
> To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
--
Here's my log file:
http://wstein.org/tmp/install.log
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)
> For more options, visit this group at http://groups.google.com/group/sage-devel
On Tue, Feb 14, 2012 at 14:57, entropy 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.
Could you do the same with SAGE_CHECK=yes please, maybe clang builds a
*broken* gcc.
So:
CC=clang CXX=clang++ make
should use clang for GCC and its prerequisites and then switch to GCC
for the rest of the build.
Please try, from $SAGE_ROOT:
$ source spkg/bin/sage-env
$ ls -l local/bin/gcc
$ which gcc
$ gcc --version
After using Andrew's instructions, building the reset of Sage...
worked fine (on my OS X 10.7 laptop)! Thanks, Andrew. This is great,
since now I assume PARI is built with full optimization instead of
-O0.
....
Build finished. The built documents can be found in
/Users/wstein/sage/install/sage-5.0.beta3-gcc/devel/sage/doc/output/html/tr/a_tour_of_sage
You have new mail in /var/mail/wstein
d-69-91-145-32:sage-5.0.beta3-gcc wstein$
You have new mail in /var/mail/wstein
d-69-91-145-32:sage-5.0.beta3-gcc wstein$
d-69-91-145-32:sage-5.0.beta3-gcc wstein$ ./sage
----------------------------------------------------------------------
| Sage Version 5.0.beta3-gcc, Release Date: 2012-02-11 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
**********************************************************************
* *
* Warning: this is a prerelease version, and it may be unstable. *
* *
**********************************************************************
sage:
William
I changed some ./configure options. I doubt this will solve the
problem, but I would like you to try it anyway.
one should also try to disable laptop's power management features as
much as possible before such a build.
They can potentially interfere, and they potentailly can make
laptops run differently.
Just a thought.
Dima
(after downloading and extracting the source)
$ CC=clang make
[... hours pass ...]
$ rm local/bin/gcc local/bin/g++ spkg/standard/gcc-4.6.2.spkg
$ ./sage -f
http://boxen.math.washington.edu/home/jdemeyer/spkg/gcc-4.6.2.spkg
Yup, this is correct.
>
> I never was able to get clang to build sage on my Apple (10.7.2 with
> Xcode 4.2).
Just to make sure, you were using the gcc version of sage, yes? There
are some components of sage that rely on gnu extensions, so currently
gcc is needed, however you should be able to build the bundled version
of gcc+deps with clang.
> I was wondering if a few of you who were able to
> successfully build sage on your Mac could chime in with your "uname -
> a" as well as Xcode and gcc versions. I'm on
>
> $ uname -a
> Darwin hyperion 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12
> 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
>
> with
> $ gcc --version
> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc.
> build 5658) (LLVM build 2335.15.00)
>
> and Xcode version 4.1.
Would you mind giving clang --version as well (I only tested on Xcode
4.2 and am currently testing with the freely released command line
tools that were released alongside 4.3).
John,
Just to confirm, did this build work for you on Lion 10.7.2, with
Xcode 4.3, and gcc version 4.2.1 (LLVM build 2336.9.00)?
From you
follow-up messages I am assuming that beta4-gcc still builds a copy of
gcc-4.6 on top of everything else, correct?
I never was able to get clang to build sage on my Apple (10.7.2 with
Xcode 4.2). I was wondering if a few of you who were able to
successfully build sage on your Mac could chime in with your "uname -
a" as well as Xcode and gcc versions. I'm on
xcodebuild is used in:
* prereq (where it fails harmlessly)
* python's spkg-install
* Mercurial's setup.py (upstream)
* the sage-bdist script
(Sage tip: use the rsyncable tarballs to grep all of Sage, including
spkgs. Remember to create the top-level sage-VERSION directory yourself
and extract inside that.)
It would be good to remove xcodebuild's usage since all lion machines
(and maybe earlier too) have the command, even without xcode
installed. This has become important now that the apple command line
tools are separate from xcode.
Try building on sqrt5 -- xcode is not installed there, instead I've
installed the command line tools from apple's developer website.
>
> (Sage tip: use the rsyncable tarballs to grep all of Sage, including
> spkgs. Remember to create the top-level sage-VERSION directory yourself
> and extract inside that.)
>