English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 06 February 2021, 16:46   #1
alancfrancis
Registered User
 
alancfrancis's Avatar
 
Join Date: Jun 2020
Location: Scotland
Posts: 146
GNU make for M68K

Hi folks,

Just wondering what version of make people are generally running. I'd love to have my makefiles work under VBCC on both my Mac *and* my A1200 and so far I'm struggling. The Mac comes with GNU Make 3.81 from Xcode. The latest binary I can find on Aminet is 3.76 ( http://aminet.net/package/dev/c/make_bin ) which I was pretty excited about.

In use though I find it's's not picking up my environment variables. make -p shows the variables are there, but they have empty values. Same makefile happily picks up the variables on the Mac.

The source is available too ( https://github.com/LibreOffice/gnu-make-lo ), and though its much more recent than the aminet bin archive, it seems heavily tailored to SAS/C, which I don't have.

So...

1/ Does anyone have a 68K binary of GNU Make they trust and rely on to use environment variables they can share ?

2/ If not, is there a place I can get SAS/C (happy to pay something to copyright holders) to try and get 3.76 building so I can debug my variable problem.

3/ If not, has anyone tried configuring the current GNU make (https://www.gnu.org/software/make/) to build with vbcc for 68K ?

My yak shave has led me from working on an Amiga Smalltalk, to working on an AmigaGit to support that development, to figuring out how to get a working make in both places to support *that* development :-)

Any suggestions appreciated.

Alan

p.s. make needs are not complicated - take some C and H files, an occasional lib, make a LoadSeg binary using VBCC. But the key for me right now is being able to feed in things like the NDK directory via an environment variable so I can work on Mac and A1200 as required.
alancfrancis is offline  
Old 06 February 2021, 18:07   #2
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,338
http://eab.abime.net/showpost.php?p=798692&postcount=31
idrougge is offline  
Old 06 February 2021, 20:13   #3
alancfrancis
Registered User
 
alancfrancis's Avatar
 
Join Date: Jun 2020
Location: Scotland
Posts: 146
@idrougge Thanks!
alancfrancis is offline  
Old 07 February 2021, 12:23   #4
alancfrancis
Registered User
 
alancfrancis's Avatar
 
Join Date: Jun 2020
Location: Scotland
Posts: 146
Well I found the problem.

https://github.com/LibreOffice/gnu-m....c#L1351-L1356

All vars initialised empty and then something is supposed to happen in lookup_variable but doesnt seem to have any amiga specific code there at all. So I guess I'll maybe just rewrite the startup code to populate properly and take the slowdown :-)
alancfrancis is offline  
Old 12 March 2021, 17:43   #5
nyteshade
Registered User
 
Join Date: Mar 2020
Location: Boulder Creek / USA
Posts: 43
Most of the time when I’m using GNU stuff for 68k directly I’ll be using the ADE.zip install found on Aminet. That uses GCC 2.95.3. There were some GCC 3.x builds but the only place I’ve found that to use is with CubicIDE (pay for product).

If you need SASC ask for it and it’ll appear in the Zone. Failing that PM me. The problem with SASC, for you, is that it uses its own version of make that is likely not 100% compatible with the GNU version.


Sent from my iPhone using Tapatalk
nyteshade is offline  
Old 14 April 2021, 01:11   #6
alancfrancis
Registered User
 
alancfrancis's Avatar
 
Join Date: Jun 2020
Location: Scotland
Posts: 146
I gave up, for the most part, and decided just to stick with cross compiling from the Mac :-)
alancfrancis is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to make m68k-amigaos-gdb on windows jotd Coders. C/C++ 12 30 December 2020 06:09
gnu objectdump as disassembler bebbo Coders. General 0 14 April 2019 17:07
GNU GAS Immediate data misbehaving MintyTheCat Coders. Asm / Hardware 14 03 January 2016 16:01
Preparing a CF from GNU/Linux iddqd support.FS-UAE 1 21 June 2015 10:09
Wow... They still make the ENTIRE m68k lineup Madcrow support.Hardware 3 03 June 2008 18:17

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 23:15.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07156 seconds with 15 queries