#12765: MPIR doesn't compile with GCC-4.7.0 on ia64
------------------------------------------------------------------+---------
       Reporter:  jdemeyer                                        |         
Owner:  tbd                           
           Type:  defect                                          |        
Status:  closed                        
       Priority:  major                                           |     
Milestone:  sage-duplicate/invalid/wontfix
      Component:  packages                                        |    
Resolution:  duplicate                     
       Keywords:                                                  |   Work 
issues:                                
Report Upstream:  Reported upstream. Developers acknowledge bug.  |     
Reviewers:  Jeroen Demeyer                
        Authors:                                                  |     Merged 
in:                                
   Dependencies:                                                  |      
Stopgaps:                                
------------------------------------------------------------------+---------
Changes (by jdemeyer):

  * status:  new => closed
  * reviewer:  => Jeroen Demeyer
  * resolution:  => duplicate
  * milestone:  sage-5.0 => sage-duplicate/invalid/wontfix


Old description:

> On Skynet iras (SUSE ES10 ia64):
> {{{
> Host system:
> Linux iras 2.6.16.46-0.12-default #1 SMP Thu May 17 14:00:09 UTC 2007
> ia64 ia64 ia64 GNU/Linux
> ****************************************************
> C compiler: gcc
> C compiler version:
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/local/gcc-4.7.0/ia64-Linux-suse/libexec/gcc/ia64
> -unknown-linux-gnu/4.7.0/lto-wrapper
> Target: ia64-unknown-linux-gnu
> Configured with: /usr/local/gcc-4.7.0/src/gcc-4.7.0/configure --enable-
> languages=c,c++,fortran --with-gnu-as --with-as=/usr/local/binutils
> -2.22/ia64-Linux-suse-gcc-4.6.2/bin/as --with-gnu-ld --with-
> ld=/usr/local/binutils-2.22/ia64-Linux-suse-gcc-4.6.2/bin/ld --with-
> gmp=/usr/l
> ocal/mpir-2.5.1/ia64-Linux-suse-gcc-4.6.2 --with-
> mpfr=/usr/local/mpfr-3.1.0/ia64-Linux-suse-mpir-2.5.1-gcc-4.6.2 --with-
> mpc=/usr/local/mpc
> -0.9/ia64-Linux-suse-mpir-2.5.1-mpfr-3.1.0-gcc-4.6.2
> --prefix=/usr/local/gcc-4.7.0/ia64-Linux-suse
> Thread model: posix
> gcc version 4.7.0 (GCC)
> ****************************************************
> Your compiler does not support '-m32' nor '-m64'.  Leaving ABI unset.
> Checking what CFLAGS MPIR would use if they were empty...
> Settings chosen by MPIR when configuring with CFLAGS unset:
>   CC:      gcc
>   CFLAGS:  -O2
> Settings required to properly build MPIR, taking into account SAGE_DEBUG
> etc.:
>   CFLAGS:
>   LDFLAGS:  -Wl,-z,noexecstack
>   ABI:
> Settings from the "global" environment:
>   CC:      gcc
>   CFLAGS:
>   (CPPFLAGS, CXX and CXXFLAGS are listed below; these don't get
> modified.)
> Using MPIR's settings (plus mandatory ones).
> Finally using the following settings:
>   CC=gcc
>   CFLAGS=-O2
>   CPPFLAGS=
>   CXX=g++
>   CXXFLAGS=
>   LDFLAGS= -Wl,-z,noexecstack
>   ABI=
> (These settings may still get overridden by 'configure' or Makefiles.)
> Configuring MPIR with the following options:
>     --prefix="/home/jdemeyer/iras/sage-5.0.beta8-gcc/local" --enable-
> shared --enable-static --enable-gmpcompat --enable-cxx=yes --libdir=/
> home/jdemeyer/iras/sage-5.0.beta8-gcc/local/lib
> [...]
> /bin/sh ../libtool --tag=CC   --mode=compile gcc -std=gnu99
> -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo
> divrem_eucl
> idean_r_1 | sed 's/_$//'`    -O2   -c -o divrem_euclidean_r_1.lo
> divrem_euclidean_r_1.c
>  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I..
> -DOPERATION_divrem_euclidean_r_1 -O2 -c divrem_euclidean_r_1.c  -fPIC -DP
> IC -o .libs/divrem_euclidean_r_1.o
> divrem_euclidean_r_1.c: In function '__gmpn_mod_1_k':
> divrem_euclidean_r_1.c:157:5: error: 'asm' operand requires impossible
> reload
> make[2]: *** [divrem_euclidean_r_1.lo] Error 1
> make[2]: Leaving directory
> `/home/jdemeyer/iras/sage-5.0.beta8-gcc/spkg/build/mpir-2.1.3.p9/src/mpn'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/home/jdemeyer/iras/sage-5.0.beta8-gcc/spkg/build/mpir-2.1.3.p9/src'
> make: *** [all] Error 2
> Error building MPIR.
> }}}
>
> This is likely a GCC bug, see
> [http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48496]
>
> See #12751 for the GCC-4.7.0 metaticket.

New description:

 On Skynet iras (SUSE ES10 ia64):
 {{{
 Host system:
 Linux iras 2.6.16.46-0.12-default #1 SMP Thu May 17 14:00:09 UTC 2007 ia64
 ia64 ia64 GNU/Linux
 ****************************************************
 C compiler: gcc
 C compiler version:
 Using built-in specs.
 COLLECT_GCC=gcc
 COLLECT_LTO_WRAPPER=/usr/local/gcc-4.7.0/ia64-Linux-suse/libexec/gcc/ia64
 -unknown-linux-gnu/4.7.0/lto-wrapper
 Target: ia64-unknown-linux-gnu
 Configured with: /usr/local/gcc-4.7.0/src/gcc-4.7.0/configure --enable-
 languages=c,c++,fortran --with-gnu-as --with-as=/usr/local/binutils
 -2.22/ia64-Linux-suse-gcc-4.6.2/bin/as --with-gnu-ld --with-
 ld=/usr/local/binutils-2.22/ia64-Linux-suse-gcc-4.6.2/bin/ld --with-
 gmp=/usr/l
 ocal/mpir-2.5.1/ia64-Linux-suse-gcc-4.6.2 --with-
 mpfr=/usr/local/mpfr-3.1.0/ia64-Linux-suse-mpir-2.5.1-gcc-4.6.2 --with-
 mpc=/usr/local/mpc
 -0.9/ia64-Linux-suse-mpir-2.5.1-mpfr-3.1.0-gcc-4.6.2
 --prefix=/usr/local/gcc-4.7.0/ia64-Linux-suse
 Thread model: posix
 gcc version 4.7.0 (GCC)
 ****************************************************
 Your compiler does not support '-m32' nor '-m64'.  Leaving ABI unset.
 Checking what CFLAGS MPIR would use if they were empty...
 Settings chosen by MPIR when configuring with CFLAGS unset:
   CC:      gcc
   CFLAGS:  -O2
 Settings required to properly build MPIR, taking into account SAGE_DEBUG
 etc.:
   CFLAGS:
   LDFLAGS:  -Wl,-z,noexecstack
   ABI:
 Settings from the "global" environment:
   CC:      gcc
   CFLAGS:
   (CPPFLAGS, CXX and CXXFLAGS are listed below; these don't get modified.)
 Using MPIR's settings (plus mandatory ones).
 Finally using the following settings:
   CC=gcc
   CFLAGS=-O2
   CPPFLAGS=
   CXX=g++
   CXXFLAGS=
   LDFLAGS= -Wl,-z,noexecstack
   ABI=
 (These settings may still get overridden by 'configure' or Makefiles.)
 Configuring MPIR with the following options:
     --prefix="/home/jdemeyer/iras/sage-5.0.beta8-gcc/local" --enable-
 shared --enable-static --enable-gmpcompat --enable-cxx=yes --libdir=/
 home/jdemeyer/iras/sage-5.0.beta8-gcc/local/lib
 [...]
 /bin/sh ../libtool --tag=CC   --mode=compile gcc -std=gnu99
 -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo
 divrem_eucl
 idean_r_1 | sed 's/_$//'`    -O2   -c -o divrem_euclidean_r_1.lo
 divrem_euclidean_r_1.c
  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I..
 -DOPERATION_divrem_euclidean_r_1 -O2 -c divrem_euclidean_r_1.c  -fPIC -DP
 IC -o .libs/divrem_euclidean_r_1.o
 divrem_euclidean_r_1.c: In function '__gmpn_mod_1_k':
 divrem_euclidean_r_1.c:157:5: error: 'asm' operand requires impossible
 reload
 make[2]: *** [divrem_euclidean_r_1.lo] Error 1
 make[2]: Leaving directory
 `/home/jdemeyer/iras/sage-5.0.beta8-gcc/spkg/build/mpir-2.1.3.p9/src/mpn'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/home/jdemeyer/iras/sage-5.0.beta8-gcc/spkg/build/mpir-2.1.3.p9/src'
 make: *** [all] Error 2
 Error building MPIR.
 }}}

 This is likely a GCC bug, see
 [http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48496]

 There is a work-around (by essentially disabling all optimization) spkg at
 #11616.

 See #12751 for the GCC-4.7.0 metaticket.

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12765#comment:22>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to