How can an internal compiler error have some other source code as root
cause?

On Sun, Jan 28, 2018 at 8:30 AM François Bissey <frp.bis...@gmail.com>
wrote:

> I made some comments in the ticket. In my initial answer I assumed you were
> using the host gcc rather than sage’s one. But I wouldn’t be surprised if
> there
> was a problem when using a host gcc compiled against mpfr-3.x.
> This needs to be tested.
> While rebuilding gcc get rid of the ICE, I think the root cause of the
> problem is
> in giac. It is the only package that gives ICE after mpfr upgrade as far
> as I know.
> All the other packages that depend on mpfr in sage don’t give rise to that
> error.
>
> François
>
> > On 28/01/2018, at 20:19, Ralf Stephan <gtrw...@gmail.com> wrote:
> >
> > Doesn't this simply make internal gcc a dependency? If so then is it
> enough to change that for the above ticket?
> >
> > On Sun, Jan 28, 2018 at 8:17 AM Ralf Stephan <gtrw...@gmail.com> wrote:
> > This is https://trac.sagemath.org/ticket/24599
> > I'm trying now with the system gcc.
> >
> > On Sun, Jan 28, 2018 at 8:09 AM François Bissey <frp.bis...@gmail.com>
> wrote:
> > I was going to warn sage-on-gentoo users on this interesting fact that I
> experienced
> > on the experimental branch where I track stuff that Volker merges.
> > It is probably an issue in giac, but at the end of the day gcc needs to
> be rebuilt
> > after mpfr/mpc. I didn’t think about the problem of what happens when
> you use
> > the host gcc in vanilla sage though.
> > You may have to build sage’s gcc - or use clang once support is merged :)
> >
> > François
> >
> > > On 28/01/2018, at 20:02, Ralf Stephan <gtrw...@gmail.com> wrote:
> > >
> > > Compiling giac with the gcc installed by Sage (7.2.0) gives an
> internal compiler error:
> > > libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -DIN_GIAC -I. -I.. -I.
> -I.. -I/h
> > > ome/ralf/sage/local/include -g -O2 -I/home/ralf/sage/local/include
> -I/home/ralf/
> > > sage/local/include -fno-strict-aliasing -DGIAC_GENERIC_CONSTANTS -MT
> solve.lo -M
> > > D -MP -MF .deps/solve.Tpo -c solve.cc  -fPIC -DPIC -o .libs/solve.o
> > > libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -DIN_GIAC -I. -I.. -I.
> -I.. -I/h
> > > ome/ralf/sage/local/include -g -O2 -I/home/ralf/sage/local/include
> -I/home/ralf/
> > > sage/local/include -fno-strict-aliasing -DGIAC_GENERIC_CONSTANTS -MT
> derive.lo -
> > > MD -MP -MF .deps/derive.Tpo -c derive.cc -o derive.o >/dev/null 2>&1
> > > init2.c:52: MPFR assertion failed: p >= 2 && p <=
> ((mpfr_prec_t)((mpfr_uprec_t)(
> > > ~(mpfr_uprec_t)0)>>1))
> > > modpoly.cc: In function 'std::complex<double>
> giac::horner_newton(const vecteur&
> > > , const std::complex<double>&, const giac::context*)':
> > > modpoly.cc:5035:19: internal compiler error: Aborted
> > >    complex<double> horner_newton(const vecteur & p,const
> std::complex<double> &x
> > > ,GIAC_CONTEXT){
> > >                    ^~~~~~~~~~~~~
> > > 0xafbc6f crash_signal
> > >         ../../src/gcc/toplev.c:337
> > > 0x7f3e0cfeedd3 mpfr_assert_fail
> > >
>  /home/ralf/sage/local/var/tmp/sage/build/mpfr-3.1.5.p0/src/src/mpfr-gmp.
> > > c:305
> > > 0x7f3e0cfe59c1 mpfr_init2
> > >
>  /home/ralf/sage/local/var/tmp/sage/build/mpfr-3.1.5.p0/src/src/init2.c:5
> > > 2
> > > 0x7f3e0d21b472 mpc_div_zero
> > >
>  /home/ralf/sage/local/var/tmp/sage/build/mpc-1.1.0/src/src/div.c:31
> > > 0x7f3e0d21b472 mpc_div
> > >
>  /home/ralf/sage/local/var/tmp/sage/build/mpc-1.1.0/src/src/div.c:257
> > > 0x77b6b9 do_mpc_arg2(tree_node*, tree_node*, tree_node*, int, int
> (*)(__mpc_stru
> > > ct*, __mpc_struct const*, __mpc_struct const*, int))
> > >         ../../src/gcc/builtins.c:10179
> > > 0x8afa0a const_binop
> > >         ../../src/gcc/fold-const.c:1316
> > > 0x8b0c5e const_binop(tree_code, tree_node*, tree_node*, tree_node*)
> > >         ../../src/gcc/fold-const.c:1565
> > > 0xdb4962 gimple_resimplify2(gimple**, code_helper*, tree_node*,
> tree_node**, tre
> > > e_node* (*)(tree_node*))
> > >         ../../src/gcc/gimple-match-head.c:132
> > > 0xe384b0 gimple_simplify(gimple*, code_helper*, tree_node**, gimple**,
> tree_node
> > > * (*)(tree_node*), tree_node* (*)(tree_node*))
> > >         ../../src/gcc/gimple-match-head.c:642
> > > 0x8e4306 fold_stmt_1
> > >         ../../src/gcc/gimple-fold.c:4362
> > > 0xbdb5ff execute
> > >         ../../src/gcc/tree-ssa-forwprop.c:2391
> > > Please submit a full bug report,
> > > with preprocessed source if appropriate
> > >
> > > The complete log is attached. System is OpenSuSE 42.3.
> > >
> > > On Sun, Jan 28, 2018 at 1:08 AM Volker Braun <vbraun.n...@gmail.com>
> wrote:
> > > As always, you can get the latest beta version from the "develop" git
> branch. Alternatively, the self-contained source tarball is at
> http://www.sagemath.org/download-latest.html
> > >
> > > 0a674fd488 (tag: 8.2.beta4, trac/develop) Updated SageMath version to
> 8.2.beta4
> > > 4d966299d9 Trac #24581: more typos
> > > 59b6f2aff8 Trac #24580: some typos (various)
> > > 3e3b72af47 Trac #24592: "./sage -f" should clean first before building
> the toolchain
> > > e486b8d5b7 Trac #24586: packages whose type is "script" must have
> executable spkg-install
> > > dfa00046c8 Trac #24579: Don't install gfortran by default
> > > 9396336c09 Trac #24570: py3: using the new tags py3 and py2 in some
> rst files
> > > d6c9aed908 Trac #24566: BooleanFunction evaluated on Integer computes
> IndexError wrongly
> > > cb4e6a68ce Trac #24548: py3: various details
> > > d54fe681fd Trac #24487: add one example with picture to the doc of
> list_plot3d
> > > 7d56dfbec4 Trac #24174: Upgrade giac to 1.4.9-45
> > > 35188851e1 Trac #23848: py3: some conversions from bytes to utf8
> > > b5b1e208b4 Trac #22170: plot3d : the option "mesh=True" does not work
> in Jupyter
> > > 03a1d71600 Trac #19547: Document  options to hide labels in ToricPloter
> > > 70e5eae8d3 Trac #2153: [with bundle, needs additional review] Defined
> Hom parent of group homomorphisms.
> > > 50e7153e59 Trac #24529: Upgrade some Jupyter packages
> > > c44a86fc1e Trac #24512: fix plotting of WheelGraph(n) for n<4
> > > ab59b8df29 Trac #24574: p3  : get rid of __cmp__ for words
> > > 0d5f9274c1 Trac #24572: py3: some more care for map
> > > 13585a4c7e Trac #24569: py3 : caring for range again
> > > 2a38ead995 Trac #24558: exception when creating tensor product
> > > c4dcef94e0 Trac #24565: small cleanup of abstract tree
> > > 115b43f467 Trac #23418: put number fields in Fields().Infinite()
> > > 34050d596a Trac #24556: py3: fix raise StopIteration in generator
> statements
> > > 269c40171d Trac #24538: Add Africa map graph
> > > 617db2f540 Trac #24106: Install packages in temporary root before
> copying to $SAGE_LOCAL (simplified)
> > > 03e2e86cb2 Trac #10017: reduced_basis for number field multiples wrong
> > > 533ef23605 Trac #24539: fraction_field: missing format in exception
> > > 180d79f92f Trac #24493: graphs.SymplecticGraph() and deprecation
> > > 9626e1e282 Trac #24550: py3: very minor fixes for sage.interfaces.tests
> > > 5b64807c94 Trac #3313: Add code to lift SLm(Z/NZ) to SLm(Z) (also for
> m not equal 2)
> > > 86e7e4ae45 Trac #24560: direct access to m-Tamari lattices
> > > 5e8e9189d5 Trac #24552: py3: adding a few __hash__ function
> > > bd54574854 Trac #24549: Clean up MPC declarations
> > > 49bc8d751a Trac #24546: get rid of some builtins import
> > > 29160c0b49 Trac #24545: lazy import in lfunctions
> > > 4222b3010d Trac #24540: add q-Stirling numbers (of first type)
> > > 65b3a61326 Trac #24514: py3: Fix ntl_GF2X.__hex__
> > > 0cfb1a8094 Trac #24497: Upgrade to pynac-0.7.15
> > > 097adebeb6 Trac #24475: str_to_bytes() should accept unicode
> > > 9c9a025007 Trac #24451: Polyhedron.get_integral_point
> > > 334a31b611 Trac #24353: Upgrade MPFR, MPC and MPFI
> > > 5502506514 Trac #24258: py3: support <type '...'> expected output in
> doctests on Python 3
> > > dadd0f00e3 Trac #23555: Bounding box bug in Polyhedron plots
> > > 2b2c3eaf7f Trac #23106: Python scripts in src/bin are not ready for
> Sage + Python 3
> > > a4bc0cecfd Trac #23037: Implement representations for Virasoro algebra
> > > fc56cd7b14 Trac #22087: New function richcmp_item
> > > 56a4bc7e76 (tag: 8.2.beta3) Updated SageMath version to 8.2.beta3
> > >
> > >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups "sage-release" group.
> > > To unsubscribe from this group and stop receiving emails from it, send
> an email to sage-release+unsubscr...@googlegroups.com.
> > > To post to this group, send email to sage-release@googlegroups.com.
> > > Visit this group at https://groups.google.com/group/sage-release.
> > > For more options, visit https://groups.google.com/d/optout.
> > >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups "sage-release" group.
> > > To unsubscribe from this group and stop receiving emails from it, send
> an email to sage-release+unsubscr...@googlegroups.com.
> > > To post to this group, send email to sage-release@googlegroups.com.
> > > Visit this group at https://groups.google.com/group/sage-release.
> > > For more options, visit https://groups.google.com/d/optout.
> > > <giac-1.4.9.45.log>
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "sage-release" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to sage-release+unsubscr...@googlegroups.com.
> > To post to this group, send email to sage-release@googlegroups.com.
> > Visit this group at https://groups.google.com/group/sage-release.
> > For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "sage-release" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to sage-release+unsubscr...@googlegroups.com.
> > To post to this group, send email to sage-release@googlegroups.com.
> > Visit this group at https://groups.google.com/group/sage-release.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-release" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-release+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-release@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-release.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-release+unsubscr...@googlegroups.com.
To post to this group, send email to sage-release@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.

Reply via email to