Ask Your Question

Revision history [back]

cannot find -lcsage error when creating clone

After a fresh install of my Ubuntu 12.04 system I have trouble creating a clone (before the fresh install all worked without problems). The operation stops with the following error:

/usr/bin/ld: cannot find -lcsage

I can fix the error my manually copying libcsage.so into the ../devel/sage-test3/c_lib folder and the running

./sage -b test3

I have tried with different Sage binaries, the effect is always the same. This the complete output from the operation:

    Now cloning the current Sage library branch...
hg clone  sage sage-test3 
Not trusting file /home/chris/Downloads/sage-5.3v/devel/sage-main/.hg/hgrc from untrusted user chris, group chris
updating to branch default
2725 files updated, 0 files merged, 0 files removed, 0 files unresolved
Copying over all Cython auto-generated .c, .cpp and .h files...
Copying over build directory...
Copying over all auto-generated reference manual .rst files...
Copying over documentation output...
Building sage-test3...
sage -b test3

----------------------------------------------------------
sage: Building and installing modified Sage library files.


Installing c_lib
gcc -o src/convert.os -c -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -I/home/chris/Downloads/sage-5.3v/local/include/NTL -Iinclude src/convert.c
In file included from /home/chris/Downloads/sage-5.3v/local/include/python2.7/Python.h:8:0,
                 from include/interrupt.h:32,
                 from include/memory.h:23,
                 from /home/chris/Downloads/sage-5.3v/local/include/pari/pari.h:42,
                 from include/convert.h:12,
                 from src/convert.c:14:
/home/chris/Downloads/sage-5.3v/local/include/python2.7/pyconfig.h:1161:0: Warnung: »_POSIX_C_SOURCE« redefiniert [standardmäßig aktiviert]
/usr/include/features.h:215:0: Anmerkung: dies ist die Stelle der vorherigen Definition
gcc -o src/interrupt.os -c -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -I/home/chris/Downloads/sage-5.3v/local/include/NTL -Iinclude src/interrupt.c
In file included from /home/chris/Downloads/sage-5.3v/local/include/python2.7/Python.h:8:0,
                 from include/stdsage.h:35,
                 from src/interrupt.c:33:
/home/chris/Downloads/sage-5.3v/local/include/python2.7/pyconfig.h:1161:0: Warnung: »_POSIX_C_SOURCE« redefiniert [standardmäßig aktiviert]
/usr/include/features.h:215:0: Anmerkung: dies ist die Stelle der vorherigen Definition
gcc -o src/memory.os -c -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -I/home/chris/Downloads/sage-5.3v/local/include/NTL -Iinclude src/memory.c
gcc -o src/mpn_pylong.os -c -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -I/home/chris/Downloads/sage-5.3v/local/include/NTL -Iinclude src/mpn_pylong.c
gcc -o src/mpz_pylong.os -c -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -I/home/chris/Downloads/sage-5.3v/local/include/NTL -Iinclude src/mpz_pylong.c
gcc -o src/mpz_longlong.os -c -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -I/home/chris/Downloads/sage-5.3v/local/include/NTL -Iinclude src/mpz_longlong.c
gcc -o src/stdsage.os -c -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -I/home/chris/Downloads/sage-5.3v/local/include/NTL -Iinclude src/stdsage.c
gcc -o src/gmp_globals.os -c -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -I/home/chris/Downloads/sage-5.3v/local/include/NTL -Iinclude src/gmp_globals.c
o src/ZZ_pylong.os -c -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -I/home/chris/Downloads/sage-5.3v/local/include/NTL -Iinclude src/ZZ_pylong.cpp
sh: 1: o: not found
o src/ntl_wrap.os -c -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -I/home/chris/Downloads/sage-5.3v/local/include/NTL -Iinclude src/ntl_wrap.cpp
sh: 1: o: not found
o libcsage.so -shared src/convert.os src/interrupt.os src/memory.os src/mpn_pylong.os src/mpz_pylong.os src/mpz_longlong.os src/stdsage.os src/gmp_globals.os src/ZZ_pylong.os src/ntl_wrap.os -L/home/chris/Downloads/sage-5.3v/local/lib -L/home/chris/Downloads/sage-5.3v/local/lib/python2.7/config -lntl -lpari -lgmp -lpython2.7
sh: 1: o: not found
Building interpreters for fast_callable
Updating Cython code....
Building sage/plot/plot3d/parametric_surface.pyx because it depends on sage/ext/interpreters/wrapper_rdf.pxd.
Building modified file sage/ext/interpreters/wrapper_rdf.pyx.
Building modified file sage/ext/interpreters/wrapper_cdf.pyx.
Building modified file sage/ext/interpreters/wrapper_rr.pyx.
Building modified file sage/ext/interpreters/wrapper_py.pyx.
Building modified file sage/ext/interpreters/wrapper_el.pyx.
Executing 6 commands (using 1 thread)
python `which cython`  --old-style-globals --embed-positions --directive cdivision=True,autotestdict=False,fast_getattr=True -I/home/chris/Downloads/sage-5.3v/devel/sage-test3 -o sage/ext/interpreters/wrapper_rdf.c sage/ext/interpreters/wrapper_rdf.pyx
sage/ext/interpreters/wrapper_rdf.pyx --> /home/chris/Downloads/sage-5.3v/local/lib/python2.7/site-packages//sage/ext/interpreters/wrapper_rdf.pyx
python `which cython`  --old-style-globals --embed-positions --directive cdivision=True,autotestdict=False,fast_getattr=True -I/home/chris/Downloads/sage-5.3v/devel/sage-test3 -o sage/ext/interpreters/wrapper_cdf.c sage/ext/interpreters/wrapper_cdf.pyx
sage/ext/interpreters/wrapper_cdf.pyx --> /home/chris/Downloads/sage-5.3v/local/lib/python2.7/site-packages//sage/ext/interpreters/wrapper_cdf.pyx
python `which cython`  --old-style-globals --embed-positions --directive cdivision=True,autotestdict=False,fast_getattr=True -I/home/chris/Downloads/sage-5.3v/devel/sage-test3 -o sage/ext/interpreters/wrapper_rr.c sage/ext/interpreters/wrapper_rr.pyx
sage/ext/interpreters/wrapper_rr.pyx --> /home/chris/Downloads/sage-5.3v/local/lib/python2.7/site-packages//sage/ext/interpreters/wrapper_rr.pyx
python `which cython`  --old-style-globals --embed-positions --directive cdivision=True,autotestdict=False,fast_getattr=True -I/home/chris/Downloads/sage-5.3v/devel/sage-test3 -o sage/ext/interpreters/wrapper_py.c sage/ext/interpreters/wrapper_py.pyx
sage/ext/interpreters/wrapper_py.pyx --> /home/chris/Downloads/sage-5.3v/local/lib/python2.7/site-packages//sage/ext/interpreters/wrapper_py.pyx
python `which cython`  --old-style-globals --embed-positions --directive cdivision=True,autotestdict=False,fast_getattr=True -I/home/chris/Downloads/sage-5.3v/devel/sage-test3 -o sage/ext/interpreters/wrapper_el.c sage/ext/interpreters/wrapper_el.pyx
sage/ext/interpreters/wrapper_el.pyx --> /home/chris/Downloads/sage-5.3v/local/lib/python2.7/site-packages//sage/ext/interpreters/wrapper_el.pyx
python `which cython`  --old-style-globals --embed-positions --directive cdivision=True,autotestdict=False,fast_getattr=True -I/home/chris/Downloads/sage-5.3v/devel/sage-test3 -o sage/plot/plot3d/parametric_surface.c sage/plot/plot3d/parametric_surface.pyx
sage/plot/plot3d/parametric_surface.pyx --> /home/chris/Downloads/sage-5.3v/local/lib/python2.7/site-packages//sage/plot/plot3d/parametric_surface.pyx
Time to execute 6 commands: 8.19126582146 seconds
Finished compiling Cython code (time = 8.66591119766 seconds)
running install
running build
running build_py
running build_ext
warning: Replacing library search directory in linker command:
  "/home/buildbot/build/sage/snapperkob/snapperkob_binary/build/sage-5.3/local/lib" -> "/home/chris/Downloads/sage-5.3v/local/lib"

building 'sage.plot.plot3d.parametric_surface' extension
building 'sage.ext.interpreters.wrapper_rdf' extension
building 'sage.ext.interpreters.wrapper_cdf' extension
building 'sage.ext.interpreters.wrapper_rr' extension
building 'sage.ext.interpreters.wrapper_py' extension
building 'sage.ext.interpreters.wrapper_el' extension
Executing 6 commands (using 1 thread)
gcc -fno-strict-aliasing -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/csage -I/home/chris/Downloads/sage-5.3v/devel/sage/sage/ext -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -c sage/plot/plot3d/parametric_surface.c -o build/temp.linux-x86_64-2.7/sage/plot/plot3d/parametric_surface.o -w
gcc -pthread -shared -L/home/chris/Downloads/sage-5.3v/local/lib build/temp.linux-x86_64-2.7/sage/plot/plot3d/parametric_surface.o -L/home/chris/Downloads/sage-5.3v/local/lib -L/home/buildbot/build/sage/snapperkob/snapperkob_binary/build/sage-5.3/local/lib -lcsage -lstdc++ -lntl -lpython2.7 -o build/lib.linux-x86_64-2.7/sage/plot/plot3d/parametric_surface.so
/usr/bin/ld: cannot find -lcsage
collect2: ld gab 1 als Ende-Status zurück
error: command 'gcc' failed with exit status 1
gcc -fno-strict-aliasing -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/csage -I/home/chris/Downloads/sage-5.3v/devel/sage/sage/ext -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -c sage/ext/interpreters/wrapper_rdf.c -o build/temp.linux-x86_64-2.7/sage/ext/interpreters/wrapper_rdf.o -w
Error installing modified sage library code.
Error building Sage

real    0m23.223s
user    0m15.041s
sys 0m3.172s

What am I missing? Any help would be appreciated.

Chris