On Tue, Oct 20, 2009 at 2:59 PM, abaco68 <teofil...@gmail.com> wrote:
>
> No it is just a naming (intel-architecture 32bit). I use gcc 4.2.2
> 32bit on SUSE linux 64bit on a AMD Opteron x86_64 workstation,
> I also tried sage-4.1.1 and sage-4.0.2 and they can configure and
> compile mpir but fail at the link stage then.
> Is it maybe that mix that causes troubles.

I'm sure it is the mix that causes the trouble. You should build using
a 64-bit compiler.

 -- William

>
> Thank you anyway for the comments
>
> Regards
>
> Giovanni
>
> On Oct 20, 7:19 pm, William Stein <wst...@gmail.com> wrote:
>> On Tue, Oct 20, 2009 at 3:37 AM, abaco68 <teofil...@gmail.com> wrote:
>>
>> > I am trying to build sage-4.1.2 on Linux from the archive
>> > sage-4.1.2.tar.
>>
>> > The system is:
>> > SUSE Linux 9.3 64bit
>> > kernel 2.6.11.4-20a-smp
>> > gcc / g++  4.2.2
>>
>> >  The build fails to configure and build the package mpir-1.2.p7, the
>> > install.log says
>>
>> > CC Version
>> > /project/toolchest/linux_ia32/glibc232/gcc-422/bin/gcc -v
>> > Using built-in specs.
>> > Target: i686-pc-linux-gnu
>> > Configured with: /project/toolchest/linux_ia32/glibc232/gcc-4.2.2/
>> > configure --with-mpfr=/project/toolchest/linux_ia32/glibc232/
>> > mpfr-2.3.0 --enable-languages=c,c++,fortran --prefix=/project/
>> > toolchest/linux_ia32/glibc232/gcc-422 : (reconfigured) /project/
>> > toolchest/linux_ia32/glibc232/gcc-4.2.2/configure --with-mpfr=/project/
>> > toolchest/linux_ia32/glibc232/mpfr-2.3.0 --enable-languages=c,c+
>> > +,fortran --prefix=/project/toolchest/linux_ia32/glibc232/gcc-422 --
>> > enable-threads --with-as=/project/toolchest/linux_ia32/glibc232/
>> > binutils-2.17/bin/as --with-ld=/project/toolchest/linux_ia32/glibc232/
>> > binutils-2.17/bin/ld
>> > Thread model: posix
>> > gcc version 4.2.2
>> > ****************************************************
>> > checking build system type... k8-unknown-linux-gnu
>> > checking host system type... k8-unknown-linux-gnu
>> > checking for a BSD-compatible install... /usr/bin/install -c
>> > checking whether build environment is sane... yes
>> > checking for gawk... gawk
>> > checking whether make sets $(MAKE)... yes
>> > checking whether to enable maintainer-specific portions of
>> > Makefiles... no
>> > checking ABI=64
>> > checking compiler /project/toolchest/linux_ia32/glibc232/gcc-422/bin/
>> > gcc -O2 ... yes
>> > checking for gcc... /project/toolchest/linux_ia32/glibc232/gcc-422/bin/
>> > gcc
>> > checking for C compiler default output file name... a.out
>> > checking whether the C compiler works... yes
>> > checking whether we are cross compiling... no
>> > checking for suffix of executables...
>> > checking for suffix of object files... o
>> > checking whether we are using the GNU C compiler... yes
>> > checking whether /project/toolchest/linux_ia32/glibc232/gcc-422/bin/
>> > gcc accepts -g... yes
>> > checking for /project/toolchest/linux_ia32/glibc232/gcc-422/bin/gcc
>> > option to accept ISO C89... none needed
>> > checking for /project/toolchest/linux_ia32/glibc232/gcc-422/bin/gcc
>> > option to accept ISO C99... -std=gnu99
>> > checking for /project/toolchest/linux_ia32/glibc232/gcc-422/bin/gcc -
>> > std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
>> > checking how to run the C preprocessor... /project/toolchest/
>> > linux_ia32/glibc232/gcc-422/bin/gcc -std=gnu99 -E
>> > checking build system compiler /project/toolchest/linux_ia32/glibc232/
>> > gcc-422/bin/gcc -std=gnu99... yes
>> > checking for build system preprocessor... /project/toolchest/
>> > linux_ia32/glibc232/gcc-422/bin/gcc -std=gnu99 -E
>> > checking for build system executable suffix...
>> > checking whether build system compiler is ANSI... yes
>> > checking for build system compiler math library... -lm
>> > checking whether we are using the GNU C++ compiler... yes
>> > checking whether /project/toolchest/linux_ia32/glibc232/gcc-422/bin/g+
>> > + accepts -g... yes
>> > checking C++ compiler /project/toolchest/linux_ia32/glibc232/gcc-422/
>> > bin/g++  -O2... no, program does not run
>> > configure: error: C++ compiler not available, see config.log for
>> > details
>> > Failed to configure.
>>
>> >      A closer look at the file SAGE_ROOT/spkg/build/mpir-1.2.p7/src/
>> > config.log shows the following error
>>
>> > configure:8051: checking for /project/toolchest/linux_ia32/glibc232/
>> > gcc-422/bin/gcc option to accept ISO C99
>> > configure:8210: /project/toolchest/linux_ia32/glibc232/gcc-422/bin/
>> > gcc  -c -O2  conftest.c >&5
>> > conftest.c:65: error: expected ';', ',' or ')' before 'text'
>> > conftest.c: In function 'main':
>> > conftest.c:119: error: expected '=', ',', ';', 'asm' or
>> > '__attribute__' before 'newvar'
>> > conftest.c:119: error: 'newvar' undeclared (first use in this
>> > function)
>> > conftest.c:119: error: (Each undeclared identifier is reported only
>> > once
>> > conftest.c:119: error: for each function it appears in.)
>> > conftest.c:129: error: 'for' loop initial declaration used outside C99
>> > mode
>> > configure:8216: $? = 1
>> > .....
>>
>> >              and then
>>
>> > .....
>> > configure:8210: /project/toolchest/linux_ia32/glibc232/gcc-422/bin/gcc
>> > -std=gnu99 -c -O2  conftest.c >&5
>> > configure:8216: $? = 0
>> > configure:8246: result: -std=gnu99
>> > configure:8376: checking for /project/toolchest/linux_ia32/glibc232/
>> > gcc-422/bin/gcc -std=gnu99 option to accept ISO Standard C
>> > configure:8387: result: -std=gnu99
>> > configure:8397: checking how to run the C preprocessor
>> > configure:8437: /project/toolchest/linux_ia32/glibc232/gcc-422/bin/gcc
>> > -std=gnu99 -E  conftest.c
>> > configure:8443: $? = 0
>> > configure:8474: /project/toolchest/linux_ia32/glibc232/gcc-422/bin/gcc
>> > -std=gnu99 -E  conftest.c
>> > conftest.c:15:28: error: ac_nonexistent.h: No such file or directory
>> > configure:8480: $? = 1
>> > ....
>>
>> > and then a few more that I think are consequence of the first two.
>>
>> > Many thanks in advance for any help
>>
>> > Kind regards
>>
>> > Giovanni Sartoni
>>
>> Are you using an *ITANIUM*?   I see "/linux_ia32" above.   If so, use
>> sage-4.1.1 instead.  There were several packages included in
>> sage-4.1.2 which broke support for Itanium.
>>
>>  -- William
> >
>



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

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to