On Dec 20, 2007 10:44 AM, noo <[EMAIL PROTECTED]> wrote:
>
> Hi,
> First two attempts to build sage failed.
> One on Ubuntu 7.10 with a gcc (4.1.3) internal error.
> Other on RHEL4 due to malformed config.h in spkg/build/ntl-5.4.1.p9/
> src/src/.
> Details below FYI.
> Best wishes in this effort.
>
> _________________________________________________________________________________________________
> (1) Ubuntu 7.10
> Intel Pentium M Processor 1.86GHz
> $ uname -a
> Linux compname 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007
> i686 GNU/Linux
>
> $ g++ --version
> g++ (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
> Copyright (C) 2006 Free Software Foundation, Inc.
>
> From install.log:
>
> g++ -DPACKAGE_NAME=\"liblinboxwrap\" -DPACKAGE_TARNAME=\"liblinboxwrap
> \" -DPACKAGE_VERSION=\"0.0.1\" "-DPACKAGE_STRING=\"liblinboxwrap
> 0.0.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"liblinboxwrap\" -
> DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -
> DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
> DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -
> DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -
> DHAVE_BLAS=1 -I. -g -I/home/lastname/downloads/sage-2.9/local/include/
> linbox -I/home/lastname/downloads/sage-2.9/local/include -g -fPIC -I/
> home/lastname/downloads/sage-2.9/local/include -I/home/lastname/
> downloads/sage-2.9/local/include/linbox -L/home/lastname/downloads/
> sage-2.9/local/lib -MT linbox_wrap.lo -MD -MP -MF .deps/
> linbox_wrap.Tpo -c src/linbox_wrap.cpp  -fPIC -DPIC -o .libs/
> linbox_wrap.o
> g++: Internal error: Killed (program cc1plus)


That makes it a GCC bug.  You should upgrade or downgrade
your version of GCC.  Currently you are using "g++ (GCC) 4.1.3
20070929 (prerelease)", i.e. a prerelease version of GCC, i.e., one
that is
very *likely* to have bugs.

I regularly build sage on ubuntu 7.10 using GCC-4.1.2.

> Please submit a full bug report.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> For Debian GNU/Linux specific bug reporting instructions, see
> <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
>
> make[2]: *** [linbox_wrap.lo] Error 1
> make[2]: Leaving directory `/data/home/lastname/downloads/sage-2.9/
> spkg/build/linbox-20070915.p3/linbox_wrap'
> Error installing linboxwrap
>

_____________________________________________________________________________________________
> (2) RedHat Enterprise Linux 4
> $ uname -a
> Linux compname 2.6.9-67.EL #1 Wed Nov 7 13:41:13 EST 2007 i686 i686
> i386 GNU/Linux
> $ cat /proc/cpuinfo
> model name      : Intel(R) Pentium(R) 4 CPU 2.93GHz
>
> $ g++ --version
> g++ (GCC) 4.2.1
>
> $ perl -v
> This is perl, v5.8.5 built for i386-linux-thread-multi
>
> NTL/config.h has lines that say just "#if".

This looks like something going wrong with the ntl auto-tuning code.
I regularly build sage on RHEL 4 also, I think using GCC-4.2.1,
so I don't know what is going wrong here.  We can easily
make a version of the ntl spkg that doesn't do tuning for you
as a test.   Anyway, please post a link to the install.log for that
RHEL build.

> From install.log, many errors like this:
>
> In file included from GetTime5.c:1:
> ../include/NTL/config.h:57:5: error: #if with no expression
> ../include/NTL/config.h:88:5: error: #if with no expression
> [similar lines]
> ../include/NTL/config.h:306:7: error: #if with no expression
> some thing is wrong...
> make[3]: *** [setup2] Error 1
> make[3]: Leaving directory `/orange1/lastname/downloads/sage-2.9/spkg/
> build/ntl-5.4.1.p9/src/src'
> make[2]: *** [lib] Error 2
> make[2]: Leaving directory `/orange1/lastname/downloads/sage-2.9/spkg/
> build/ntl-5.4.1.p9/src/src'
> Error creating ntl shared library.
>
> real    0m40.531s
> user    0m30.030s
> sys     0m1.977s
> sage: An error occurred while installing ntl-5.4.1.p9
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to