Author Topic: Equation Solution WIP gcc-13  (Read 186 times)

jbk

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
Equation Solution WIP gcc-13
« on: October 13, 2022, 09:32:50 AM »
the release of gcc-13-20220918 works OK but the ones after that date has problems, don't know if a bug was introduced in the gcc source or if their build procedure is faulty

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1431
    • View Profile
Re: Equation Solution WIP gcc-13
« Reply #1 on: October 13, 2022, 11:23:30 AM »
I regularly test-build BCX using the latest snapshot from Equation Solutions, along with other
compilers, and haven't seen any obvious issues.  I don't run my normal BCX regression suite
using Mingw, mostly for those, I use Pelles and a few tests use MSVC.

What types of flaws are you seeing?


« Last Edit: October 13, 2022, 01:32:49 PM by MrBcx »

jbk

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
Re: Equation Solution WIP gcc-13
« Reply #2 on: October 13, 2022, 01:41:16 PM »
MrBcx, it would give a segmentation fault when building QB64 and also for FreeBasic

jbk

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
Re: Equation Solution WIP gcc-13
« Reply #3 on: October 13, 2022, 02:47:27 PM »
MrBcx, sorry for the very brief answer in previous post, here are the errors when building QB64 and FreeBasic
Code: [Select]
QB64
internal\c/parts/core/src/freeglut_geometry.c: In function 'fghCircleTable':
internal\c/parts/core/src/freeglut_geometry.c:127:13: internal compiler error: Segmentation fault
  127 | static void fghCircleTable(double **sint,double **cost,const int n)
      |             ^~~~~~~~~~~~~~

FreeBasic
CC src/rtlib/obj/win32/array_clear.o
CC src/rtlib/obj/win32/array_clearobj.o
during GIMPLE pass: loopdone
src/rtlib/array_clearobj.c: In function 'fb_hArrayCtorObj':
src/rtlib/array_clearobj.c:12:6: internal compiler error: Segmentation fault
   12 | void fb_hArrayCtorObj( FBARRAY array, FB_DEFCTOR ctor )
      |      ^~~~

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1431
    • View Profile
Re: Equation Solution WIP gcc-13
« Reply #4 on: October 14, 2022, 10:25:56 AM »
Looks like it could be a messy problem to isolate. 

Here's an interesting thread on segfaults:
https://stackoverflow.com/questions/2346806/what-is-a-segmentation-fault

A brief scan of gcc bugzilla shows that segfaults are reported with some frequency.
I'd be interested in an update if/when you learn these segfaults have been overcome.

I'm also curious -- Do you routinely re-compile FB and QB64 and, if so, why?

And finally, I decided to roll back to a gcc-13-20220911-64.exe, for the
time being simply because I don't like tempting fate.   ;)


« Last Edit: October 14, 2022, 10:33:53 AM by MrBcx »

jbk

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
Re: Equation Solution WIP gcc-13
« Reply #5 on: October 14, 2022, 12:29:59 PM »
I do recompile FB and QB64 when new versions are available at GitHub, I will update this thread if the segfaults get fixed
« Last Edit: October 14, 2022, 01:11:05 PM by jbk »

jbk

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
Re: Equation Solution WIP gcc-13
« Reply #6 on: October 31, 2022, 03:08:14 PM »
the latest gcc-13-20221030 works without problems  :)

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1431
    • View Profile
Re: Equation Solution WIP gcc-13
« Reply #7 on: October 31, 2022, 07:57:08 PM »
the latest gcc-13-20221030 works without problems  :)

Thanks for the update and the good news.

jbk

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
Re: Equation Solution WIP gcc-13
« Reply #8 on: November 07, 2022, 06:47:31 PM »
something is wrong with gcc-13-20221106, QB64 and FB compiled OK but a QB64 test program the console simply closed
I am reverting to version gcc-13-20221030

Robert

  • Hero Member
  • *****
  • Posts: 966
    • View Profile
Re: Equation Solution WIP gcc-13
« Reply #9 on: November 07, 2022, 07:37:58 PM »
What's in a name?

Sometimes I wonder ....

https://en.wikipedia.org/wiki/Equation_Group

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1431
    • View Profile
Re: Equation Solution WIP gcc-13
« Reply #10 on: November 07, 2022, 09:13:23 PM »
What's in a name?

Sometimes I wonder ....

https://en.wikipedia.org/wiki/Equation_Group

What's to wonder about? 
They are two unrelated entities, one friendly, one nefarious:  Equation Solution and Equation Group.
« Last Edit: November 08, 2022, 07:50:20 AM by MrBcx »

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1431
    • View Profile
Re: Equation Solution WIP gcc-13
« Reply #11 on: November 08, 2022, 08:55:52 AM »
something is wrong with gcc-13-20221106, QB64 and FB compiled OK but a QB64 test program the console simply closed
I am reverting to version gcc-13-20221030

As a test, I compiled BCX using gcc-13-20221106 and then built BED using gcc-13-20221106.
This is not something that I normally do.  I detected no build problems and that build of BED runs fine.

Given the number of eyeballs (maintainers and reviewers) overseeing the GCC project, in contrast to FB and QB64,
I'm more inclined to suspect FB and QB64 than GCC.  One lesson I've learned from maintaining BCX is that just
because something seems to compile and run correctly, does not mean things are bug-free. 

Ref:  https://github.com/gcc-mirror/gcc/blob/master/MAINTAINERS