I have an old mac-air (macosx-10.6.8, intel core 2 Duo). I tried to compile 
sage-8.2 from the code source:
i did the following:

cd sage-8.2
./configure
make

then after a few hours. I got (cysignals-1.7.0) -fichier log en attache:

[cysignals-1.7.0.p0] Error: installing with pip2 failed
[cysignals-1.7.0.p0] 
********************************************************************************
[cysignals-1.7.0.p0] Error installing cysignals-1.7.0.p0
[cysignals-1.7.0.p0] 
********************************************************************************
[cysignals-1.7.0.p0] 
[cysignals-1.7.0.p0] real    0m13.380s
[cysignals-1.7.0.p0] user    0m8.617s
[cysignals-1.7.0.p0] sys    0m3.114s
[cysignals-1.7.0.p0] 
************************************************************************
[cysignals-1.7.0.p0] Error installing package cysignals-1.7.0.p0
[cysignals-1.7.0.p0] 
************************************************************************


How can I fix it?
Regards,
KF

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.
Found local metadata for cysignals-1.7.0.p0
Using cached file /Users/kenfuji/sage-8.2/upstream/cysignals-1.7.0.tar.gz
cysignals-1.7.0.p0
====================================================
Setting up build directory for cysignals-1.7.0.p0
Finished extraction
Applying patches from ../patches...
Applying ../patches/stack_guard.patch
patching file src/cysignals/implementation.c
****************************************************
Host system:
Darwin MacBook-Air-de-Ken-Fuji.local 10.8.0 Darwin Kernel Version 10.8.0: Tue 
Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/Users/kenfuji/sage-8.2/local/libexec/gcc/x86_64-apple-darwin10.8.0/7.2.0/lto-wrapper
Target: x86_64-apple-darwin10.8.0
Configured with: ../src/configure --prefix=/Users/kenfuji/sage-8.2/local 
--with-local-prefix=/Users/kenfuji/sage-8.2/local 
--with-gmp=/Users/kenfuji/sage-8.2/local 
--with-mpfr=/Users/kenfuji/sage-8.2/local 
--with-mpc=/Users/kenfuji/sage-8.2/local --with-system-zlib --disable-multilib 
--disable-nls --enable-languages=c,c++,fortran --disable-libitm 
--with-build-config=bootstrap-debug --without-isl --without-cloog  
Thread model: posix
gcc version 7.2.0 (GCC) 
****************************************************
Configuring cysignals-1.7.0.p0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for library containing pari_init... -lpari
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking sys/prctl.h usability... no
checking sys/prctl.h presence... no
checking for sys/prctl.h... no
checking for backtrace... yes
checking whether PARI_SIGINT_block is declared... yes
checking for emms instruction... yes
checking whether setjmp() saves the signal mask... yes
checking for GNU libc... no
configure: creating ./config.status
config.status: creating build/src/config.h
config.status: creating build/src/cysignals/cysignals_config.h
config.status: executing build/src/cysignals/__init__.pxd commands
Installing cysignals-1.7.0.p0
Installing package cysignals using pip2
Ignoring indexes: https://pypi.python.org/simple
Processing 
/Users/kenfuji/sage-8.2/local/var/tmp/sage/build/cysignals-1.7.0.p0/src
  Running setup.py 
(path:/private/var/folders/3P/3PR+zNoGGHyvSfQTefYBMk+++TI/-Tmp-/pip-jeFG9c-build/setup.py)
 egg_info for package from 
file:///Users/kenfuji/sage-8.2/local/var/tmp/sage/build/cysignals-1.7.0.p0/src
    Running command python setup.py egg_info
    running egg_info
    creating pip-egg-info/cysignals.egg-info
    writing pip-egg-info/cysignals.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/cysignals.egg-info/top_level.txt
    writing dependency_links to 
pip-egg-info/cysignals.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/cysignals.egg-info/SOURCES.txt'
    reading manifest file 'pip-egg-info/cysignals.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'dist'
    no previously-included directories found matching 'tmp'
    no previously-included directories found matching '.*'
    writing manifest file 'pip-egg-info/cysignals.egg-info/SOURCES.txt'
  Source in 
/private/var/folders/3P/3PR+zNoGGHyvSfQTefYBMk+++TI/-Tmp-/pip-jeFG9c-build has 
version 1.7.0, which satisfies requirement cysignals==1.7.0 from 
file:///Users/kenfuji/sage-8.2/local/var/tmp/sage/build/cysignals-1.7.0.p0/src
Installing collected packages: cysignals
  Running setup.py install for cysignals: started
    Running command /Users/kenfuji/sage-8.2/local/bin/python2 -u -c "import 
setuptools, 
tokenize;__file__='/private/var/folders/3P/3PR+zNoGGHyvSfQTefYBMk+++TI/-Tmp-/pip-jeFG9c-build/setup.py';f=getattr(tokenize,
 'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" --no-user-cfg install 
--record 
/var/folders/3P/3PR+zNoGGHyvSfQTefYBMk+++TI/-Tmp-/pip-bNbbch-record/install-record.txt
 --single-version-externally-managed --compile
    running install
    running build
    Compiling src/cysignals/signals.pyx because it changed.
    Compiling src/cysignals/pysignals.pyx because it changed.
    Compiling src/cysignals/alarm.pyx because it changed.
    Compiling src/cysignals/pselect.pyx because it changed.
    Compiling src/cysignals/tests.pyx because it changed.
    [1/5] Cythonizing src/cysignals/alarm.pyx
    [2/5] Cythonizing src/cysignals/pselect.pyx
    [3/5] Cythonizing src/cysignals/pysignals.pyx
    [4/5] Cythonizing src/cysignals/signals.pyx
    [5/5] Cythonizing src/cysignals/tests.pyx
    running build_py
    creating build/lib.macosx-10.6-x86_64-2.7
    creating build/lib.macosx-10.6-x86_64-2.7/cysignals
    copying src/cysignals/__init__.py -> 
build/lib.macosx-10.6-x86_64-2.7/cysignals
    copying src/cysignals/memory.pxi -> 
build/lib.macosx-10.6-x86_64-2.7/cysignals
    copying src/cysignals/signals.pxi -> 
build/lib.macosx-10.6-x86_64-2.7/cysignals
    copying src/cysignals/memory.pxd -> 
build/lib.macosx-10.6-x86_64-2.7/cysignals
    copying src/cysignals/pysignals.pxd -> 
build/lib.macosx-10.6-x86_64-2.7/cysignals
    copying src/cysignals/signals.pxd -> 
build/lib.macosx-10.6-x86_64-2.7/cysignals
    copying src/cysignals/macros.h -> build/lib.macosx-10.6-x86_64-2.7/cysignals
    copying src/cysignals/pxi_warning.h -> 
build/lib.macosx-10.6-x86_64-2.7/cysignals
    copying src/cysignals/struct_signals.h -> 
build/lib.macosx-10.6-x86_64-2.7/cysignals
    copying build/src/cysignals/cysignals_config.h -> 
build/lib.macosx-10.6-x86_64-2.7/cysignals
    running build_ext
    building 'cysignals.signals' extension
    creating build/temp.macosx-10.6-x86_64-2.7
    creating build/temp.macosx-10.6-x86_64-2.7/build
    creating build/temp.macosx-10.6-x86_64-2.7/build/src
    creating build/temp.macosx-10.6-x86_64-2.7/build/src/cysignals
    gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused 
-DCYTHON_CLINE_IN_TRACEBACK=0 -U_FORTIFY_SOURCE -Isrc/cysignals -Ibuild/src 
-Ibuild/src/cysignals -I/Users/kenfuji/sage-8.2/local/include/python2.7 -c 
build/src/cysignals/signals.c -o 
build/temp.macosx-10.6-x86_64-2.7/build/src/cysignals/signals.o
    In file included from build/src/cysignals/signals.c:603:0:
    build/src/cysignals/implementation.c: In function 'setup_trampoline':
    build/src/cysignals/implementation.c:287:47: error: 'MAP_ANONYMOUS' 
undeclared (first use in this function); did you mean 'MAP_ANON'?
                 PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
                                                   ^~~~~~~~~~~~~
                                                   MAP_ANON
    build/src/cysignals/implementation.c:287:47: note: each undeclared 
identifier is reported only once for each function it appears in
    error: command 'gcc' failed with exit status 1
    Running setup.py install for cysignals: finished with status 'error'
Cleaning up...
  Removing source in 
/private/var/folders/3P/3PR+zNoGGHyvSfQTefYBMk+++TI/-Tmp-/pip-jeFG9c-build
Command "/Users/kenfuji/sage-8.2/local/bin/python2 -u -c "import setuptools, 
tokenize;__file__='/private/var/folders/3P/3PR+zNoGGHyvSfQTefYBMk+++TI/-Tmp-/pip-jeFG9c-build/setup.py';f=getattr(tokenize,
 'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" --no-user-cfg install 
--record 
/var/folders/3P/3PR+zNoGGHyvSfQTefYBMk+++TI/-Tmp-/pip-bNbbch-record/install-record.txt
 --single-version-externally-managed --compile" failed with error code 1 in 
/private/var/folders/3P/3PR+zNoGGHyvSfQTefYBMk+++TI/-Tmp-/pip-jeFG9c-build/
Exception information:
Traceback (most recent call last):
  File 
"/Users/kenfuji/sage-8.2/local/lib/python2.7/site-packages/pip/basecommand.py", 
line 215, in main
    status = self.run(options, args)
  File 
"/Users/kenfuji/sage-8.2/local/lib/python2.7/site-packages/pip/commands/install.py",
 line 342, in run
    prefix=options.prefix_path,
  File 
"/Users/kenfuji/sage-8.2/local/lib/python2.7/site-packages/pip/req/req_set.py", 
line 784, in install
    **kwargs
  File 
"/Users/kenfuji/sage-8.2/local/lib/python2.7/site-packages/pip/req/req_install.py",
 line 878, in install
    spinner=spinner,
  File 
"/Users/kenfuji/sage-8.2/local/lib/python2.7/site-packages/pip/utils/__init__.py",
 line 707, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command "/Users/kenfuji/sage-8.2/local/bin/python2 -u -c 
"import setuptools, 
tokenize;__file__='/private/var/folders/3P/3PR+zNoGGHyvSfQTefYBMk+++TI/-Tmp-/pip-jeFG9c-build/setup.py';f=getattr(tokenize,
 'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" --no-user-cfg install 
--record 
/var/folders/3P/3PR+zNoGGHyvSfQTefYBMk+++TI/-Tmp-/pip-bNbbch-record/install-record.txt
 --single-version-externally-managed --compile" failed with error code 1 in 
/private/var/folders/3P/3PR+zNoGGHyvSfQTefYBMk+++TI/-Tmp-/pip-jeFG9c-build/
Error: installing with pip2 failed
********************************************************************************
Error installing cysignals-1.7.0.p0
********************************************************************************

real    0m13.380s
user    0m8.617s
sys     0m3.114s
************************************************************************
Error installing package cysignals-1.7.0.p0
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the log file
  /Users/kenfuji/sage-8.2/logs/pkgs/cysignals-1.7.0.p0.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/Users/kenfuji/sage-8.2/local/var/tmp/sage/build/cysignals-1.7.0.p0 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 '/Users/kenfuji/sage-8.2/local/var/tmp/sage/build/cysignals-1.7.0.p0' && 
'/Users/kenfuji/sage-8.2/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************

Reply via email to