QL / PASCAL

Anything QL Software or Programming Related.
User avatar
NormanDunbar
Forum Moderator
Posts: 2281
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: QL / PASCAL

Post by NormanDunbar »

Ha! Got it!

I wiped out the assembler and linker, re-downloaded and re-built those, which I thought I had done this morning but Linux helpfully suffixed my newly downloaded files with "(1)" to indicate that they were copies. Duh! Building the assembler with the latest source files has allowed me to recreate the errors. So, the problem is VASM and not FPC itself. The following will fix the problem by getting the last 1.8 release:

Code: Select all

cd ~/SourceCode
rm -rf vasm
wget http://phoenix.owl.de/tags/vasm1_8l.tar.gz
tar -xzf vasm1_8l.tar.gz
cd vasm
make clean CPU=m68k SYNTAX=std
make CPU=m68k SYNTAX=std
sudo cp vasmm68k_std /usr/local/bin/ 
If you already have a sym-link set up in /usr/local/bin, then the clean and build of the compiler should now work. If not:

Code: Select all

cd /usr/local/bin
sudo ln -s vasmm68k_std m68k-sinclairql-vasmm68k_std
It seems that any version of the assembler from 1.9 onwards is broken as far as building a cross compiler for the QL is concerned. :(

HTH

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
NormanDunbar
Forum Moderator
Posts: 2281
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: QL / PASCAL

Post by NormanDunbar »

I've raised this on the FPC mailing list and I've had a reply from someone who is using the assembler version 1.9c with no problems.

The conversation continues.....;)

In the meantime, I've documented the workaround and upped the "how to" document to version 1.7alpha. It's at the usual location, https://github.com/NormanDunbar/FPC-Cro ... ses/latest.


Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
NormanDunbar
Forum Moderator
Posts: 2281
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: QL / PASCAL

Post by NormanDunbar »

It has been confirmed, there is a problem with all 1.9 versions of the vasm assembler, apart from 1.9 itself. That appears to work. Bugs will be raised -- as soon as someone can find a bug raising contact form!

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
Derek_Stewart
Font of All Knowledge
Posts: 3975
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: QL / PASCAL

Post by Derek_Stewart »

Hi Norm,

I read your message thread on FPC_PASCAL mailing list archive.

Do you know why vasm v1.9 has problems?

So the problem is nothing to do with Ubuntu based Linux systems... I had the same error om Manjaro which is Archh Linux based.

I entered a message asking the same question on the FPC Forum.


Regards,

Derek
User avatar
tofro
Font of All Knowledge
Posts: 2702
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: QL / PASCAL

Post by tofro »

NormanDunbar wrote: Tue Apr 18, 2023 6:03 pm It has been confirmed, there is a problem with all 1.9 versions of the vasm assembler, apart from 1.9 itself. That appears to work. Bugs will be raised -- as soon as someone can find a bug raising contact form!

Cheers,
Norm.
Great work, Norman, thank you!


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
NormanDunbar
Forum Moderator
Posts: 2281
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: QL / PASCAL

Post by NormanDunbar »

Derek_Stewart wrote: Tue Apr 18, 2023 10:18 pm Do you know why vasm v1.9 has problems?
I'm afraid not Derek, sorry. Karoly is going to sort it out as he know the person maintaining the assembler. Karoly has also had this problem himself. Hopefully fixed soon.
tofro wrote:Great work, Norman, thank you!
MrsD was out, so I sneaked in a bit of time between dog walking and hoovering! It was fun. Thanks.


The advice is to use version 1.9 but no later, if we have to. I'm sticking on the final 1.8L release as documented, for now.

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
Derek_Stewart
Font of All Knowledge
Posts: 3975
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: QL / PASCAL

Post by Derek_Stewart »

Hi Norm,

I replaced vasm v1.9c with vasm v1.8L and all compiled perfectly, I managed to compile QL executables with and without xtcc header.

So looks to be working.

Up to chapter 9 in your user guide, but have leave it there for now. All the parts for the Q68 have started to arrive. So I will be looking at that now.
Last edited by Derek_Stewart on Thu Mar 07, 2024 12:08 am, edited 1 time in total.


Regards,

Derek
User avatar
NormanDunbar
Forum Moderator
Posts: 2281
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: QL / PASCAL

Post by NormanDunbar »

Hi Derek,

glad to hear you got it working again.

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
NormanDunbar
Forum Moderator
Posts: 2281
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: QL / PASCAL

Post by NormanDunbar »

A reply from the FPC mailing list has a fix for the 1.9 VASM has been produced:
I was in touch with Frank Wille, and he confirmed the issue was indeed in
vasm, and he provided a fix. You can try to download the "Daily Snapshot",
from the vasm site, and try it:

http://sun.hasenbraten.de/vasm/index.php?view=source

Note that this is just what it says on the tin - a daily source sanpshot,
and he'll release 1.9d officially later. Can you confirm that this fixes
your issue?
I'm away from my QPC for a week or so, so I'm not able to test. Could someone please test the fix and let me know please? If all is well, I'll respond to FPC and they can make the fix permanent. Thanks.

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
tofro
Font of All Knowledge
Posts: 2702
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: QL / PASCAL

Post by tofro »

NormanDunbar wrote: Fri Apr 21, 2023 7:01 pm A reply from the FPC mailing list has a fix for the 1.9 VASM has been produced:
I was in touch with Frank Wille, and he confirmed the issue was indeed in
vasm, and he provided a fix. You can try to download the "Daily Snapshot",
from the vasm site, and try it:

http://sun.hasenbraten.de/vasm/index.php?view=source

Note that this is just what it says on the tin - a daily source sanpshot,
and he'll release 1.9d officially later. Can you confirm that this fixes
your issue?
I'm away from my QPC for a week or so, so I'm not able to test. Could someone please test the fix and let me know please? If all is well, I'll respond to FPC and they can make the fix permanent. Thanks.

Cheers,
Norm.
Norman,
I pulled the daily snapshot of the assembler, built it, and ran through the FPC install. Now FPC built flawlessly. (I haven't had time yet to check whether it actually works - I might get to that on the weekend)


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
Post Reply