I did:
$ export SAGE_PBUILD=yes
$ export SAGE_BUILD_THREADS=4
$ make
is this correct to build in parallel?
This is what I got:
gcc -g -c -fPIC -O3 -fwrapv -fno-strict-aliasing
devel/sage/sage/structure/sage_object.c -DNDEBUG
-I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/csage
-I/home/certiko/ext/sage-3.0.5/devel/sage/sage/ext
-I/home/certiko/ext/sage-3.0.5/local/include/python2.5 -o
/home/certiko/ext/sage-3.0.5/devel/sage/build/temp/sage/structure/sage_object.o
devel/sage/sage/finance/time_series.c:106:25: error: arrayobject.h: No
such file or directory
devel/sage/sage/finance/time_series.c: In function
'__pyx_pf_4sage_7finance_11time_series_10TimeSeries___init__':
devel/sage/sage/finance/time_series.c:1732: error: 'PyArrayObject'
undeclared (first use in this function)
devel/sage/sage/finance/time_series.c:1732: error: (Each undeclared
identifier is reported only once
devel/sage/sage/finance/time_series.c:1732: error: for each function
it appears in.)
devel/sage/sage/finance/time_series.c:1732: error: '__pyx_v_np'
undeclared (first use in this function)
devel/sage/sage/finance/time_series.c:1758: error: expected expression
before ')' token
devel/sage/sage/finance/time_series.c:1819: error: expected expression
before ')' token
devel/sage/sage/finance/time_series.c:1851: error: expected expression
before ')' token
devel/sage/sage/finance/time_series.c: In function
'__pyx_pf_4sage_7finance_11time_series_10TimeSeries_numpy':
devel/sage/sage/finance/time_series.c:9490: error: 'PyArrayObject'
undeclared (first use in this function)
devel/sage/sage/finance/time_series.c:9490: error: '__pyx_v_n'
undeclared (first use in this function)
devel/sage/sage/finance/time_series.c:9536: warning: assignment makes
pointer from integer without a cast
devel/sage/sage/finance/time_series.c:9538: error: expected expression
before ')' token
devel/sage/sage/finance/time_series.c: In function 'inittime_series':
devel/sage/sage/finance/time_series.c:11702: error: 'PyArrayObject'
undeclared (first use in this function)
gcc -g -c -fPIC -O3 -fwrapv -fno-strict-aliasing
devel/sage/sage/finance/time_series.c -DNDEBUG
-I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/csage
-I/home/certiko/ext/sage-3.0.5/devel/sage/sage/ext
-I/home/certiko/ext/sage-3.0.5/local/include/python2.5 -o
/home/certiko/ext/sage-3.0.5/devel/sage/build/temp/sage/finance/time_series.o
gcc -g -c -fPIC -O3 -fwrapv -fno-strict-aliasing
devel/sage/sage/matrix/matrix_cyclo_dense.c -DNDEBUG
-I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/csage
-I/home/certiko/ext/sage-3.0.5/devel/sage/sage/ext
-I/home/certiko/ext/sage-3.0.5/local/include/python2.5 -o
/home/certiko/ext/sage-3.0.5/devel/sage/build/temp/sage/matrix/matrix_cyclo_dense.o
gcc -g -c -fPIC -O3 -fwrapv -fno-strict-aliasing
devel/sage/sage/graphs/graph_isom.c -DNDEBUG
-I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/csage
-I/home/certiko/ext/sage-3.0.5/devel/sage/sage/ext
-I/home/certiko/ext/sage-3.0.5/local/include/python2.5 -o
/home/certiko/ext/sage-3.0.5/devel/sage/build/temp/sage/graphs/graph_isom.o
gcc -g -c -fPIC -O3 -fwrapv -fno-strict-aliasing
devel/sage/sage/plot/plot3d/base.c -DNDEBUG
-I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/csage
-I/home/certiko/ext/sage-3.0.5/devel/sage/sage/ext
-I/home/certiko/ext/sage-3.0.5/local/include/python2.5 -o
/home/certiko/ext/sage-3.0.5/devel/sage/build/temp/sage/plot/plot3d/base.o
ERROR installing SAGE
real 4m31.555s
user 14m45.647s
sys 0m33.842s
sage: An error occurred while installing sage-3.0.5
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /home/certiko/ext/sage-3.0.5/install.log. Describe your computer,
operating system, etc.
If you want to try to fix the problem, yourself *don't* just cd to
/home/certiko/ext/sage-3.0.5/spkg/build/sage-3.0.5 and type 'make'.
Instead type "/home/certiko/ext/sage-3.0.5/sage -sh"
in order to set all environment variables correctly, then cd to
/home/certiko/ext/sage-3.0.5/spkg/build/sage-3.0.5
(When you are done debugging, you can type "exit" to leave the
subshell.)
make[1]: *** [installed/sage-3.0.5] Error 1
make[1]: Leaving directory `/home/certiko/ext/sage-3.0.5/spkg'
real 108m34.685s
user 72m43.841s
sys 12m44.948s
cpu:
vendor_id : AuthenticAMD
model name : Dual Core AMD Opteron(tm) Processor 285
$ uname -a
Linux thsun32 2.6.18.8-0.5-default #1 SMP Fri Jun 22 12:17:53 UTC 2007
x86_64 x86_64 x86_64 GNU/Linux
$ gcc -v
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release
--with-gxx-include-dir=/usr/include/c++/4.1.2 --enable-ssp
--disable-libssp --disable-libgcj --with-slibdir=/lib64
--with-system-zlib --enable-shared --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --program-suffix=-4.1
--enable-version-specific-runtime-libs --without-system-libunwind
--with-cpu=generic --host=x86_64-suse-linux
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (SUSE Linux)
Not sure how to get more info like which version of suse or opensuse this is.
Ondrej
How can I reproduce the problem?
When I setup the env and did
$ cd /home/certiko/ext/sage-3.0.5/spkg/build/sage-3.0.5
$ make
make: *** No targets specified and no makefile found. Stop.
and when I did
$ cd /home/certiko/ext/sage-3.0.5
$ ./sage -b
it continued to compile. It's fine it compiles, but I'd like to debug
the above problem. :)
Ondrej
Gary told me the pbuild is broken in this release, so I compiled
without it, using:
$ export MAKE="make -j4"
$ make
and unfortunately it failed too.
(cd .libs && rm -f libgd.la && ln -s ../libgd.la libgd.la)
/bin/sh ./libtool --mode=link gcc
-I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/freetype2/
-L/home/certiko/ext/sage-3.0.5/local/lib -Wl,--rpath
-Wl,/home/certiko/ext/sage-3.0.5/local/lib
-L/home/certiko/ext/sage-3.0.5/local/lib -o annotate annotate.o
./libgd.la -lXpm -lX11 -lfontconfig -lfreetype -lpng12 -lz -lm
/bin/sh ./libtool --mode=link gcc
-I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/freetype2/
-L/home/certiko/ext/sage-3.0.5/local/lib -Wl,--rpath
-Wl,/home/certiko/ext/sage-3.0.5/local/lib
-L/home/certiko/ext/sage-3.0.5/local/lib -o gdparttopng
gdparttopng.o ./libgd.la -lXpm -lX11 -lfontconfig -lfreetype -lpng12
-lz -lm
/bin/sh ./libtool --mode=link gcc
-I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/freetype2/
-L/home/certiko/ext/sage-3.0.5/local/lib -Wl,--rpath
-Wl,/home/certiko/ext/sage-3.0.5/local/lib
-L/home/certiko/ext/sage-3.0.5/local/lib -o gdtopng gdtopng.o
./libgd.la -lXpm -lX11 -lfontconfig -lfreetype -lpng12 -lz -lm
/bin/sh ./libtool --mode=link gcc
-I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/freetype2/
-L/home/certiko/ext/sage-3.0.5/local/lib -Wl,--rpath
-Wl,/home/certiko/ext/sage-3.0.5/local/lib
-L/home/certiko/ext/sage-3.0.5/local/lib -o gd2copypal gd2copypal.o
./libgd.la -lXpm -lX11 -lfontconfig -lfreetype -lpng12 -lz -lm
gcc -I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/freetype2/ -Wl,--rpath
-Wl,/home/certiko/ext/sage-3.0.5/local/lib -o .libs/annotate
annotate.o -L/home/certiko/ext/sage-3.0.5/local/lib ./.libs/libgd.so
/usr/lib64/libXpm.so -lpthread /usr/lib64/libX11.so
/usr/lib64/libXau.so /usr/lib64/libXdmcp.so -ldl
/usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so -lexpat
/home/certiko/ext/sage-3.0.5/local/lib/libfreetype.so -lpng12 -lz -lm
-Wl,--rpath -Wl,/home/certiko/ext/sage-3.0.5/local/lib
gcc: /usr/lib64/libfreetype.so: No such file or directory
make[4]: *** [annotate] Error 1
make[4]: *** Waiting for unfinished jobs....
gcc -I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/freetype2/ -Wl,--rpath
-Wl,/home/certiko/ext/sage-3.0.5/local/lib -o .libs/gd2copypal
gd2copypal.o -L/home/certiko/ext/sage-3.0.5/local/lib
./.libs/libgd.so /usr/lib64/libXpm.so -lpthread /usr/lib64/libX11.so
/usr/lib64/libXau.so /usr/lib64/libXdmcp.so -ldl
/usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so -lexpat
/home/certiko/ext/sage-3.0.5/local/lib/libfreetype.so -lpng12 -lz -lm
-Wl,--rpath -Wl,/home/certiko/ext/sage-3.0.5/local/lib
gcc -I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/freetype2/ -Wl,--rpath
-Wl,/home/certiko/ext/sage-3.0.5/local/lib -o .libs/gdparttopng
gdparttopng.o -L/home/certiko/ext/sage-3.0.5/local/lib
./.libs/libgd.so /usr/lib64/libXpm.so -lpthread /usr/lib64/libX11.so
/usr/lib64/libXau.so /usr/lib64/libXdmcp.so -ldl
/usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so -lexpat
/home/certiko/ext/sage-3.0.5/local/lib/libfreetype.so -lpng12 -lz -lm
-Wl,--rpath -Wl,/home/certiko/ext/sage-3.0.5/local/lib
gcc -I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/freetype2/ -Wl,--rpath
-Wl,/home/certiko/ext/sage-3.0.5/local/lib -o .libs/gdtopng gdtopng.o
-L/home/certiko/ext/sage-3.0.5/local/lib ./.libs/libgd.so
/usr/lib64/libXpm.so -lpthread /usr/lib64/libX11.so
/usr/lib64/libXau.so /usr/lib64/libXdmcp.so -ldl
/usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so -lexpat
/home/certiko/ext/sage-3.0.5/local/lib/libfreetype.so -lpng12 -lz -lm
-Wl,--rpath -Wl,/home/certiko/ext/sage-3.0.5/local/lib
gcc: /usr/lib64/libfreetype.so: No such file or directory
gcc: /usr/lib64/libfreetype.so: No such file or directory
make[4]: *** [gdparttopng] Error 1
make[4]: *** [gdtopng] Error 1
gcc: /usr/lib64/libfreetype.so: No such file or directory
make[4]: *** [gd2copypal] Error 1
make[4]: Leaving directory
`/home/certiko/ext/sage-3.0.5/spkg/build/gd-2.0.33.p5/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/certiko/ext/sage-3.0.5/spkg/build/gd-2.0.33.p5/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/certiko/ext/sage-3.0.5/spkg/build/gd-2.0.33.p5/src'
Error building gd.
real 0m25.297s
user 0m8.609s
sys 0m8.917s
sage: An error occurred while installing gd-2.0.33.p5
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /home/certiko/ext/sage-3.0.5/install.log. Describe your computer,
operating system, etc.
If you want to try to fix the problem, yourself *don't* just cd to
/home/certiko/ext/sage-3.0.5/spkg/build/gd-2.0.33.p5 and type 'make'.
Instead type "/home/certiko/ext/sage-3.0.5/sage -sh"
in order to set all environment variables correctly, then cd to
/home/certiko/ext/sage-3.0.5/spkg/build/gd-2.0.33.p5
(When you are done debugging, you can type "exit" to leave the
subshell.)
make[1]: *** [installed/gd-2.0.33.p5] Error 1
make[1]: Leaving directory `/home/certiko/ext/sage-3.0.5/spkg'
real 26m49.339s
user 17m19.945s
sys 4m25.197s
certiko@thsun32:~/ext/sage-3.0.5$
Now I am trying to compile with a single make if it's going to work.
If not, I'll give up and wait for the next release if it fixes it.
Ondrej
No luck:
/bin/sh ./libtool --mode=link gcc
-I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/freetype2/
-L/home/certiko/ext/sage-3.0.5/local/lib -Wl,--rpath
-Wl,/home/certiko/ext/sage-3.0.5/local/lib
-L/home/certiko/ext/sage-3.0.5/local/lib -o gdtopng gdtopng.o
./libgd.la -lXpm -lX11 -lfontconfig -lfreetype -lpng12 -lz -lm
/bin/sh ./libtool --mode=link gcc
-I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/freetype2/
-L/home/certiko/ext/sage-3.0.5/local/lib -Wl,--rpath
-Wl,/home/certiko/ext/sage-3.0.5/local/lib
-L/home/certiko/ext/sage-3.0.5/local/lib -o gd2copypal gd2copypal.o
./libgd.la -lXpm -lX11 -lfontconfig -lfreetype -lpng12 -lz -lm
gcc -I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/freetype2/ -Wl,--rpath
-Wl,/home/certiko/ext/sage-3.0.5/local/lib -o .libs/gdtopng gdtopng.o
-L/home/certiko/ext/sage-3.0.5/local/lib ./.libs/libgd.so
/usr/lib64/libXpm.so -lpthread /usr/lib64/libX11.so
/usr/lib64/libXau.so /usr/lib64/libXdmcp.so -ldl
/usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so -lexpat
/home/certiko/ext/sage-3.0.5/local/lib/libfreetype.so -lpng12 -lz -lm
-Wl,--rpath -Wl,/home/certiko/ext/sage-3.0.5/local/lib
gcc: /usr/lib64/libfreetype.so: No such file or directory
make[4]: *** [gdtopng] Error 1
make[4]: *** Waiting for unfinished jobs....
gcc -I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/freetype2/ -Wl,--rpath
-Wl,/home/certiko/ext/sage-3.0.5/local/lib -o .libs/gdparttopng
gdparttopng.o -L/home/certiko/ext/sage-3.0.5/local/lib
./.libs/libgd.so /usr/lib64/libXpm.so -lpthread /usr/lib64/libX11.so
/usr/lib64/libXau.so /usr/lib64/libXdmcp.so -ldl
/usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so -lexpat
/home/certiko/ext/sage-3.0.5/local/lib/libfreetype.so -lpng12 -lz -lm
-Wl,--rpath -Wl,/home/certiko/ext/sage-3.0.5/local/lib
gcc: /usr/lib64/libfreetype.so: No such file or directory
make[4]: *** [gdparttopng] Error 1
gcc -I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/freetype2/ -Wl,--rpath
-Wl,/home/certiko/ext/sage-3.0.5/local/lib -o .libs/annotate
annotate.o -L/home/certiko/ext/sage-3.0.5/local/lib ./.libs/libgd.so
/usr/lib64/libXpm.so -lpthread /usr/lib64/libX11.so
/usr/lib64/libXau.so /usr/lib64/libXdmcp.so -ldl
/usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so -lexpat
/home/certiko/ext/sage-3.0.5/local/lib/libfreetype.so -lpng12 -lz -lm
-Wl,--rpath -Wl,/home/certiko/ext/sage-3.0.5/local/lib
gcc: /usr/lib64/libfreetype.so: No such file or directory
make[4]: *** [annotate] Error 1
gcc -I/home/certiko/ext/sage-3.0.5/local/include
-I/home/certiko/ext/sage-3.0.5/local/include/freetype2/ -Wl,--rpath
-Wl,/home/certiko/ext/sage-3.0.5/local/lib -o .libs/gd2copypal
gd2copypal.o -L/home/certiko/ext/sage-3.0.5/local/lib
./.libs/libgd.so /usr/lib64/libXpm.so -lpthread /usr/lib64/libX11.so
/usr/lib64/libXau.so /usr/lib64/libXdmcp.so -ldl
/usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so -lexpat
/home/certiko/ext/sage-3.0.5/local/lib/libfreetype.so -lpng12 -lz -lm
-Wl,--rpath -Wl,/home/certiko/ext/sage-3.0.5/local/lib
gcc: /usr/lib64/libfreetype.so: No such file or directory
make[4]: *** [gd2copypal] Error 1
make[4]: Leaving directory
`/home/certiko/ext/sage-3.0.5/spkg/build/gd-2.0.33.p5/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/certiko/ext/sage-3.0.5/spkg/build/gd-2.0.33.p5/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/certiko/ext/sage-3.0.5/spkg/build/gd-2.0.33.p5/src'
Error building gd.
real 0m25.316s
user 0m8.689s
sys 0m8.461s
sage: An error occurred while installing gd-2.0.33.p5
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /home/certiko/ext/sage-3.0.5/install.log. Describe your computer,
operating system, etc.
If you want to try to fix the problem, yourself *don't* just cd to
/home/certiko/ext/sage-3.0.5/spkg/build/gd-2.0.33.p5 and type 'make'.
Instead type "/home/certiko/ext/sage-3.0.5/sage -sh"
in order to set all environment variables correctly, then cd to
/home/certiko/ext/sage-3.0.5/spkg/build/gd-2.0.33.p5
(When you are done debugging, you can type "exit" to leave the
subshell.)
make[1]: *** [installed/gd-2.0.33.p5] Error 1
make[1]: Leaving directory `/home/certiko/ext/sage-3.0.5/spkg'
real 26m47.256s
user 17m22.341s
sys 4m24.817s
certiko@thsun32:~/ext/sage-3.0.5$
I am actually surprised that a released Sage failed to build from
source, I've never encountered that before. :)
Maybe it suggests the system is fubar.
Ondrej
Doing:
certiko@thsun32:~/ext/sage-3.0.5$ export MAKE=make
certiko@thsun32:~/ext/sage-3.0.5$ make &> log
And I'll send you a log when it fails.
> <SNIP>
>
>> I am actually surprised that a released Sage failed to build from
>> source, I've never encountered that before. :)
>>
>> Maybe it suggests the system is fubar.
>
> :) - which OpenSuSE release is it?
Sorry for my really stupid question -- how can I get the release? For
example Debian has:
$ cat /etc/debian_version
lenny/sid
But I haven't found anything similar in there.
Ondrej
Here is the failing log:
http://sage.math.washington.edu/home/ondrej/log
>>
>> > <SNIP>
>>
>> >> I am actually surprised that a released Sage failed to build from
>> >> source, I've never encountered that before. :)
>>
>> >> Maybe it suggests the system is fubar.
>>
>> > :) - which OpenSuSE release is it?
>>
>> Sorry for my really stupid question -- how can I get the release? For
>> example Debian has:
>>
>> $ cat /etc/debian_version
>> lenny/sid
>>
>> But I haven't found anything similar in there.
>>
>> Ondrej
>
> Hi,
> If LSB is installed you should be able to do
>
> lsb_release -a
>
> This works on many distributions but I don't know if OpenSuSE has it
> installed by default.
Wow, great I didn't know about this command. Here is what it prints:
$ lsb_release -a
LSB Version: core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64:desktop-3.1-amd64:desktop-3.1-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch
Distributor ID: SUSE LINUX
Description: openSUSE 10.2 (X86-64)
Release: 10.2
Codename: n/a
So it seems it's opensuse 10.2.
And this is what it prints for my laptop:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux unstable (sid)
Release: unstable
Codename: sid
So it seems to work.
Ondrej
jec@host-57-71%lsb_release -a
LSB Version: core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64:desktop-3.1-amd64:desktop-3.1-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch
Distributor ID: SUSE LINUX
Description: openSUSE 10.2 (X86-64)
Release: 10.2
Codename: n/a
but I had not had time yet to test 3.0.6. I'll try that now.
John
2008/7/23 Ondrej Certik <ond...@certik.cz>:
The sage that fails for me is 3.0.5.
Ondrej
I'll try. But I am very busy too unfortunately.
BTW, you will be talking about Aldor? Man. :)
Ondrej
The following tests failed:
sage -t devel/sage/sage/groups/matrix_gps/matrix_group.py
Total time for all tests: 2716.5 seconds
Please see /home/jec/sage-3.0.6.rc0/tmp/test.log for the complete log
from this test.
But running this test by itself worked ok:
sage -t devel/sage/sage/groups/matrix_gps/matrix_group.py
[25.1 s]
----------------------------------------------------------------------
All tests passed!
So it's one of those...
John
2008/7/23 Ondrej Certik <ond...@certik.cz>:
>
Great, how was it?
Btw, we also discussed Aldor with Mateusz (sympy dev) at euroscipy,
it's pretty fast actually. But non-free, so I am not interested.
anyway, back to this bug. BTW, fails to build from source is an RC bug
in Debian. :)
I just tried sage 3.0.6 and it still fails.
binutils version:
$ ld -v
GNU ld version 2.17.50.0.5 20060927 (SUSE Linux)
then I went to spkg/standard, unpacked the gd.spkg:
/gd-2.0.33.p5
and did:
SAGE_LOCAL=~/ext/sage-3.0.6/local/ ./spkg-install
but unfortunately I got a different error:
[...]
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating config/gdlib-config
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
install: missing file operand
Try `install --help' for more information.
Error installing gd.
So I cannot even reproduce the problem above.
I also downloaded the gd-2.0.35 from:
http://www.libgd.org/releases/
and copied it to the src:
$ SAGE_LOCAL=~/ext/sage-3.0.6/local/ ./spkg-install
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
install: missing file operand
Try `install --help' for more information.
Error installing gd.
But the same problem. Then I tried the spkg gd version, unpacked it,
went to src and did:
$ SAGE_LOCAL=~/ext/sage-3.0.6/local/ ./configure
--prefix="$SAGE_LOCAL" --without-jpeg --without-x
--with-zlib="$SAGE_LOCAL" --with-freetype2="$SAGE_LOCAL"
this worked.... Then:
$ make
[...]
gcc -shared gd.lo gdfx.lo gd_security.lo gd_gd.lo gd_gd2.lo gd_io.lo
gd_io_dp.lo gd_gif_in.lo gd_gif_out.lo gd_io_file.lo gd_io_ss.lo
gd_jpeg.lo gd_png.lo gd_ss.lo gd_topal.lo gd_wbmp.lo gdcache.lo
gdfontg.lo gdfontl.lo gdfontmb.lo gdfonts.lo gdfontt.lo gdft.lo
gdhelpers.lo gdkanji.lo gdtables.lo gdxpm.lo wbmp.lo -L/usr/lib64
/usr/lib64/libXpm.so /usr/lib64/libX11.so /usr/lib64/libfontconfig.so
/usr/lib64/libfreetype.so -lz -lm -Wl,-soname -Wl,libgd.so.2 -o
.libs/libgd.so.2.0.0
gcc: /usr/lib64/libfreetype.so: No such file or directory
make[2]: *** [libgd.la] Error 1
make[2]: Leaving directory
`/home/certiko/ext/sage-3.0.6/spkg/standard/gd-2.0.33.p5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/certiko/ext/sage-3.0.6/spkg/standard/gd-2.0.33.p5/src'
make: *** [all] Error 2
Ok, finally I can reproduce the problem. So I tried gd-2.0.35,
configured, and make:
gcc -shared .libs/gd.o .libs/gdfx.o .libs/gd_security.o .libs/gd_gd.o
.libs/gd_gd2.o .libs/gd_io.o .libs/gd_io_dp.o .libs/gd_gif_in.o
.libs/gd_gif_out.o .libs/gd_io_file.o .libs/gd_io_ss.o .libs/gd_jpeg.o
.libs/gd_png.o .libs/gd_ss.o .libs/gd_topal.o .libs/gd_wbmp.o
.libs/gdcache.o .libs/gdfontg.o .libs/gdfontl.o .libs/gdfontmb.o
.libs/gdfonts.o .libs/gdfontt.o .libs/gdft.o .libs/gdhelpers.o
.libs/gdkanji.o .libs/gdtables.o .libs/gdxpm.o .libs/wbmp.o
/usr/lib64/libXpm.so /usr/lib64/libX11.so /usr/lib64/libfontconfig.so
/usr/lib64/libfreetype.so -lz -lm -Wl,-soname -Wl,libgd.so.2 -o
.libs/libgd.so.2.0.0
gcc: /usr/lib64/libfreetype.so: No such file or directory
make[2]: *** [libgd.la] Error 1
make[2]: Leaving directory
`/home/certiko/ext/sage-3.0.6/spkg/standard/gd-2.0.33.p5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/certiko/ext/sage-3.0.6/spkg/standard/gd-2.0.33.p5/src'
make: *** [all] Error 2
Same problem. I hate compilation problems. Anyway, so I dug deeper why
it fails. This may help:
$ ls -l /usr/lib64/libfreetype.*
-rw-r--r-- 1 root root 699144 2006-11-25 12:41 /usr/lib64/libfreetype.a
-rw-r--r-- 1 root root 822 2006-11-25 12:41 /usr/lib64/libfreetype.la
lrwxrwxrwx 1 root root 21 2007-11-05 20:13
/usr/lib64/libfreetype.so -> libfreetype.so.6.3.10
lrwxrwxrwx 1 root root 21 2007-09-13 20:00
/usr/lib64/libfreetype.so.6 -> libfreetype.so.6.3.16
-rwxr-xr-x 1 root root 513760 2007-07-25 20:57 /usr/lib64/libfreetype.so.6.3.16
The link /usr/lib64/libfreetype.so is broken, there is no libfreetype.so.6.3.10:
$ ls -l /usr/lib64/libfreetype.so.6.3.10
ls: cannot access /usr/lib64/libfreetype.so.6.3.10: No such file or directory
However, in README.txt:
LINUX (install these using your package manager):
gcc, g++, make, m4, perl, ranlib, and tar.
so you should either specify working freetype on the system, or get
this fixed in Sage.
Then I got really angry that I spent an hour with this stupid bug with
no progress whatsoever, so I did:
$ ./configure --help
and there was no mention of --with-freetype2, however there was a
mention of --with-freetype, so I did:
$ SAGE_LOCAL=~/ext/sage-3.0.6/local/ ./configure
--prefix="$SAGE_LOCAL" --without-jpeg --without-x
--with-zlib="$SAGE_LOCAL" --with-freetype="$SAGE_LOCAL"
$ make
and it worked! Ok, then I tried the gd in Sage and that didn't work,
even with --with-freetype.
Anyway, so I hope I gave you enough info to get this fixed.
Why is the spkg-install not working?
Ondrej
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/libfreetype.a(ftinit.o): relocation R_X86_64_32 against
`tt_driver_class' can not be used when making a shared object;
recompile with -fPIC
/usr/lib64/libfreetype.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/libfreetype.a(ftinit.o): relocation R_X86_64_32 against
`tt_driver_class' can not be used when making a shared object;
recompile with -fPIC
/usr/lib64/libfreetype.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
error: Command "g++ -pthread -shared
build/temp.linux-x86_64-2.5/src/ft2font.o
build/temp.linux-x86_64-2.5/src/mplutils.o
build/temp.linux-x86_64-2.5/CXX/cxxsupport.o
build/temp.linux-x86_64-2.5/CXX/IndirectPythonInterface.o
build/temp.linux-x86_64-2.5/CXX/cxx_extensions.o
build/temp.linux-x86_64-2.5/CXX/cxxextensions.o -L/usr/local/lib
-L/usr/lib -L/usr/local/lib64 -L/usr/lib64
-L/home/certiko/ext/sage-3.0.6/local/lib/ -lfreetype -lz -lstdc++ -lm
-o build/lib.linux-x86_64-2.5/matplotlib/ft2font.so" failed with exit
status 1
Error building matplotlib package.
real 0m15.927s
user 0m10.577s
sys 0m1.144s
sage: An error occurred while installing matplotlib-0.91.1.p5
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /home/certiko/ext/sage-3.0.6/install.log. Describe your computer,
operating system, etc.
If you want to try to fix the problem, yourself *don't* just cd to
/home/certiko/ext/sage-3.0.6/spkg/build/matplotlib-0.91.1.p5 and type 'make'.
Instead type "/home/certiko/ext/sage-3.0.6/sage -sh"
in order to set all environment variables correctly, then cd to
/home/certiko/ext/sage-3.0.6/spkg/build/matplotlib-0.91.1.p5
(When you are done debugging, you can type "exit" to leave the
subshell.)
make[1]: *** [installed/matplotlib-0.91.1.p5] Error 1
make[1]: Leaving directory `/home/certiko/ext/sage-3.0.6/spkg'
real 32m56.225s
user 17m25.249s
sys 4m51.750s
certiko@thsun32:~/ext/sage-3.0.6$
So I am giving up, that's too many failures to my taste. What is the
problem with the freetype?
Ondrej
Ok, that worked, thanks.
>> However, in README.txt:
>>
>> LINUX (install these using your package manager):
>> gcc, g++, make, m4, perl, ranlib, and tar.
>>
>> so you should either specify working freetype on the system, or get
>> this fixed in Sage.
>
> We are shipping freetype-2.3.5, so no need to depend on the system
> one.
That's what I think too. So it should not pick up the system one,
especially when it is broken and I have no means to fix it, since I
don't have root rights.
>
>> Then I got really angry that I spent an hour with this stupid bug with
>> no progress whatsoever, so I did:
>>
>> $ ./configure --help
>>
>> and there was no mention of --with-freetype2, however there was a
>> mention of --with-freetype, so I did:
>>
>> $ SAGE_LOCAL=~/ext/sage-3.0.6/local/ ./configure
>> --prefix="$SAGE_LOCAL" --without-jpeg --without-x
>> --with-zlib="$SAGE_LOCAL" --with-freetype="$SAGE_LOCAL"
>> $ make
>>
>> and it worked! Ok, then I tried the gd in Sage and that didn't work,
>> even with --with-freetype.
>>
>> Anyway, so I hope I gave you enough info to get this fixed.
>>
>> Why is the spkg-install not working?
The spkg-install started to work when I used "sage -sh".
>
> Your system seems to be some odd mutli arch setup and pick libs in /
> usr/lib64. I have no clue why it would do so, but we routinely build
> on various OpenSUSE releases and we have never seen anything like the
> above.
It's fubar, as always. But I don't care, that's the box I have, I
don't have root rights, and it has the basic utilities, so sage should
imho just built.
But did you look at my fix in the other email? I think the problem is
that you test Sage in either of the two scenarios:
1) no systemwide freetype
2) working systemwide freetype
Unfortunately, my case is:
3) broken systemwide freetype
Is sage supposed to work in the case 3)?
debugging the freetype in matplotlib, try for example this:
add:
print_message(
"WARNING: Could not find 'freetype2' headers in any of %s." %
", ".join(["'%s'" % x for x in module.include_dirs]))
stop
in patches/setupext.py and then you'll see:
freetype2: 9.10.3
* WARNING: Could not find 'freetype2' headers in any
* of '/usr/local/include', '/usr/include', '.',
* '/home/certiko/ext/sage-3.0.6/local/include/',
* '/usr/include/freetype2'.
so the sage include path is after the systemwide. BTW I have
/usr/include/freetype and /usr/include/freetype2. So now I just need
to figure out how to fix it to pickup sage freetype.so, not the broken
systemwide.
Ondrej
Any ideas on this? To repeat the problem: there is a broken systemwide
freetype library on that system and Sage is picking it, but it
shouldn't. In particular, the "gd" package is picking it and I fixed
that above, and the "matplotlib" package is picking it, but that I
haven't yet figure out how to fix.
Is Sage supposed to work on such a system?
Ondrej
If you can make it work, we would be happy to integrate whatever you
did to make it work into sage. You might want to immediately ask
on the matplotlib list how to make sure that matplotlib doesn't pick
up a system-wide broken freetype library, or write to the main matplotlib
author.
William
Ok, I'll try to make it work if I find time and send patches.
Thanks,
Ondrej
That's a good general statement. However, I think Ondrej is specifically
refereeing to Sage's matplotlib build linking in the system-wide
freetype instead of the freetype included in Sage. This is probably
a bug in matplotlib's build system or a mistake in how we use it.
If so, it would be great to fix it.
-- William
I'll ask my adviser if I can let you login to see this for yourself.
My clean build problem is reported above, it fails for gd, and how to
fix it is there too. It's imho a bug in Sage. As to matplotlib, which
breaks later (if you fix gd), I don't know yet.
Ondrej
So I fixed the matplotlib too. You need to fix the
patches/setupext.py, the dict "basedir" to contain:
'linux2' : [sage_lib],
And it will pickup the Sage libs, instead of the systemwide. This
makes Sage compilation proceed further, unfortunately the server net
connection seems to be bad today, so I cannot finish the compilation
now. But anyway, the "gd" and "matplotlib" package are fixed by the
changes I described in this thread. Do you think these changes could
please go to the default Sage install?
Let's see if there are more changes needed.
Ondrej
Yes, definitely! Make a trac ticket and put everything above in the
ticket.
Thanks!
William
Need to go now, but I fortunately had it running in screen, so Sage
compilation finished in 80 min while the net was down. :)
And it works. Which is great. I then used "sage -hg" to install my
project. Thanks to Sage, I'll be able to move somewhere and overcome
the broken opensuse install.
Ondrej
Could you please reset me the password to the trac? I forgot my
password, fortunately my browser remembered it, but today he lost it.
So I cannot login in the trac anymore. Is there some way to tell the
trac to send me a new password to my email? I haven't figured it out.
Thanks,
Ondrej
I updated the ticket with the spkgs, that are known to work for me
with sage 3.0.6. Let me know if you need anything else to get this
fixed.
Ondrej