FreeBASIC 1.08.0 Release Discussion (June 2021)

General discussion for topics related to the FreeBASIC project or its community.
mrToad
Posts: 430
Joined: Jun 07, 2005 23:03
Location: USA
Contact:

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Post by mrToad »

deltarho[1859] wrote:I hope that members are queuing up to thank you, Jeff, because fbc 1.08 + gcc 9.3WL(SJLJ) is one very serious piece of kit.

I will start it off: Thank you. Image
And I will add to it! Thank you, and all involved, very much. I'm blown away - you guys never cease to amaze me - the diligent work, continually breathing life into Freebasic.

Bugs and issues are expected. I wish I was of the caliber to help on a more meaningful level, but I will at least fire it up and see what I'm able compile. And report back. :)

And you say only about a week's worth in the evenings? If I had months of free days I don't believe I have the mind for this kind of low-level engineering. I do take pride in my code though - so if FB thrives, so do I, along with one of my lifelong hobbies. :)

Many thanks!!
-mrToad
deltarho[1859]
Posts: 4292
Joined: Jan 02, 2017 0:34
Location: UK
Contact:

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Post by deltarho[1859] »

Yours truly wrote:I hope that members are queuing up to thank you, Jeff
With over 1600 views with this thread I must say that I am disappointed at the length of the queue - we haven't got to double figures yet. Image

It was nice to see one happy camper take time out to say a few words so, well done you, mrToad.
coderJeff
Site Admin
Posts: 4313
Joined: Nov 04, 2005 14:23
Location: Ontario, Canada
Contact:

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Post by coderJeff »

I appreciate that there are some brave users willing to trial the new version. There will be some growing pains for sure. It is only with the valuable feedback and reports from the community that we can resolve the issues and make improvements. Thanks.
coderJeff
Site Admin
Posts: 4313
Joined: Nov 04, 2005 14:23
Location: Ontario, Canada
Contact:

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Post by coderJeff »

angros47 wrote:Have you seen my post about class destructor, CoderJeff?
I did. The duplicate definition is due to:
- evidently a difference between g++ on windows versus linux (I think the deleting dtor is optimized out but there is still an entry in the vtable ... maybe)
- a bug where the deleting dtor procedure was being emitted by fbc even though there is only declarations on the fbc side
- no test for virtual methods and derived classes in the test suite so was not caught at test time

Bug Report: https://github.com/freebasic/fbc/issues/318

Working on a fix so at least the declaration in fbc should be better.
Remain issues related to c++/g++ will be:
- automatic handling of calling convention (thiscall)
- thiscall in -gen gas (32-bit) on windows
- emit the deleting destructor automatically when the complete destructor is explicitly defined
- review the failed tests for arm targets (maybe freebsd too).
-
- lots of other stuff, I'm sure.
angros47
Posts: 2321
Joined: Jun 21, 2005 19:04

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Post by angros47 »

Thank you
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Post by D.J.Peters »

Whats going on here fbc32.exe does not create an executable app ?
fbc64.exe all is OK if I open the 32-bit exe with dependency walker it crashed !

Joshy
Image
Image
SARG
Posts: 1756
Joined: May 27, 2005 7:15
Location: FRANCE

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Post by SARG »

I get a similar message (obvioulsy in french) when I recompile the master sources (1.09) with the current fbc 1.08 and I use the new compiler on a test program. Maybe something wrong with the linker change (-T script file). I compared the asm files (1.08 / 1.09) they are exactly the sames.
I'm using 64bit fbc.

Edit: fbextra.x was not uptodate....... now it works fine.


What version do you use (regular or daily built by St_W) ?
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Post by D.J.Peters »

I extracted the St_w daily build 1.09 over official fbc 1.08 !

Joshy
SARG
Posts: 1756
Joined: May 27, 2005 7:15
Location: FRANCE

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Post by SARG »

Check if fbextra.x (in lib) is like that (the last line) :

Code: Select all

SECTIONS
{
  /DISCARD/ :
  {
    *(.fbctinf)
  }
}
INSERT AFTER .data;
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Post by D.J.Peters »

@SARG thank you I got it, since linker scripts have the .x file extension ?
In my programming career many moons ago it was fixed to *.ld without any exceptions.

Joshy
SARG
Posts: 1756
Joined: May 27, 2005 7:15
Location: FRANCE

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Post by SARG »

@ D.J.Peters
I checked, fbextra.x is the same in St_W's builds for 32bit and 64bit, it seems you didn't copy all the folder.
About the extension name I guess it's like that since the beginning.
fxm
Moderator
Posts: 12082
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Post by fxm »

See the probable bug with Direct2D (at last pixel of each line):
viewtopic.php?p=283834#p283834 and following posts.
Ed Davis
Posts: 37
Joined: Jul 28, 2008 23:24

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Post by Ed Davis »

In 1.07, the following compiles warning free with "-lang qb":

Code: Select all

declare function foo$
dim s$

s$ = foo$

function foo$
    foo$ = "bar"
end function
In 1.08 (both fbc32 and fbc64) I get:

foo.bas(4) warning 44(1): Suffix ignored in 'foo$'

Is there a way to disable the new warning?
fxm
Moderator
Posts: 12082
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Post by fxm »

I think that this warning in '-lang qb' is not wanted and that it is rather an oversight (for returns of function names with suffix) at the time of the change.

In '-lang qb':
s$ = foo$() '' warning on 'foo$'
print foo$() '' warning on 'foo$'
foo$() '' no warning on 'foo$'
fxm
Moderator
Posts: 12082
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Post by fxm »

Otherwise compile with the '-w 2' option, but that may hide other interesting warnings.
Post Reply