Linux Issues

45 views
Skip to first unread message

Glenn Walsh

unread,
Feb 28, 2024, 4:34:34 AM2/28/24
to jallib
Hi guys.

I have been using JAL on and off for about 15 years, but haven't used it recently. I downloaded the latest version and unpacked on my Linux Mint laptop and cannot get the compiler to work. I have used JAL under LInux before without problems, so this has been really frustrating.

It must be something to do with permissions to access the library folder because the compiler runs, but cannot access the device files so throws errors. I have tried lots of changes to the permissions without success and reloaded jallib-master again tonight.

$ jallib-master/compiler/jalv2-x86-64 projects/test/16f877a_blink.jal -s /jallib-master/include/

gives me

jal jalv25r8 (compiled May 20 2023)
generating p-code
projects/test/16f877a_blink.jal:26: cannot open '16f877a.jal'
projects/test/16f877a_blink.jal:32: unknown pragma target: osc
projects/test/16f877a_blink.jal:32: "osc" not defined
projects/test/16f877a_blink.jal:32: unexpected token: osc
4 errors, 0 warnings

Any ideas?

Thanks in advance

Glenn

off...@schloegl-software.at

unread,
Feb 28, 2024, 4:49:52 AM2/28/24
to jallib
Hi Glenn,

I'm also on Linux for a similar long time. There is no problem with the compiler on Linux I'm aware off.
1.) In your case the library file called '16f877a.jal' can not be found. Usually it will be seen in subdirectory 'lib' (same hirarchy as folder compiler). First check if it is there.
2.) I usually add a path with '-s <path>' when I call the comiler to tell where to search for includes e.g.:
/home/schloegl/Programme/jalv25r6/compiler/jalv2-x86-64 -no-variable-reuse -s /home/schloegl/Programme/jalv25r6/lib/ -s /home/schloegl/Projekte/KWS/kwsremote.v5/sender/jalv2/ kwsremote5_send.jal

Adding the path will fix this issue. Hope you can fix it.
Andreas

Rob CJ

unread,
Feb 28, 2024, 12:35:33 PM2/28/24
to jal...@googlegroups.com
Hi Andreas, Glenn,

I think Andreas is right. It seems that the compiler cannot find the device file for your PIC (in the lib directory) and so adding that path with the -s option should fix it.

Welcome back Glenn and good luck getting started again.

Kind regards,

Rob


Van: 'off...@schloegl-software.at' via jallib <jal...@googlegroups.com>
Verzonden: woensdag 28 februari 2024 10:49
Aan: jallib <jal...@googlegroups.com>
Onderwerp: [jallib] Re: Linux Issues
 
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/1b8e8f6c-925c-4f08-bed3-3a08c422aa1dn%40googlegroups.com.

Rob Hamerling

unread,
Feb 29, 2024, 5:00:08 AM2/29/24
to jal...@googlegroups.com

Hi Glen,


On 27-02-2024 21:23, Glenn Walsh wrote:
$ jallib-master/compiler/jalv2-x86-64 projects/test/16f877a_blink.jal -s /jallib-master/include/

From the 'include' in this statement I suspect you downloaded/cloned from Github. This would work if the compiler would support searching subdirectories.  Unfortunately it doesn't.  All files in the include subdirectories need be copied to a single directory (e.g. 'lib') or you must specify with '-s' one-by-one all directories of the libraries which you include in your program.

It might be easier to download and work with the latest 'bee' package from justanotherlanguage.org

Regards, Rob.

--
Rob Hamerling, Vianen, NL

Glenn Walsh

unread,
Mar 2, 2024, 12:19:53 PM3/2/24
to jallib
Hi Rob and everyone!

Apologies for the delay getting back to this, I've been working all week.

That sounds like the problem. The laptop I have in my workshop has a completely different file structure for Jal compared to this new one.

I will download the 'bee' package and try that this evening.

Thanks for your help, much appreciated.

Glenn

Glenn Walsh

unread,
Mar 10, 2024, 9:09:37 AM3/10/24
to jallib
Thanks again guys.

I folllowed Rob's advice and have the compiler working perfectly on Linux Mint 20.3 with Geany as IDE and PicKit2 as programmer.

A 16F877a happily blinking!

All the best

Glenn

Rob CJ

unread,
Mar 10, 2024, 1:55:24 PM3/10/24
to jal...@googlegroups.com
Hi Glenn,

Thanks for the update. Good to hear that it is working.

Have you ever tried Visual Studio Code on Linux? If you download the JAL extension you get very beautiful syntax highlighting and you just invoke the compiler by pressing ctrl-B (build). In case of errors you just ctrl-left-click (mouse) on the error and it jumps to the line where the error occured.

Kind regards,

Rob



Van: jal...@googlegroups.com <jal...@googlegroups.com> namens Glenn Walsh <glennw...@hotmail.com>
Verzonden: zondag 10 maart 2024 14:09
Aan: jallib <jal...@googlegroups.com>
Onderwerp: Re: [jallib] Linux Issues
 
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages