[sage-devel] Re: sage-6.7 build failed on Cygwin64 for python-2.7.8 No module named crypt

2015-06-08 Thread Jean-Pierre Flori


Le lundi 8 juin 2015 18:02:46 UTC+2, Stefan Auracher a écrit :
>
> How to do this ?
>
> I found in ~/sage-6.7/src/module_list.py
>
> Extension('sage.rings.polynomial.pbori',
>   sources = ['sage/rings/polynomial/pbori.pyx'],
>   libraries=['polybori-' + polybori_major_version,
>  'polybori_groebner-' + polybori_major_version, 
> 'm4ri', 'gd', 'png12'],
>   include_dirs = [SAGE_INC, "sage/libs/polybori"],
>   depends = [SAGE_INC + "/polybori/" + hd + ".h" for hd in 
> ["polybori", "config"] ] + \
> [SAGE_INC + '/m4ri/m4ri.h'],
>   extra_compile_args = polybori_extra_compile_args + 
> m4ri_extra_compile_args,
>   language = 'c++'),
>
> How to remove the "underlinking" of pbori and give him the link to GMP ?
>
Add 'gmp' at the end of the list of libraries.

Or use a recent Sage beta including  #18450.

> Other packages might have the same problem?
>
Yes and similar fixes. 

-- 
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: sage-6.7 build failed on Cygwin64 for python-2.7.8 No module named crypt

2015-06-08 Thread Stefan Auracher
How to do this ?

I found in ~/sage-6.7/src/module_list.py

Extension('sage.rings.polynomial.pbori',
  sources = ['sage/rings/polynomial/pbori.pyx'],
  libraries=['polybori-' + polybori_major_version,
 'polybori_groebner-' + polybori_major_version, 
'm4ri', 'gd', 'png12'],
  include_dirs = [SAGE_INC, "sage/libs/polybori"],
  depends = [SAGE_INC + "/polybori/" + hd + ".h" for hd in 
["polybori", "config"] ] + \
[SAGE_INC + '/m4ri/m4ri.h'],
  extra_compile_args = polybori_extra_compile_args + 
m4ri_extra_compile_args,
  language = 'c++'),

How to remove the "underlinking" of pbori and give him the link to GMP ?
Other packages might have the same problem?

-- 
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: sage-6.7 build failed on Cygwin64 for python-2.7.8 No module named crypt

2015-06-08 Thread Jean-Pierre Flori


Le lundi 8 juin 2015 14:22:20 UTC+2, Jean-Pierre Flori a écrit :
>
>
>
> Le lundi 8 juin 2015 13:54:01 UTC+2, Stefan Auracher a écrit :
>>
>> In the past I had the same experience. I did it but in the last years, 
>> but it was really difficult. But recently I tried an install of cygwin with 
>> the setup-x86_64.exe --no-admin switch and it worked very well wihout any 
>> problems. The recent problems with installation of sage are really my first 
>> problems, which possibly have to do with the cygwin installation without 
>> admin rights.
>>
>
> I usually do things without admin rights...
>
> The problem you saw above is underlinking.
> You should tell cython to link  pbory.[pyx/c] with gmp: modify 
> module_list.py, as an easy fix.
> Linux and related are very kind with underlinking. Windows is not.
>
And this is fixed in http://trac.sagemath.org/ticket/18450 :)
Thanks Jeroen! 

-- 
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: sage-6.7 build failed on Cygwin64 for python-2.7.8 No module named crypt

2015-06-08 Thread Jean-Pierre Flori


Le lundi 8 juin 2015 13:54:01 UTC+2, Stefan Auracher a écrit :
>
> In the past I had the same experience. I did it but in the last years, but 
> it was really difficult. But recently I tried an install of cygwin with the 
> setup-x86_64.exe --no-admin switch and it worked very well wihout any 
> problems. The recent problems with installation of sage are really my first 
> problems, which possibly have to do with the cygwin installation without 
> admin rights.
>

I usually do things without admin rights...

The problem you saw above is underlinking.
You should tell cython to link  pbory.[pyx/c] with gmp: modify 
module_list.py, as an easy fix.
Linux and related are very kind with underlinking. Windows is not.

-- 
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: sage-6.7 build failed on Cygwin64 for python-2.7.8 No module named crypt

2015-06-08 Thread Stefan Auracher
In the past I had the same experience. I did it but in the last years, but 
it was really difficult. But recently I tried an install of cygwin with the 
setup-x86_64.exe --no-admin switch and it worked very well wihout any 
problems. The recent problems with installation of sage are really my first 
problems, which possibly have to do with the cygwin installation without 
admin rights.

-- 
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: sage-6.7 build failed on Cygwin64 for python-2.7.8 No module named crypt

2015-06-08 Thread Dima Pasechnik
IMHO running Cygwin without admin rights is next to impossible :(

On Monday, 8 June 2015 11:15:33 UTC+1, Stefan Auracher wrote:
>
> initially I tried to install via git as described here 
> http://trac.sagemath.org/wiki/Cygwin64Port but, because I have a very 
> poor internet connection behind some company firewalls I dit not suceed 
> with git clone git://trac.sagemath.org/sage.git. So I downloaded 
> sage-6.7.tar.gz 
>  from 
> ftp://ftp.fu-berlin.de/unix/misc/sage/src/index.html Annother problem is 
> taht I don have admin rights so I installed cygwin not on C:\cygwin But I 
> have a custom path like C:\XXX\cygwin64. After your comment above I 
> recognized, that I had not installed all the necessary development 
> packages. After I installed them I succeeded up to the buliding pf python. 
> There I got an error. But after rebasing as described in 
> http://trac.sagemath.org/wiki/Cygwin64Port I even got to the point where 
> cygwin tried to build sage It says cd /home/USERXX/sage-6.7/build The last 
> successfull build was building 'sage.ext.interpreters.wrapper_el' extension 
> but then an error occured:
>
> gcc  -o 
>> build/lib.cygwin-2.0.3-x86_64-2.7/sage/rings/polynomial/pbori.dll
>> build/temp.cygwin-2.0.3-x86_64-2.7/build/cythonized/sage/rings/polynomial/pbori.o:
>>  
>> In function `__pyx_f_4sage_4misc_4long_pyobject_to_long':
>> ~/sage-6.7/src/build/cythonized/sage/rings/polynomial/pbori.cpp:61424: 
>> undefined reference to `__imp___gmpz_fits_slong_p'
>> ~/sage-6.7/src/build/cythonized/sage/rings/polynomial/pbori.cpp:61424:(.text+0x5fdea):
>>  
>> relocation truncated to fit: R_X86_64_PC32 against undefined symbol 
>> `__imp___gmpz_fits_slong_p'
>> ~/sage-6.7/src/build/cythonized/sage/rings/polynomial/pbori.cpp:61434: 
>> undefined reference to `__imp___gmpz_get_si'
>> ~/sage-6.7/src/build/cythonized/sage/rings/polynomial/pbori.cpp:61434:(.text+0x5fdfb):
>>  
>> relocation truncated to fit: R_X86_64_PC32 against undefined symbol 
>> `__imp___gmpz_get_si'
>> collect2: Fehler: ld gab 1 als Ende-Status zurück
>> gcc ... -o 
>> build/temp.cygwin-2.0.3-x86_64-2.7/build/cythonized/sage/stats/hmm/distributions.o
>>  
>> -fno-strict-aliasing -w
>> error: command 'g++' failed with exit status 1
>> Makefile:9: die Regel für Ziel „sage“ scheiterte
>> make[3]: *** [sage] Fehler 1
>>
>>
> What to do ??
>
> Does it make sense to try on an clean Cywin32 on C:\cygwin\? 
>
> Are there less problems ? 
>

-- 
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: sage-6.7 build failed on Cygwin64 for python-2.7.8 No module named crypt

2015-06-08 Thread Stefan Auracher
initially I tried to install via git as described here 
http://trac.sagemath.org/wiki/Cygwin64Port but, because I have a very poor 
internet connection behind some company firewalls I dit not suceed with git 
clone git://trac.sagemath.org/sage.git. So I downloaded sage-6.7.tar.gz 
 from 
ftp://ftp.fu-berlin.de/unix/misc/sage/src/index.html Annother problem is 
taht I don have admin rights so I installed cygwin not on C:\cygwin But I 
have a custom path like C:\XXX\cygwin64. After your comment above I 
recognized, that I had not installed all the necessary development 
packages. After I installed them I succeeded up to the buliding pf python. 
There I got an error. But after rebasing as described in 
http://trac.sagemath.org/wiki/Cygwin64Port I even got to the point where 
cygwin tried to build sage It says cd /home/USERXX/sage-6.7/build The last 
successfull build was building 'sage.ext.interpreters.wrapper_el' extension 
but then an error occured:

gcc  -o 
> build/lib.cygwin-2.0.3-x86_64-2.7/sage/rings/polynomial/pbori.dll
> build/temp.cygwin-2.0.3-x86_64-2.7/build/cythonized/sage/rings/polynomial/pbori.o:
>  
> In function `__pyx_f_4sage_4misc_4long_pyobject_to_long':
> ~/sage-6.7/src/build/cythonized/sage/rings/polynomial/pbori.cpp:61424: 
> undefined reference to `__imp___gmpz_fits_slong_p'
> ~/sage-6.7/src/build/cythonized/sage/rings/polynomial/pbori.cpp:61424:(.text+0x5fdea):
>  
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol 
> `__imp___gmpz_fits_slong_p'
> ~/sage-6.7/src/build/cythonized/sage/rings/polynomial/pbori.cpp:61434: 
> undefined reference to `__imp___gmpz_get_si'
> ~/sage-6.7/src/build/cythonized/sage/rings/polynomial/pbori.cpp:61434:(.text+0x5fdfb):
>  
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol 
> `__imp___gmpz_get_si'
> collect2: Fehler: ld gab 1 als Ende-Status zurück
> gcc ... -o 
> build/temp.cygwin-2.0.3-x86_64-2.7/build/cythonized/sage/stats/hmm/distributions.o
>  
> -fno-strict-aliasing -w
> error: command 'g++' failed with exit status 1
> Makefile:9: die Regel für Ziel „sage“ scheiterte
> make[3]: *** [sage] Fehler 1
>
>
What to do ??

Does it make sense to try on an clean Cywin32 on C:\cygwin\? 

Are there less problems ? 

-- 
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: sage-6.7 build failed on Cygwin64 for python-2.7.8 No module named crypt

2015-06-05 Thread kcrisman

>
>
>> I'm not an expert on compiling on Cygwin. What can I do? Possibly the 
>> already installed python 2.7.10 is a problem ? 
>>
> Follow http://trac.sagemath.org/wiki/Cygwin64Port :)
> On Cygwin64 libcrypt-devel is not installed by default; 
>

Is there any way we could get some of that information in prereq, or is 
that too technically challenging? 

-- 
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: sage-6.7 build failed on Cygwin64 for python-2.7.8 No module named crypt

2015-06-05 Thread Jean-Pierre Flori


On Friday, June 5, 2015 at 2:49:40 PM UTC+2, Stefan Auracher wrote:
>
> the logfile 
> ~/sage-6.7/logs/pkgs/python-2.7.8.log
> at the very end after  make[3]: Leaving directory 
> '/home/XX/sage-6.7/local/var/tmp/sage/build/python-2.7.8/src' 
> failed with: 
>
> Installing valgrind suppression file... 
> Testing importing of various modules... 
> ctypes module imported OK 
> math module imported OK 
> hashlib module imported OK 
> Traceback (most recent call last): 
>   File "", line 1, in  
> ImportError: No module named crypt 
> crypt module failed to import 
> readline module imported OK 
> socket module imported OK 
> Error: One or more modules failed to import. 
>
> I'm not an expert on compiling on Cygwin. What can I do? Possibly the 
> already installed python 2.7.10 is a problem ? 
>
Follow http://trac.sagemath.org/wiki/Cygwin64Port :)
On Cygwin64 libcrypt-devel is not installed by default; 

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