gcc 5.2 vs gcc 8.1

Windows specific questions.
deltarho[1859]
Posts: 1652
Joined: Jan 02, 2017 0:34
Location: UK

Re: gcc 5.2 vs gcc 8.1

Postby deltarho[1859] » Oct 09, 2018 20:41

FORGET gcc 7.3

I have been hammering it today and got a few 'libbacktrace could not find executable to open' with 64-bit.

It is a gcc bug. It actually appeared in gcc 4.8.1 and got fixed in 4.8.2. It seems to be related to multi-core compilation. The worst thing is it doesn't seem possible to guess whether a compilation will be successful or not and, of course, they are the best bugs, aren't they? <laugh>

I have just had to buy 8.1 a box of chocalates otherwise it wan't going to work either. <smile>
srvaldez
Posts: 1746
Joined: Sep 25, 2005 21:54

Re: gcc 5.2 vs gcc 8.1

Postby srvaldez » Nov 01, 2018 20:36

hello St_W
I tested your FB distribution, packaged in WinFBE by Paul Squires https://github.com/PaulSquires/WinFBE/releases
the test I run was to make a simple lib, remember fbc x64 compile to lib anomalies?
it fails to build a valid lib, so I would like to replace the gcc toolchain with MinGW-W64 GCC-6.4.0
would you please list the files that I would have to replace?
for starters I would replace ar.exe, as.exe ld.exe, dlltool.exe, gcc.exe and the FreeBASIC-1.06.0\bin\libexec\gcc\x86_64-w64-mingw32 folder and in lib/win64 I would replace libgcc.a, crtbegin.o and crtend.o
anything else?
as a matter of fact, I did the above replacements for win64 and the library and test program compiled and run OK, I just need to know if I am missing something.
thanks in advance
srvaldez
Posts: 1746
Joined: Sep 25, 2005 21:54

Re: gcc 5.2 vs gcc 8.1

Postby srvaldez » Nov 01, 2018 21:40

I think I did it, all that was needed was to replace the tools, there does not seem to be a problem keeping the libs
srvaldez
Posts: 1746
Joined: Sep 25, 2005 21:54

Re: gcc 5.2 vs gcc 8.1

Postby srvaldez » Nov 01, 2018 22:25

spoke too soon, it fails to compile the program listed here viewtopic.php?f=3&t=27125
St_W, please continue your nightly builds as they currently are, that is not merged and with gcc-4.8.2
because that package works without problems.
thank you for providing the nightly builds :-)
St_W
Posts: 1435
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: gcc 5.2 vs gcc 8.1

Postby St_W » Nov 02, 2018 18:19

srvaldez wrote:would you please list the files that I would have to replace?

The files are listed on the following wiki page: https://freebasic.net/wiki/wikka.php?wa ... ildWindows where it says "To complete this new FB setup" ...
I planned to switch the gcc version for my nightly builds to the one used for the official 1.06 release (whenever that will be released). The packages with newer gcc versions are unfortunately not tested that much and obviously cause some issues sometimes.

I'll set up the FB's test suite to run also for the new gcc version this weekend. And I'll try to reproduce the issues you're facing, but I couldn't the last time I tried as far as I remember.

Return to “Windows”

Who is online

Users browsing this forum: No registered users and 1 guest