Format of makefile is incorrect - removing project
Rick Murray (539) 13401 posts |
Hi,
I recall having this with the older C v4; my C v5.5x does it, and I wouldn’t be surprised if the ROOL suite does it. Make seems to be finickety – but I’m not sure why or how. Can anybody shed some light on this? FWIW, when I Ctrl-Shift-C in Zap, Make whinges with the above error, then (once error dismissed), goes ahead and correctly builds the application from the MakeFile. |
Theo Markettos (89) 919 posts |
Assuming this is !Make, it gets tetchy about makefiles that it didn’t create. You know, the ones with @.^.^.^.^.^.^ littered all over them. I think there’s a magic header line it looks for. If you want a GUI to build things with makefiles, use !AMU. I’m not sure whether Ctrl-Shift-C does a *amu or *make, or Filer_Runs the makefile (which will start !Make and moan). The moral of the story is don’t go anywhere near !Make. I believe Sourcery is a better GUI for creating makefiles if you need it (I’ve never tried – I just write them myself). |
Peter van der Vos (95) 115 posts |
The problem with Make is that on certain lines it needs a space at the end of it. If you use an editor like StrongEd, it can remove spaces at the end of a line, not if you use it to read the Make file, but if you edit a line it may remove the end space. Make sure StrongEd is in ‘MakeFile Mode’. Good luck, |
Rick Murray (539) 13401 posts |
I’ll stick a few spaces at the end of the lines, see if Make is happier with that. [ ROOL – if you want to shoot me the sources to Make, I’ll be happy to see about fixing this annoying triviality ] |
Peter van der Vos (95) 115 posts |
Don’t thinks that works. Some line needs them, others don’t. The fast way to fix it is to create a new make file. If you alter the source code of Make, let it generate a line number where the fault is. That would make it easier to fix things. |
Eirikur Blodax (5250) 3 posts |
Hi all, sorry for opening old wounds here… I experienced the same problems and have a simple diagnostic:
I am allowed to add more commands to target creation list, e.g.
|
Rick Murray (539) 13401 posts |
Ooh! Necroing a five and a half year old thread!
This is why I use AMU. It’s “Make-lite” which means it’s a little less powerful, but on the other hand it’s a lot less stressy. If I wanted something that complained about arcane whitespace, I’d code in Python…
Are you sure about that one? Isn’t defining stuff for later reference part of the reason why we use tools like Make instead of just writing Obey files? Flags, for instance, or “here’s a list of files to build” or the like? |
Eirikur Blodax (5250) 3 posts |
Hi Rick, I’m afraid it is really that touchy. |
Rick Murray (539) 13401 posts |
I know. Grr-argh.
I think C version 4 is the Acorn era stuff. Version 5 is, if I remember correctly, early Castle? I thought that compiler was rather prone to using unaligned loads.
It’s piracy you know. |
Eirikur Blodax (5250) 3 posts |
Piracy? I got it from https://www.4corn.co.uk/articles/acornc5 and have to admit I didn’t bother to check… assuming that most Acorn software is mostly abandonware at worst, and under free usage licence in many cases. |
Martin Avison (27) 1418 posts |
Availability to download does not mean there are no licence conditions. |
Rick Murray (539) 13401 posts |
Fifty seconds of searching will get you a link to a download of the latest Jurassic
That’s not how copyright works. Abandonware “works” because many of the obsolete packages no longer have any commercial value so following up on copyright violations is not considered a viable exercise, however some companies do follow up. And you might have noticed modern reimaginings of the old games consoles (like the Atari 2600 or Sega Master System) in shops, with hundreds of built in games. These eight bit games that were historical are now suddenly contemporary…
If the author/copyright holder releases it to the community as “free” (and/or provides source code), then yes, it’s free. Under Berne conventions, copyright is defined as the author’s life plus fifty years. Not sure how that works for software written by a company – company life? Thanks to That Damned Mouse, copyright in America is life plus an ever increasing duration. Anyway – Martin has confirmed that the compiler suite is from the final days of Acorn and generates 26 bit code. Which makes it about as useful as a chocolate teapot these days… |
Steve Pampling (1551) 7931 posts |
Plus there’s a readily available version on the NutPi package that runs on the Pi (on Pi only) that is a small part of the complete software bundle for just £10. It’s up to date and will produce code for new machines and also the old ones. Our correspondent “Eirikur Blodax” should note that the current version is sold by the rights holders who haven’t abandoned it anymore than Microsoft have abandoned Windows 1,2,3.x,9x, etc. Producing a newer version doesn’t mean abandonment of the previous and rights can and do get transferred from company to company. Anyway, as I said, there’s a cheap version that will run on a Pi and a version that costs more if you want to run it on a variety of non-Pi machines. |