On Apr 30, 12:54 pm, William Stein <wst...@gmail.com> wrote:
> On Wed, Apr 27, 2011 at 8:28 PM, Dima Pasechnik <dimp...@gmail.com> wrote:
> > Hi,
>
> > I tried XCode 4 and came to conclusion that it is buggy as hell
> > - I can't build working Sage (due to startup-time segfaults, as
> > described here),
> > I can't even build a working copy of MPIR, etc etc...
>
> > Even worse is behaviour with its clang compilers (they can't even
> > compile several parts of Sage)
>
> Wow, that's incredible!
>
> We should:
>
>    (1) add a remark right in the prereq spkg that checks that xcode 4 (4.0.1, 
> to be precise)
> isn't being used (unless SAGE_PORT or something is set)

In fact, I don't know how to check this easily: it ships the same
build of gcc as XCode 3 (3.2.6, to be precise)
(gcc version 4.2.1 (Apple Inc. build 5666) (dot 3))
and there is no ready way to check the version of the whole setup.
The difference sits in libraries.
One notable difference is that cc is not gcc, but a gcc-llvm build.
(namely, gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM
build 2335.6)))

So one can test that "cc -v" != "gcc -v", but this does nor seem to be
robust enough.

Probably one can use Applescript, but I have no clue about it.

>
>    (2) if xcode 4 is being used (as detected by 1), the error message
> should suggest xcode 3, and explain how to revert to it.   (Is it easy
> still?)

To revert back, I tried xcode-select, and it didn't quite work, as
Xcode 4 overwrites /usr/* with new stuff, and probably something
didn't work as expected.
I ended up re-installing XCode 3 in the usual way.
(and then I removed XCode 4 to save space, so I can't easily check
things any more :-(  )

Dima

>
>  -- William
>
> > So I reverted back to Xcode 3.
> > (I should have added this to Wiki, but I lost my password, it
> > seems :-))
>
> > Dima
>
> > On Apr 28, 4:28 am, William Stein <wst...@gmail.com> wrote:
> >> Hi,
>
> >> Aly Deines showed me what happened when she installed Xcode 4 then
> >> built Sage.  She build Sage-4.7.rc0 itself, and it compiled fine.
> >> However, when she ran it, it crashed on startup.   The traceback
> >> implicates Pynac:
>
> >> (gdb)
> >> #0  0x0000000107a20c64 in PyInt_FromLong (ival=-5) at 
> >> Objects/intobject.c:91
> >> #1  0x00000001079971fa in GiNaC::Number_T::Number_T ()
> >> #2  0x0000000107997280 in GiNaC::numeric::numeric ()
> >> #3  0x00000001079e7bea in GiNaC::library_init::library_init ()
> >> #4  0x00000001078708f8 in __static_initialization_and_destruction_0 ()
> >> #5  0x00007fff5fc0d500 in
> >> __dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkCont
> >>  extE
> >> ()
> >> #6  0x00007fff5fc0bcec in
> >> __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj
> >> ()
> >> #7  0x00007fff5fc0bc9d in
> >> __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj
> >> ()
> >> #8  0x00007fff5fc0bda6 in
> >> __dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextE ()
> >> #9  0x00007fff5fc08fbb in __dyld_dlopen ()
> >> #10 0x00007fff86ad2360 in dlopen ()
> >> #11 0x00000001000e88af in _PyImport_GetDynLoadFunc ()
> >> #12 0x00000001000d2e04 in _PyImport_LoadDynamicModule ()
> >> #13 0x00000001000d10df in import_submodule ()
>
> >> Note that Ipython alone and python alone both start fine.
>
> >> I should buy and install XCode4 on bsd.math.washington.edu, so it is
> >> easier for people to debug this problem.
>
> >>  -- William
>
> >> On Tue, Mar 22, 2011 at 4:43 AM, Dima Pasechnik <dimp...@gmail.com> wrote:
> >> > I tried to get Xcode 4 from the local Apps Store, and got
> >> > "The item you've requested is not currently available in the Singapore
> >> > Store."
> >> > Given that I read on the net about people actually buying it from this
> >> > store,
> >> > this is fishy...
>
> >> > (Xcode 3 gets moved to /Applications/Developer-old/ when one installs
> >> > Xcode 4, they say)
>
> >> > On Mar 22, 11:20 am, Jason Grout <jason-s...@creativetrax.com> wrote:
> >> >> On 3/21/11 9:58 PM, kcrisman wrote:
>
> >> >> > I only have the option to upgrade to 3.2.6 right now from Software
> >> >> > Update, so it must be app-store only.
>
> >> >> Yes, app store, and $4.99 or something like that to boot.  Though it's
> >> >> free if you already pay for their developer or iOS memberships.
>
> >> >> > I can see this update potentially causing problems for the OS X App,
> >> >> > if I understand the announcement correctly as being a major change in
> >> >> > how things are built.  I would strongly suggest testing that.
>
> >> >> > Also, I think you can have more than one XCode at a time, right?
>
> >> >> I don't know.
>
> >> >> Jason
>

-- 
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