RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account
Forums → Community Support →

Is 'bash' the Chicken or the Egg?

Subscribe to Is 'bash' the Chicken or the Egg? 84 posts, 21 voices

Posts per page:

Pages: 1 2 3 4

 
Jan 15, 2021 9:35pm
Avatar John WILLIAMS (8368) 298 posts

NAFF for example, which I believe was Polari not available for fucking .

How rude! But at least an acronym!

 
Jan 15, 2021 10:31pm
Avatar Paolo Fabio Zaino (28) 571 posts

@ David J Ruck

@Paolo I’ve rebuilt GraphTask, and put it on the ARM Club website so please give it a try now.

On it David, will let you know soon, firing up all my boards now it’s finally weekend!!!! :D

Everything in C on there should have been rebuilt in 2020 or 2021, but I haven’t updated any version numbers at this stage.

Nice! :)

 
Jan 15, 2021 11:21pm
Avatar Paolo Fabio Zaino (28) 571 posts

@ David J Ruck

Ok, I ran few tests with RISC OS 5.28 on the following boards:

  • Iyonix
  • RPi 3B+
  • RPi 400
  • mini.m
  • Panda Board

GraphTask seems to be working fine on all of them and the error is gone.

All Demos runs well except the demos in the directory “Mode 7”, which, even following the instructions, gives always the same error when trying to load a Mode 7 in GraphTask (on all the boards):

“Cannot open <7> for I/O redirection”

Also, quick side note:

When tested it on my Iyonix (which is also my Access/Access+ fileserver), Access/Access+ started to go a little funky. On the clients side, when trying to open a file on a shared disc, Filer reported “it’s not a file” error.

This has happened on multiple clients so far. Not sure if it’s related to !GraphTask (need more tests to be sure), however rebooting the Iyonix solved the issue. It started after testing the new !GraphTask and it has never happened before, so I though was worth mentioning it.

 
Jan 15, 2021 11:50pm
Avatar Rick Murray (539) 10556 posts

NAFF for example

Does that mean that I ought to describe myself as naff?

Somehow…..that just doesn’t quite seem right. 😂

 
Jan 15, 2021 11:53pm
Avatar Rick Murray (539) 10556 posts

That said, there is of course a more plausible non-rude interpretation: https://www.worldwidewords.org/qa/qa-naf1.htm

(as well as fuel for the fire that everything can be rude if you try)

 
Jan 16, 2021 8:55am
Avatar Steve Pampling (1551) 6525 posts

That said, there is of course a more plausible non-rude interpretation: https://www.worldwidewords.org/qa/qa-naf1.htm

Which actually, after a bit of vagueness1, loops back to Polari.
The confusion about showmans private language or homosexual community language (GAY is part of that) set me wondering whether our resident WordHound had info on which came first. Then realised that !WordHound was on topic for these forums, if not actually this thread.

1 Vagueness and misattribution? See Aldershot Misattribution?

 
Jan 16, 2021 9:21am
Avatar Phillip (5527) 55 posts

GraphTask seems to be working fine on all of them and the error is gone.

Hearing that a fatal error is gone is good news. Did you figure out the specific cause of the error? Researching the elements of the stack trace dump is still outside of my available reference materials.

Will the “new” GraphTask be made available or is it something users can fix?

I started GraphTask 4.03 just now and the error didn’t pop up! I would’ve sworn that it “always does”.
I have been cleaning things up, garbage collection, old file deletions, trying to make more free space on the 2GB SDFS disk.
I also did a CloneDisk of SDFS::0 from a 32GB SD to a 2GB SD card. Not saying it’s related but, I no longer get the error when starting GraphTask while running from the 2GB card.

 
Jan 16, 2021 4:03pm
Avatar Paolo Fabio Zaino (28) 571 posts

@ Phillip

Hearing that a fatal error is gone is good news. Did you figure out the specific cause of the error? Researching the elements of the stack trace dump is still outside of my available reference materials.

Yes when you read in the error message “Illegal Instruction” it’s almost certainly that the binary was compiled for an ARM architecture that had an instruction that is no longer supported on the ARM chip you’re running the application on.

This can happen if the binary was compiled with an old compiler or compiled for a different target CPU or if the Assembly was written for a different target CPU.

Will the “new” GraphTask be made available or is it something users can fix?

David already made it available to everyone publicly and posted the link on his previous posts, I think it has got hidden from the ongoing off-topic discussion about acronyms, lol get used to the creativity and the constant going off topic of the lovely RISC OS community :D

Link here again for you:
http://www.armclub.org.uk/free

Also on that page you’ll find a lot of very good and useful tools for coding on RISC OS ;)

Thanks to David J Ruck for fixing this quickly!

I started GraphTask 4.03 just now and the error didn’t pop up! I would’ve sworn that it “always does”.

The illegal instruction will always pop up if the code containing it is executed on the wrong target, most likely refreshing your SD has restored a version that did not have the issue (David also said he had a version that did not have the problem). The version with the issue was the one downloadable from the armclub I think.

I also did a CloneDisk of SDFS::0 from a 32GB SD to a 2GB SD card. Not saying it’s related but, I no longer get the error when starting GraphTask while running from the 2GB card.

Typical actually :) RISC OS is a very open OS, so everyone can do everything to it. If you keep your !Boot clean (or only install on it very well tested and solid modules and resources), RISC OS behaves generally fine. This is a big generalisation TBH, because you could still install software somewhere else on the SD that loads stuff on boot process that makes the system a little funky, but I did not want to write an essay here on how to keep your RISC OS stable (so just limited my answer to the very minimal to keep in check).

 
Jan 16, 2021 4:57pm
Avatar Steve Pampling (1551) 6525 posts

Link here again for you:
http://www.armclub.org.uk/free

Somewhat confusingly, the GraphTask link on that pages advertises the utility with a version and date of “4.03 (06-Feb-2009) [32bit]”

 
Jan 16, 2021 5:00pm
Avatar Paolo Fabio Zaino (28) 571 posts

Somewhat confusingly, the GraphTask link on that pages advertises the utility with a version and date of “4.03 (06-Feb-2009) [32bit]”

Yup… I was actually about to comment and ask David if it isn’t the case maybe to just bump up the release number or at least the build date?

 
Jan 16, 2021 5:23pm
Avatar Steve Pampling (1551) 6525 posts

I was actually about to comment and ask David if it isn’t the case maybe to just bump up the release number or at least the build date?

I’ve checked. The download has a !RunImage fie date of 2021-01-14

 
Jan 16, 2021 6:27pm
Avatar Phillip (5527) 55 posts

This can happen if the binary was compiled with an old compiler or compiled for a different target CPU or if the Assembly was written for a different target CPU.

This is the issue I spoke of earlier regarding listing the system requirements in Packman or Store. A new user is unlikely to have a thorough knowledge of past CPUs and platforms but, with a “Works on RPIx y z” flag it is much less likely they will break their system or their spirit to pursue RiscOS.

I did not want to write an essay here on how to keep your RISC OS stable

A nuts and bolts tutorial on the subject may be very helpful to me and others. I’ve noticed the newer users to the forum are at least technical enough to experiment with “other” OSs. While I’m glad that my system appears more predictable, I can’t be sure of what I did to achieve it is repeatable so, very little knowledge gained in the experience.

Somewhat confusingly, the GraphTask link on that pages advertises the utility with a version and date of “4.03 (06-Feb-2009) [32bit]”

When I noticed this, I decided to hold off on the upgrade but I did spend quite some time reading archived magazine articles. Added the site to my hotlist. I’ll continue to follow the GraphTask mystery and look for the update to be Packman.

The illegal instruction will always pop up if the code containing it is executed on the wrong target, most likely refreshing your SD has restored a version that did not have the issue (David also said he had a version that did not have the problem). The version with the issue was the one downloadable from the armclub I think.

This adds to the mystery of the error because I did not update the existing app. I made room on the system disk by deleting collected gems in the download folder “most all was documentation”. The disc refresh was a clone of the running system that displays the error so, there wouldn’t have been any change in the version “or anything really”.

you could still install software somewhere else on the SD that loads stuff on boot process that makes the system a little funky

Remember the DLL Hell that MS unleashed on its user base? Are we talking about going through that again? Not complaining, just expressing my terror!

 
Jan 19, 2021 3:14pm
Avatar David J. Ruck (33) 538 posts

As a recompile of GraphTask seems to have fixed the problem, I’ve up issued the version number to 4.04 so it’s easier to tell if you have the new one.

@Paolo I’ve not managed to reproduce any problems with the Mode 7 demos on my Pi4. They obey set the run type to change to mode 7, print the file, and cancel teletext effects. It looks like on your machine the Echo |<22>|<7> is being interpreted as trying to redirect to a file, which is puzzling.

I’ve not seen the “not a file” error either, you weren’t trying to run it from an archive in the access folder? That often causes problems.

 
Jan 20, 2021 3:49pm
Avatar David J. Ruck (33) 538 posts

@Paolo you aren’t using the CObey module are you? Just saw it was having some problems with Echo, which may explain the above.

 
Jan 20, 2021 7:37pm
Avatar Julie Stamp (8365) 262 posts

I hope it isn’t?!

 
Jan 20, 2021 9:30pm
Avatar edwardx (1628) 34 posts

It looks like on your machine the Echo |<22>|<7> is being interpreted as trying to redirect to a file, which is puzzling.

The culprit is probably GNU core utils. Try:

*Show alias$echo

 
Jan 21, 2021 3:24am
Avatar Paolo Fabio Zaino (28) 571 posts

Sorry guys, had a couple of crazy busy days at work…

@ David J Ruck

I’ve not seen the “not a file” error either, you weren’t trying to run it from an archive in the access folder? That often causes problems.

Confirmed, it was caused by other software loaded, so no problem with GraphTask, thanks!

@Paolo I’ve not managed to reproduce any problems with the Mode 7 demos on my Pi4.

I did some digging and it’s caused by CoreUtils so no issue from GraphTask

 
Jan 21, 2021 3:31am
Avatar Paolo Fabio Zaino (28) 571 posts

@ edwardx

The culprit is probably GNU core utils.

Yup found that yesterday… also JFYI CoreUtils (indirectly) causes problems with DDE as well:

  • Touch is also a BASIC program used in DDE Shared MakeFiles
  • chmod same
  • link same

To fix that all one needs to do is to add such paths in DDE stdTools in AcornC/C++ → Makefiles → StdTools

Here is what I do:

Add the following variable:

BASEDIR        = <SetPaths$Dir>.Lib32

And then for the lines that defines the commands above:


LD = ${BASEDIR}.link

same for touch and chmod

To make GraphTask mode 7 works fine and potentially other things I just created a new utility called !StartBash, when running it, it does all the filler look for CoreUtils and !Bash etc… it also opens a TaskWindow with WimpSlot -min 16384K so can run GCC from bash without any issues and ld as well etc.

Will publish the utility ASAP, most likely this weekend.

Thanks

 
Jan 21, 2021 10:35am
Avatar David Pitt (3386) 882 posts

With the linux echo command in CoreUtils a command to set Mode 7 is:-

echo -e \x16\x07

Tested in GraphTest and RISC OS outside of the Desktop.

 
Jan 21, 2021 6:34pm
Avatar John Rickman (71) 259 posts

I was enjoying playing with !Bash with !CoreUtils until I tried to update one of my websites with SiteMatch. It seems that Unix and RISC OS don’t always play nicely together.

 
Jan 21, 2021 7:40pm
Avatar Steve Pampling (1551) 6525 posts

You can get the same effect on any OS when you load a utility that aliases a core command to its own version.

 
Jan 21, 2021 8:04pm
Avatar Chris Gransden (337) 944 posts

I was enjoying playing with !Bash with !CoreUtils until I tried to update one of my websites with SiteMatch. It seems that Unix and RISC OS don’t always play nicely together.

All the commands in CoreUtils are aliases. To stop RISC OS using an alias just prefix the command with ‘%’. e.g.,

*%sort

 
Jan 21, 2021 10:12pm
Avatar John Rickman (71) 259 posts

All the commands in CoreUtils are aliases. To stop RISC OS using an alias just prefix the command with ‘%’. e.g.,

*%sort

Thanks Chris,
I can fix my copy and let Richard Porter know.

 
Jan 21, 2021 10:28pm
Avatar Steve Pampling (1551) 6525 posts

All the commands in CoreUtils are aliases. To stop RISC OS using an alias just prefix the command with ‘%’. e.g.,

Interesting answer, but shouldn’t CoreUtils be producing a set of command names that are distinct from the OS resident commands? Like perhaps CUSort?

 
Jan 21, 2021 10:30pm
Avatar Martin Avison (27) 1081 posts

John has (confusingly) raised another thread titled Mixing with the wrong sort about this, to which I replied. Having a solution which requires a change to all applications using the official ArmSort command *sort is not really practical, is it?

Next page

Pages: 1 2 3 4

Reply

To post replies, please first log in.

Forums → Community Support →

Search forums

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Description

Community-provided support for all users of RISC OS.

Voices

  • John WILLIAMS (8368)
  • Paolo Fabio Zaino (28)
  • Rick Murray (539)
  • Steve Pampling (1551)
  • Phillip (5527)
  • David J. Ruck (33)
  • Julie Stamp (8365)
  • edwardx (1628)
  • David Pitt (3386)
  • John Rickman (71)
  • Chris Gransden (337)
  • Martin Avison (27)

Options

  • Forums
  • Login
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Beast theme is based on Beast's default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Beast © 2006 Josh Goebel and Rick Olson
This site runs on Rails

Hosted by Arachsys