Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
199 user(s) are online (172 user(s) are browsing Forums)

Members: 2
Guests: 197

BSzili, hlt, more...

Support us!

Headlines

 
  Register To Post  

(1) 2 »
Gnu Make drops AmigaOS support
Home away from home
Home away from home


See User information
https://lists.gnu.org/archive/html/info-gnu/2022-10/msg00008.html

Should anyone intervene?
What do you we need if AmigaOS support is dropped?
Or is this the 68k target?

Go to top
Re: Gnu Make drops AmigaOS support
Site Builder
Site Builder


See User information
I think the only thing we need to do is to make a port of the latest 4.4 version and share with them the changes. You see, we didn't do anything like that for more than 12 years, so it seems logical to drop AmigaOS support.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: Gnu Make drops AmigaOS support
Home away from home
Home away from home


See User information
@walkero

Quote:
I think the only thing we need to do is to make a port of the latest 4.4 version and share with them the changes. You see, we didn't do anything like that for more than 12 years, so it seems logical to drop AmigaOS support.

Sounds like a good idea. That way they see signs of life for AmigaOS.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: Gnu Make drops AmigaOS support
Just popping in
Just popping in


See User information
@Raziel

Thanks for spreading the word of our Amiga-News article from this morning. Together we can change things.
We have updated our article:
https://www.amiga-news.de/en/news/AN-2022-11-00028-EN.html

Go to top
Re: Gnu Make drops AmigaOS support
Home away from home
Home away from home


See User information
Soooo, not to let this die too quickly...has anyone looked at porting it yet?

I'd do it myself, but then i remember i can't, so...

Go to top
Re: Gnu Make drops AmigaOS support
Site Builder
Site Builder


See User information
So, we just need to wait for someone to step up. Until then, the older versions won't go anywhere. And if there is a need for newer tools, there is always a way to cross-compile.

I would try to do it but I am occupied with the WebKit port.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: Gnu Make drops AmigaOS support
Home away from home
Home away from home


See User information
@walkero

Ok, maybe with a joint effort then?

I downloaded the 4.4 sources, let configure run (smoothly) and am facing my first problem here

depbase=`echo src/ar.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
    gcc 
-DHAVE_CONFIG_H   -Isrc -I./src -Ilib -I./lib -DLIBDIR=\"/usr/local/lib\" -DLOCALEDIR=\"/usr/local/share/locale\"     --O2 -MT src/ar.-MD -MP -MF $depbase.Tpo --o src/ar.o src/ar.&&\
    mv 
-f $depbase.Tpo $depbase.Po
In file included from src
/ar.c:18:
src/makeint.h:682:7errorconflicting types for 'getcwd'have 'char *(void)'
  
682 char *getcwd (void);
      |       ^~~~~~
In file included from /SDK/newlib/include/unistd.h:4,
                 
from src/makeint.h:118,
                 
from src/ar.c:18:
/
SDK/newlib/include/sys/unistd.h:32:9noteprevious declaration of 'getcwd' with type 'char *(char *, size_t)' {aka 'char *(char *, unsigned int)'}
   
32 char *  getcwd (char *__bufsize_t __size);
      |         ^~~~~~
gmake[1]: *** [src/ar.oError 1
gmake
[1]: Leaving directory `/Development/Porting/make-4.4'
gmake: *** [all-recursive] Error 1


Probably a no-brainer for everyone else, just not for me..

Go to top
Re: Gnu Make drops AmigaOS support
Just popping in
Just popping in


See User information
@Raziel

This patch should fix your problem:
--- make-4.4/src/makeint.h 2022-10-24 07:22:00 
+++ /ram/makeint.h 2022-11-04 16:21:34 
@@ -678,+678,@@
 
# endif
 
 # ifdef  HAVE_GETCWD
-#  if !defined(VMS) && !defined(__DECC)
+#  if !defined(VMS) && !defined(__DECC) && !defined(__AMIGA)
 
char *getcwd (void);
 
#  endif
 # else


The bigger issue is that pipe, (v)fork and some other functions are missing. Still looking into that.

Go to top
Re: Gnu Make drops AmigaOS support
Just popping in
Just popping in


See User information
Okay, and the next issue is that make assumes that Amiga compilers define _AMIGA instead of __AMIGA (not the two underscores).

Use this configure command to activate the Amiga parts in code (executed in abc-shell):
CFLAGS="-D_AMIGA -D__USE_INLINE__" ./configure


This fails later, though:
gcc -DHAVE_CONFIG_H   -Isrc -I./src -Ilib -I./lib -DLIBDIR=\"/usr/local/lib\" -DLOCALEDIR=\"/usr/local/share/locale\"     -D_AMIGA -D__USE_INLINE__ -MT src/function.-MD -MP -MF $depbase.Tpo --o src/function.o src/function.&&\
    mv 
-f $depbase.Tpo $depbase.Po
src
/function.cIn function 'func_shell_base':
src/function.c:2040:3error'command_argv' undeclared (first use in this function)
 
2040 |   command_argv construct_command_argv (argv[0], NULLNULL0,
      |   ^~~~~~~~~~~~
src/function.c:2040:3noteeach undeclared identifier is reported only once for each function it appears in
src
/function.c:2068:3warningimplicit declaration of function 'Execute'did you mean 'MyExecute'? [-Wimplicit-function-declaration]
 
2068 |   Execute (bufferNULLchild_stdout);
      |   ^~~~~~~
      |   
MyExecute
gmake
[1]: *** [src/function.oError 1
gmake
[1]: Leaving directory `/RAM Disk/Shared/Sources/make-4.4'
gmake: *** [all-recursive] Error 1

Go to top
Re: Gnu Make drops AmigaOS support
Home away from home
Home away from home


See User information
@FlynnTheAvatar

You working on it?

Go to top
Re: Gnu Make drops AmigaOS support
Just popping in
Just popping in


See User information
Well, a bit. Do not expect wonders, though.

Right now I hit the limits of my knowledge. Make is doing something strange with replacing functions with defines. GCC really does not like this. Has anybody any idea how I have to update these to make them working?

#if defined(VMS) || defined(_AMIGA) || defined(__MSDOS__)
#define check_io_state()  (IO_STDIN_OK|IO_STDOUT_OK|IO_STDERR_OK)
#define fd_inherit(_i)    (0)
#define fd_noinherit(_i)  (0)
#define fd_set_append(_i) (void)(0)
#define os_anontmp()      (-1)
#else


It defenitly does not like the first set of brackets (the one of the function).

Go to top
Re: Gnu Make drops AmigaOS support
Home away from home
Home away from home


See User information
@FlynnTheAvatar

Cool, you're at least much better at this than me


No idea from me there, sorry

Would it help to include the original maintainer?
Maybe he likes to help out too?

Go to top
Re: Gnu Make drops AmigaOS support
Site Builder
Site Builder


See User information
@all
Keep in mind that the Amiga exclusive code in make has been there since the v3 and v4 might need much more changes in other parts as well.

Also, our current newlib is better than what it was 12-15 years ago, as a matter of completeness. So, things that were excluded back then now might be needed.

I am trying to point out that it might be needed to see the port like the previous Amiga code was not even there. Like a brand new port.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: Gnu Make drops AmigaOS support
Just popping in
Just popping in


See User information
@walkero:

I guess the first decision is if we want to keep support for AmigaOS < 4.0 (= classic AmigaOS).

Trying to keep AmigaOS 3.x compatible, I do not see a lot of needed changes to the code.

But if you want to scrap support for older OS versions, we might want to rewrite major parts to be closer to the other OSes. But in this case I am not in a position to help as I lack inside in major parts of AmigaOS 4.x inner workings.

Go to top
Re: Gnu Make drops AmigaOS support
Just popping in
Just popping in


See User information
@FlynnTheAvatar

AFAIK Amigaos 3.x is already using make 4.x and gcc 12.1, latest gdb 13.x etc.

Go to top
Re: Gnu Make drops AmigaOS support
Just popping in
Just popping in


See User information
I guess you are talking about Bartman's excellent Visual Studio plugin. Yes, it contains make, gcc and gdb, but they are not native versions, but run on Linux, Mac, or Windows.

We are talking about a native make version; one you can run on your Classic or NG Amiga.

Go to top
Re: Gnu Make drops AmigaOS support
Just popping in
Just popping in


See User information
This my current state: https://github.com/josefwegner/make/tree/amigaos

It needs hacking the Makefile to compile and link amiga.c.

I will work on this issue later. Maybe we can get it to work without running configure. This would also allow me to build it with SAS/C.

Although it compiles, it does not do much yet. Most likely we need to rewrite the Amiga specific parts in src/amiga.c to use the new AmigaOS 4.x methods.

Go to top
Re: Gnu Make drops AmigaOS support
Home away from home
Home away from home


See User information
@FlynnTheAvatar

The latest version was ported and adapted to OS4 by ssolie, but did not release the sources on os4depot nor aniwhere else, only the binary
Perhaps it could worth updating to the latest version starting from his previous work?

Go to top
Re: Gnu Make drops AmigaOS support
Just popping in
Just popping in


See User information
That would be great. This is the only thing that it does at the moment:

4. RAM Disk:Shared/Sources/RKM_Libraries/Chapter1 Work:Projects/make 
make
: *** No targets specified and no makefile found.  Stop.
4. RAM Disk:Shared/Sources/RKM_Libraries/Chapter1 Work:Projects/make -f Makefile 
make
: *** No rule to make target 'easy'needed by 'all'.  Stop.
4. RAM Disk:Shared/Sources/RKM_Libraries/Chapter1 dir
  easy
.c        easy.c.info   easy.s        easy.s.info   lmkfile       lmkfile.info  Makefile      Makefile.vbcc
4. 
RAM Disk:Shared/Sources/RKM_Libraries/Chapter1 Work:Projects/make -v
GNU Make 4.4
Built 
for powerpc-unknown-amigaos
Copyright 
(C1988-2022 Free Software FoundationInc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free softwareyou are free to change and redistribute it.
There is NO WARRANTYto the extent permitted by law.

Go to top
Re: Gnu Make drops AmigaOS support
Home away from home
Home away from home


See User information
@FlynnTheAvatar

Awesome so far

...any preliminary binaries to test?

Go to top

  Register To Post
(1) 2 »

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project