Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
62 user(s) are online (53 user(s) are browsing Forums)

Members: 0
Guests: 62

more...

Support us!

Headlines

Forum Index


Board index » All Posts (FlynnTheAvatar)




Re: The RAD
Just popping in
Just popping in


I am using an X5000 with RadeonHD 3.7, and for me the RAD never survived a (warm) reboot.

And yes, with warm reboot I mean CRTL+WIN+WIN, or the "reboot fast" cli command, or using "Restart AmigaOS" of the Shutdown option in the menu.

Go to top


Re: Gnu Make drops AmigaOS support
Just popping in
Just popping in


No, I am telling you I cannot make a make that can make a make.

Go to top


Re: Gnu Make drops AmigaOS support
Just popping in
Just popping in


Sorry, not yet. After aligning the FileInfoBlock to longword boundry, the version started to show signs of life. Still not much yet:

- It does not use the file Makefile by default, you have to use -f Makefile
- The implicit rules are behaving weird.

I did not manage to execute a Makefile fully. make clean seem to work, but nothing much more.

Go to top


Re: Gnu Make drops AmigaOS support
Just popping in
Just popping in


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
Just popping in
Just popping in


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
Just popping in
Just popping in


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


@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


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
Just popping in
Just popping in


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
Just popping in
Just popping in


@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



TopTop
« 1 ... 4 5 6 (7)



Polls
Running AmigaOS 4 on?
AmigaOne SE/XE or microA1
Pegasos2
X5000
X1000
A1222
Sam 440/460
Classic PowerPC Amiga
WinUAE emulation
Qemu emulation
Total Votes: 166
The poll will close at 2025/12/1 12:00
3 Comments


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project