I tried to compile button_duoled_matrix_v1_2b (which is a C application using the new programming platform, I think) in my Ubuntu 8.04 system and had some troubles:
Moreover, gpasm and sdcc packages (and their related packages, sdcc-libraries) provided from the Ubuntu repository (i.e. from Synaptic) are too old for the MIOS programming platform. I also solved this issue by manually downloading the newer versions from the “unstable” Debian repository:
yep basically there is a little issue with Ubuntu and probably other distros related to sh/bash/dash.There is a workaround as you ve found out, but probably something should be changed in the source code of the application, i know Stryd _one is working on it, if you want to join the bandwagon and some some ideas feel free to drop by the chat sometime.
Simone
eheh ok TK was faster not only on answering but getting the source fixed, thanks Ubuntu users are very happy for that!
Just for future reference and to help people find a hit in a search:
This also happens on Solaris, and HPUX, and any other debian-based distro. It will happen on any distro which does not use bash as the default shell.
If you’re not sure, you can type:
sh --version
and if it doesn’t say that it’s ‘bash’, then you need to set this MIOS_SHELL variable to specify the path to bash.
You can use export as shown above, or set it in your .rc file permanently.
Just for the geeks:
Yes, we could have changed the scripts to just use bash, like ris8 did above… but that would break it for users of MSYS, which does not have a bash.exe. This (like the old version of make) will be fixed in a future release of MSYS (1.0.11) but that release is not expected soon. So, we decided that unix geeks are more likely to be comfortable with setting an environment variable, than your average windows user.
Just for the future:
When we have our repository up and running, I will be maintaining more recent builds of our tools, so you can always install the package to know that you are using a version which has been tested and is used by myself and the other maintainers.