Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - MrGW454

Pages: [1]
1
Programs / Re: A Replacement Method for Data Statements
« on: March 23, 2022, 09:24:33 am »
Code: [Select]
[quote author=George McGinn link=topic=4617.msg141500#msg141500 date=1647897902]
That is part of the changes, but does not fix everything, including the DATA statement issue.

Here are the changes needed to run QB64 on a Raspberry PI. Sig Bus errors are the product of a hardware fix that was made on the x86 chips, and not carried over on the ARM chip on the PI:

ank you for using the QB64 installer."
[/quote]

Hi George - your fix has been working well for me.  I've performed about a dozen compilations of various BASIC programs with DATA statements and so far there have been no issues.  I'm looking to test some more complex code soon, but wanted to give you this feedback and thank you again for all your help.


2
Programs / Re: A Replacement Method for Data Statements
« on: March 09, 2022, 04:09:00 pm »
Don't see where it's been fixed.

That's why I offered a work around DATA statements. Maybe putting the DATA into an array doesn't work?

Hi bplus,

Your method does appear to work.  I'm not the original author of the BASIC code and did forward your solution to them.  We both appreciated your quick response on this.

I was just following up on since I feel the DATA statement issue should be resolved for ARM architectures and make it behave like the other platforms.

 


3
Programs / Re: A Replacement Method for Data Statements
« on: March 09, 2022, 04:05:24 pm »
Thanks. That helps.

I am not sure if I've actually used QB64 on my Pi. I have been meaning to try it, as I want my programs to work on Linux, as well as Windows. I'll have to remember to start testing on the Pi, once in a while.

I pulled current development source from git.  It successfully compiled for the RPi but I still get the same error when trying to compile my BASIC source code.  If I remove the DATA statement references, it works. 

The exact same BASIC code compiles fine in QB64 under Windows or Linux (x86 or x64).  It just doesn't work for ARM.

4
Programs / Re: A Replacement Method for Data Statements
« on: March 09, 2022, 03:15:57 pm »
I actually found a but in the READ statement that was fixed within an hour of me reporting it. @MrGW454 if you are not running the latest version, you'll want to compile from source. If you have a packaged binary, you may still have the bug, since there has not been an official release since then. Meaning you would still have the bug where READ sometimes grabs the last line of source code, rather than the correct DATA value.

Also... could you post the original Discord message, so we know what the actual problem is?

I'll grabbed the latest source and compile.

Here's the link to the message I left on Discord:

https://discord.com/channels/592061709485735966/592061709485735974/937745171163017226

.. and here's the message text:

Code: QB64: [Select]
  1. [10:24 AM] MrGW454: Hello - not sure if this is the correct place to ask for assistance with QB64 compiler issues.
  2.  
  3. I have a BASIC program that compiles fine under Linux (64 bit) and Windows using the latest QB64 from git.  It will not compile correctly on a Raspberry Pi 4.
  4. Since there is no binary package available for QB64 on the Pi, I compiled the source (after editing the "../internal/c/common.h" file and adding "#define QB64_NOT_X86" at the top.
  5.  
  6. The error I get when compiling the BASIC program I have is:
  7.  
  8. QB64 Compiler V2.1
  9.  
  10. Beginning C++ output from QB64 code...
  11. [..................................................] 100%
  12.  
  13. Compiling C++ code into executable...
  14. ERROR: C++ compilation failed.
  15. Check ./internal/temp/compilelog.txt for details.
  16.  
  17.  
  18. pi@raspberrypi:~/source/qb64-git $ cat internal/temp/compilelog.txt
  19. objcopy: architecture i386 unknown
  20. g++: error: ../temp/data.o: No such file or directory
  21.  
  22.  
  23.  
  24. It looks like QB64 is trying to compile for i386 and not ARM.  Strange thing is, some other (smaller) BASIC programs I wrote are compiling fine.
  25. I tried doing some searching online, but no luck so far.
  26.  
  27. Thanks for any help someone might be able to provide!
  28. [10:26 AM] MrGW454: I should clarify, that QB64 (the program) works.  The IDE comes up and everything.  I just can't get one specific BASIC program I have to compile.  I did not want to confuse anyone thinking I was having issues trying to compile QB64 itself.  Thanks.
  29.  

5
Programs / Re: A Replacement Method for Data Statements
« on: March 09, 2022, 12:46:36 pm »
I have DATA statements working on ARM processors, including the Raspberry PI.

I am testing changes to the QB64 install script that will detect whether or not it is being installed on a ARM or RPI, change the required files and download the prerequisite libraries, which does not occur now.

If you want to test this script on your RPI, let me know and I will post a copy of it here.

The only issue I am running into is getting InForm to run on an ARM processor. QB64 so far is fine.

Hi George,

I would appreciate it if you could share the solution for getting DATA statements working on a Raspberry Pi.  I'm happy to test and post my results.

Thank you!

6
Programs / Re: A Replacement Method for Data Statements
« on: January 31, 2022, 02:17:00 pm »
I really appreciate the follow up on this and the helpful suggestion/example.

Is this an official open bug for QB64 right now?

Thanks!

Pages: [1]