Failure to compile mpir on Centos 3

7 views
Skip to first unread message

Johann "Myrkraverk" Oskarsson

unread,
Sep 5, 2009, 3:59:17 PM9/5/09
to sage-s...@googlegroups.com
Hello all,

I hope this is the right place to ask. My system is:

# uname -a
Linux xianghua 2.4.21 BrandZ fake linux i686 i686 i386 GNU/Linux

# gcc --version
gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-59)

# as --version
GNU assembler 2.14.90.0.4 20030523

# cat /etc/redhat-release
CentOS release 3.9 (Final)

And sage fails to compile with:

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
-DOPERATION_hgcd -m32 -O2 -fomit-frame-pointer -mcpu=pentiumpro
-march=nocona -c hgcd.c -fPIC -DPIC -o .libs/hgcd.o
/tmp/ccwTmB2V.s: Assembler messages:
/tmp/ccwTmB2V.s:56: Error: suffix or operands invalid for `movd'
/tmp/ccwTmB2V.s:74: Error: suffix or operands invalid for `movd'

The assembler chokes on

movd %xmm1, %xmm0

movd %xmm1, %xmm0

respectively. The source file is in sage-4.1.1/spkg/build/mpir-1.2.p4/src/mpn.

Is there anything I might be able to do, to fix this?

Yes, I know I'm using an outdated Centos, it's an lx zone on my
solaris, and it's installed from an image from opensolaris.org.
Upgrading to a newer linux distro is possible, but 2.6 emulation is
not complete.


Johann

William Stein

unread,
Sep 5, 2009, 5:57:08 PM9/5/09
to sage-s...@googlegroups.com
On Sat, Sep 5, 2009 at 12:59 PM, Johann "Myrkraverk"
Oskarsson<joh...@myrkraverk.com> wrote:
>
> Hello all,
>
> I hope this is the right place to ask.  My system is:
>
> # uname -a
> Linux xianghua 2.4.21 BrandZ fake linux i686 i686 i386 GNU/Linux
>
> # gcc --version
> gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-59)

Sage requires GCC 4.x, so you're already out of luck with that GCC version.

William

>
> # as --version
> GNU assembler 2.14.90.0.4 20030523
>
> # cat /etc/redhat-release
> CentOS release 3.9 (Final)
>
> And sage fails to compile with:
>
>  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
> -DOPERATION_hgcd -m32 -O2 -fomit-frame-pointer -mcpu=pentiumpro
> -march=nocona -c hgcd.c  -fPIC -DPIC -o .libs/hgcd.o
> /tmp/ccwTmB2V.s: Assembler messages:
> /tmp/ccwTmB2V.s:56: Error: suffix or operands invalid for `movd'
> /tmp/ccwTmB2V.s:74: Error: suffix or operands invalid for `movd'
>
> The assembler chokes on
>
>        movd    %xmm1, %xmm0
>
>        movd    %xmm1, %xmm0
>
> respectively.  The source file is in sage-4.1.1/spkg/build/mpir-1.2.p4/src/mpn.
>
> Is there anything I might be able to do, to fix this?
>
> Yes, I know I'm using an outdated Centos, it's an lx zone on my
> solaris, and it's installed from an image from opensolaris.org.
> Upgrading to a newer linux distro is possible, but 2.6 emulation is
> not complete.
>
>
> Johann
>
> >
>



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

Johann "Myrkraverk" Oskarsson

unread,
Sep 5, 2009, 6:41:45 PM9/5/09
to sage-s...@googlegroups.com
On Sat, Sep 5, 2009 at 9:57 PM, William Stein<wst...@gmail.com> wrote:
>
> On Sat, Sep 5, 2009 at 12:59 PM, Johann "Myrkraverk"
> Oskarsson<joh...@myrkraverk.com> wrote:
>>
>> Hello all,
>>
>> I hope this is the right place to ask.  My system is:
>>
>> # uname -a
>> Linux xianghua 2.4.21 BrandZ fake linux i686 i686 i386 GNU/Linux
>>
>> # gcc --version
>> gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-59)
>
> Sage requires GCC 4.x, so you're already out of luck with that GCC version.

Then please change the following in README.txt:

SUPPORTED COMPILERS:
* Sage builds with GCC >= 3.x and GCC >= 4.1.x.
* Sage will not build with GCC 2.9.x.
* WARNING: Don't build with GCC 4.0.0, which is very buggy.
* Sage has never been built without using GCC compiler.

Though I doupt my issue (below) has anything to do with the version of
GCC, but the assember, as.


Johann

Message has been deleted
Message has been deleted

William Stein

unread,
Sep 6, 2009, 12:21:37 AM9/6/09
to sage-s...@googlegroups.com
On Sat, Sep 5, 2009 at 8:42 PM, Minh Nguyen<nguye...@gmail.com> wrote:
>
> On Sun, Sep 6, 2009 at 12:53 PM, Minh Nguyen<nguye...@gmail.com> wrote:
>
> <SNIP>
>
>> This is now ticket #6896
>>
>> http://trac.sagemath.org/sage_trac/ticket/6896
>
> I have uploaded an updated README.txt. Care to review that ticket?
>

I suggested a little change.

William

Johann "Myrkraverk" Oskarsson

unread,
Sep 6, 2009, 6:53:02 PM9/6/09
to sage-s...@googlegroups.com
Hi all,

On Sun, Sep 6, 2009 at 4:21 AM, William Stein<wst...@gmail.com> wrote:

> I suggested a little change.

I've submitted, what I believe to be minimal changes to that text.
Might be clearer, if it works to compile with GCC, 4.0.x, but I'm not
in a position to try that now (or at all), and it shouldn't be said if
it's not "known" to work.


Johann

William Stein

unread,
Sep 6, 2009, 10:08:13 PM9/6/09
to sage-s...@googlegroups.com

Very nice. I like what you put.

William

Reply all
Reply to author
Forward
0 new messages