Page 30 of 31

Re: QL / PASCAL

Posted: Tue Apr 18, 2023 4:29 pm
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.

Re: QL / PASCAL

Posted: Tue Apr 18, 2023 4:56 pm
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.

Re: QL / PASCAL

Posted: Tue Apr 18, 2023 6:03 pm
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.

Re: QL / PASCAL

Posted: Tue Apr 18, 2023 10:18 pm
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.

Re: QL / PASCAL

Posted: Tue Apr 18, 2023 11:37 pm
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!

Re: QL / PASCAL

Posted: Wed Apr 19, 2023 6:05 am
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.

Re: QL / PASCAL

Posted: Wed Apr 19, 2023 6:38 pm
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.

Re: QL / PASCAL

Posted: Thu Apr 20, 2023 6:36 am
by NormanDunbar
Hi Derek,

glad to hear you got it working again.

Cheers,
Norm.

Re: QL / PASCAL

Posted: Fri Apr 21, 2023 7:01 pm
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.

Re: QL / PASCAL

Posted: Sat Apr 22, 2023 12:14 am
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)