Opened 14 years ago

Closed 14 years ago

#908 closed defect (fixed)

pari/gen.c causes internal compiler error on OpenSuSE 10.2

Reported by: wdj Owned by: was
Priority: major Milestone: sage-2.8.11
Component: distribution Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by mabshoff)

When building 2.8.7 on suse 10.2 amd64:

> -I/home/wdj/sagefiles/sage-2.8.7/local/include/python2.5 -c
> sage/libs/pari/gen.c -o
> build/temp.linux-x86_64-2.5/sage/libs/pari/gen.o -w
> sage/libs/pari/gen.c: In function '__pyx_f_py_3gen_3gen_factor':
> sage/libs/pari/gen.c:19784: internal compiler error: in
> merge_alias_info, at tree-ssa-copy.c:235
> Please submit a full bug report,
> with preprocessed source if appropriate.

"gcc blows up ..."

wdj@tinah:~/sagefiles/sage-2.8.7> uname -a
Linux tinah #1 Wed May 3 04:53:23 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux
wdj@tinah:~/sagefiles/sage-2.8.7> 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,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.0 --enable-ssp --disable-libssp --enable-java-awt=gtk --enable-gtk-cairo --disable-libjava-multilib --with-slibdir=/lib64 --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --without-system-libunwind --with-cpu=generic --host=x86_64-suse-linux
Thread model: posix
gcc version 4.1.0 (SUSE Linux)

Change History (6)

comment:1 Changed 14 years ago by mabshoff

  • Description modified (diff)

comment:2 Changed 14 years ago by mabshoff

It is a known regression. See

I think there is little we can do except to recommend upgrading to a proper compiler.



comment:3 Changed 14 years ago by was

  • Summary changed from paru/gen.c causes internal compiler error on OpenSuSE 10.2 to pari/gen.c causes internal compiler error on OpenSuSE 10.2

I disagree that the only solution is to recommend a proper compiler. We're not the GMP project after all.

Sage-2.8.5 compiled fine on SUSE, so this problem only occurs with a very recent version of gen.pyx. I recently modified the factor function in gen.pyx so that it would do provably-correct factorization of integers. Since that's the function causing the compiler error, probably something I did caused this.

I'll likely make some attempts to modify my implementation to see if I can get around the broken compilers on SUSE.

-- William

comment:4 Changed 14 years ago by was

  • Owner changed from mabshoff to was
  • Status changed from new to assigned

comment:5 Changed 14 years ago by mabshoff

Well, that remark about GMP is just priceless 8).

If you find a workaround that should solve this problem I am obviously fine with it, but recently we have seen more and more issues with gcc throwing in the towel, so I still think that the internal tool chain for Sage has its purpose. And we pretty much agree that this is the only way to go on Solaris, Linux Itanium and so on.



comment:6 Changed 14 years ago by mabshoff

  • Milestone changed from sage-2.9 to sage-2.8.11
  • Resolution set to fixed
  • Status changed from assigned to closed


good news for SuSE 10.2 user:

[09:33] <Syzygy-> Hmph. I cannot get yast to tell me what the g77-package is named. *grmbl*
[09:33] <mabshoff> Which SuSE release?
[09:34] <mabshoff> Hi malb__
[09:34] <malb__> hi
[09:34] <mabshoff> You should probably install gfortran
[09:34] <mabshoff> 10.3 no longer ships g77 or g95, but gfortran.
[09:34] <Syzygy-> OpenSuSE 10.2
[09:34] <Syzygy-> Right.
[09:35] <mabshoff> Really? There is a bug in that gcc that crashes when compiling gen.c
[09:35] <mabshoff> Does Sage start and compute 2+2?
[09:35] <Syzygy-> Yes.
[09:35] <mabshoff> ok, but then you probably update via yast.
[09:35] <Syzygy-> gcc version 4.1.2 20061115 (prerelease) (SUSE Linux)
[09:36] <mabshoff> Thanks
[09:36] <mabshoff> Excellent, you just closed ticket #908.
[09:37] <Syzygy-> Hehe
[09:37] <Syzygy-> Happy to help. :)

So we should close this ticket and recommend for people to update via yast to the latest gcc rpms that SuSE provides.



Note: See TracTickets for help on using tickets.