[sage-devel] Re: trouble installing sage

2014-10-21 Thread Anne Schilling


On Tuesday, October 21, 2014 9:26:42 AM UTC-7, Volker Braun wrote:
>
> You can't build Sage with clang. Build Sage from scratch, this should have 
> installed GCC as part of the installation process. Make sure you have the 
> Xcode command line tools.
>

Well, Xcode and the command line tools are installed and now the following 
error occurs:


make[5]: Nothing to be done for `install'.
cats=""; for cat in $cats; do \
  lang=`basename $cat | sed 's/\.gmo$//'`; \
  if [ -f $cat ]; then :; \
  elif [ -f ../../src/libcpp/$cat ]; then cat=../../src/libcpp/$cat; \
  else continue; \
  fi; \
  dir=/Applications/sage/local/share/locale/$lang/LC_MESSAGES; \
  echo /usr/bin/install -c -m 644 $cat $dir/cpplib.mo; \
  /usr/bin/install -c -m 644 $cat $dir/cpplib.mo; \
done
make[6]: Nothing to be done for `all'.
make[6]: Nothing to be done for `install'.
/bin/sh ../../src/libiberty/../mkinstalldirs 
/Applications/sage/local/lib/`/usr/bin/clang -g -O2 
-print-multi-os-directory`
/usr/bin/install -c -m 644 ./libiberty.a 
/Applications/sage/local/lib/`/usr/bin/clang -g -O2 
-print-multi-os-directory`/./libiberty.an
install: /Applications/sage/local/lib/x86_64/./libiberty.an: Permission 
denied
make[5]: *** [install_to_libdir] Error 71
make[4]: *** [install-libiberty] Error 2
make[3]: *** [install] Error 2

real17m29.186s
user47m51.011s
sys4m36.591s

Error installing package gcc-4.7.3.p1

Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
  /Applications/sage/logs/pkgs/gcc-4.7.3.p1.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/Applications/sage/local/var/tmp/sage/build/gcc-4.7.3.p1 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 '/Applications/sage/local/var/tmp/sage/build/gcc-4.7.3.p1' && 
'/Applications/sage/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.

make[2]: *** [/Applications/sage/local/var/lib/sage/installed/gcc-4.7.3.p1] 
Error 1
make[1]: *** [all] Error 2

real19m25.389s
user49m43.368s
sys5m40.166s
***
Error building Sage.

The following package(s) may have failed to build:

package: gcc-4.7.3.p1
log file: /Applications/sage/logs/pkgs/gcc-4.7.3.p1.log
build directory: /Applications/sage/local/var/tmp/sage/build/gcc-4.7.3.p1

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
 

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


Re: [sage-devel] where are the bots ?

2014-10-21 Thread R. Andrew Ohana
The buildbot was having some issues and was reporting everything as a
failure. I disabled it until I get a moment to fix it.

On Tue, Oct 21, 2014 at 1:18 PM, Frédéric Chapoton 
wrote:

> Hello,
>
> it seems that the bots have disappeared. Both the buildbot (was top left)
> and the patchbot (top right).
>
> The patchbot links are broken (used to be colored little round things).
>
> And http://patchbot.sagemath.org points to William's homepage.
>
> Can we we hope that the bots will be back soon ?
>
> Frédéric
>
> --
> 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.
>



-- 
Andrew

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


[sage-devel] where are the bots ?

2014-10-21 Thread Frédéric Chapoton
Hello,

it seems that the bots have disappeared. Both the buildbot (was top left) 
and the patchbot (top right).

The patchbot links are broken (used to be colored little round things).

And http://patchbot.sagemath.org points to William's homepage.

Can we we hope that the bots will be back soon ?

Frédéric

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


[sage-devel] Participation to consultation workshop

2014-10-21 Thread Paul-Olivier Dehaye
Hi everyone
There will be a workshop at the EU on Nov 6, that I will be attending:
https://ec.europa.eu/digital-agenda/en/news/consultation-workshop-mathematics-digital-science
If anyone has a message to relay there, and I have the chance, I would be
happy to do so. Even better, if there are drafts of EU proposals to show
around to get feedback...
Paul

Paul-Olivier Dehaye
SNF Assistant Professor of Mathematics
University of Zurich
http://user.math.uzh.ch/dehaye/contact_info.txt

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


[sage-devel] Re: trouble installing sage

2014-10-21 Thread Volker Braun
You can't build Sage with clang. Build Sage from scratch, this should have 
installed GCC as part of the installation process. Make sure you have the 
Xcode command line tools.

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


[sage-devel] trouble installing sage

2014-10-21 Thread Anne Schilling
Hi!

I am trying to install sage on someone's machine from source running MacOSX 
10.9.4
and get the following error. Does anyone know what is going on?

Anne

---

Found local metadata for pkgconf-0.9.4
Found local sources at /Applications/sage/upstream/pkgconf-0.9.4.tar.bz2
Checksum: 2d353227f5dfbcaa2c0f48f045f828dac2abcff0 vs 
2d353227f5dfbcaa2c0f48f045f828dac2abcff0
pkgconf-0.9.4

Setting up build directory for pkgconf-0.9.4
Finished set up

Host system:
Darwin computer.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.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure 
--disable-checking --enable-werror 
--prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2
--mandir=/share/man --enable-languages=c,objc,c++,obj-c++ 
--program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ 
--with-slibdir=/usr/lib --build=i686-apple-darwin11
--enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/dst-llvmCore/Developer/usr/local
 --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 
--target=i686-apple-darwin11
--with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

patching file Makefile.in
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in 
`/Applications/sage/local/var/tmp/sage/build/pkgconf-0.9.4/src':
configure: error: C compiler cannot create executables
See `config.log' for more details
Error configuring pkgconf.

real0m0.252s
user0m0.109s
sys 0m0.114s

Error installing package pkgconf-0.9.4

Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
  /Applications/sage/logs/pkgs/pkgconf-0.9.4.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/Applications/sage/local/var/tmp/sage/build/pkgconf-0.9.4 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 '/Applications/sage/local/var/tmp/sage/build/pkgconf-0.9.4' && 
'/Applications/sage/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.

Found local metadata for pkgconf-0.9.4
Found local sources at /Applications/sage/upstream/pkgconf-0.9.4.tar.bz2
Checksum: 2d353227f5dfbcaa2c0f48f045f828dac2abcff0 vs 
2d353227f5dfbcaa2c0f48f045f828dac2abcff0
pkgconf-0.9.4

Setting up build directory for pkgconf-0.9.4
Finished set up

Host system:
Darwin computer.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.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure 
--disable-checking --enable-werror 
--prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2
--mandir=/share/man --enable-languages=c,objc,c++,obj-c++ 
--program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ 
--with-slibdir=/usr/lib --build=i686-apple-darwin11
--enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/dst-llvmCore/Developer/usr/local
 --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 
--target=i686-apple-darwin11
--with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

patching file Makefile.in
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in 
`/Applications/sage/local/var/tmp/sage/build/pkgconf-0.9.4/src':
configure: error: C compiler cannot create executables
See `config.log' for more details
Error configuring pkgconf.

real0m0.212s
user0m0.108s
sys 0m0.108s

Error installing package pkgconf-0.9.4

Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and i

Re: [sage-devel] Graphs and order of vertices

2014-10-21 Thread Erik Massop
Here is an example that looks less artificial:

sage: list(set([-1,-2]))
[-2, -1]
sage: list(set([-2,-1]))
[-1, -2]
sage: G=Graph(); G.add_vertex(-2); G.add_vertex(-1)
sage: H=Graph(); H.add_vertex(-1); H.add_vertex(-2)
sage: G == H
True
sage: G.vertices() == H.vertices()
True
sage: list(G.vertex_iterator()) == list(H.vertex_iterator())
False

The trick underlying the example is the same as before:

sage: hash(-1) == hash(-2)
True


Cheers,

Erik Massop

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


Re: [sage-devel] Graphs and order of vertices

2014-10-21 Thread Erik Massop
On Tue, 21 Oct 2014 11:11:24 +
Vincent Delecroix <20100.delecr...@gmail.com> wrote:

> > G=Graph()
> > for i in range(0,10): G.add_vertex(randint(1,1000))
> > for x in G.vertex_iterator(): print x
> > G.vertices()
> >
> > gives them in about random order.
> 
> Nope. The order is not random. It is the one you get by doing list(set(X)).

That, however, can depend on the order of X. For instance given

class C:
def __init__(self, v):
self.v = v
def __repr__(self):
return "C(%r)" % (self.v,)
def __hash__(self):
return int(0)
zero = C(0)
one = C(1)

when I do

print list(set([zero,one]))
print list(set([one,zero]))

I obtain

[C(0), C(1)]
[C(1), C(0)]

..

> sage: list(set(G.vertices())) == list(G.vertex_iterator())
> True
> 
> You can have a look at how is coded vertex_iterator in the backend
> (i.e. G._backend.iterator_verts).

That can vary by backend, can it not?

> 
> > I started thinking this when doing http://trac.sagemath.org/ticket/17173 .
> > Nathann suggested using directly (sub)graphs instead of (sub)poset. It is
> > OK with .vertices() but not with .vertex_iterator(); try
> >
> > G=Graph()
> > for i in range(2,50): G.add_vertex(i)
> > for i in range(2,50):
> >  if not is_prime(i):
> >  G.delete_vertex(i)
> > for x in G.vertex_iterator(): print x
> >
> > This seems to be quite open door for nasty bugs. .vertex_iterator might
> > give vertices in order when graph is small or has not been modified many
> > times.
> 
> The code is not very clean, but nevertheless the order of
> .vertex_iterator does not depend on the way you built your graph. Do
> you have an example where it is not the case ?

Yes:

G = Graph()
G.add_vertex(zero)
G.add_vertex(one)
H = Graph()
H.add_vertex(one)
H.add_vertex(zero)
print G == H
print list(G.vertex_iterator()) == list(H.vertex_iterator())
print G.vertices() == H.vertices()

gives me

True
False
True

..


Cheers,

Erik Massop

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


Re: [sage-devel] Graphs and order of vertices

2014-10-21 Thread Vincent Delecroix
> G=Graph()
> for i in range(0,10): G.add_vertex(randint(1,1000))
> for x in G.vertex_iterator(): print x
> G.vertices()
>
> gives them in about random order.

Nope. The order is not random. It is the one you get by doing list(set(X)).

sage: list(set(G.vertices())) == list(G.vertex_iterator())
True

You can have a look at how is coded vertex_iterator in the backend
(i.e. G._backend.iterator_verts).

> I started thinking this when doing http://trac.sagemath.org/ticket/17173 .
> Nathann suggested using directly (sub)graphs instead of (sub)poset. It is
> OK with .vertices() but not with .vertex_iterator(); try
>
> G=Graph()
> for i in range(2,50): G.add_vertex(i)
> for i in range(2,50):
>  if not is_prime(i):
>  G.delete_vertex(i)
> for x in G.vertex_iterator(): print x
>
> This seems to be quite open door for nasty bugs. .vertex_iterator might
> give vertices in order when graph is small or has not been modified many
> times.

The code is not very clean, but nevertheless the order of
.vertex_iterator does not depend on the way you built your graph. Do
you have an example where it is not the case ?

Vincent

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


Re: [sage-devel] Re: OSX Yosemite

2014-10-21 Thread Volker Braun
If you look in the header the problem this time is precisely that the 
offending line is not guarded by #if OS_OBJECT_USE_OBJC



On Tuesday, October 21, 2014 7:50:56 AM UTC+1, Samuel Lelievre wrote:
>
> William Stein wrote:
>
> > This pattern has happened with literally every single OS X release:
>
> So true! Searching sage lists for '_scproxy' reveals that the failure
> to build the _scproxy module happened before on new releases of OS X.
> See the search results for sage-release [0] and sage-devel [1], with
> especially thread [2], where Volker [3] suggested a workaround:
>
> The following workaround should help to get
> around Apple's broken headers:
>
> CFLAGS="-DOS_OBJECT_USE_OBJC=0"
> export CFLAGS
> make
>
> Maybe this workaround could also help in the present situation?
>
> In the meanwhile, I sent a problem report to Apple via the
> 'Feedback assistant'.
>
> [0] https://groups.google.com/forum/#!searchin/sage-release/_scproxy
> [1] https://groups.google.com/forum/#!searchin/sage-devel/_scproxy
> [2] https://groups.google.com/d/topic/sage-devel/9B1GyPe6MAM/discussion
> [3] https://groups.google.com/d/msg/sage-devel/9B1GyPe6MAM/lQTo4ZrbjlAJ
>
>

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