Page 1 of 1

AmigaOS 4.1 Final Edition SDK ready for download

Posted: Mon Aug 31, 2015 5:10 pm
by ssolie
Grab the AmigaOS 4.1 Final Edition SDK from http://www.hyperion-entertainment.biz/i ... &parent=30

The press release is at http://www.hyperion-entertainment.biz/

Note: The AmigaOS Documentation Wiki is being updated as quickly as we can to cover all the new features. If you want to help out, please consider becoming an editor and joining in.

Re: AmigaOS 4.1 Final Edition SDK ready for download

Posted: Mon Aug 31, 2015 5:27 pm
by broadblues
Yay!

:-)

Re: AmigaOS 4.1 Final Edition SDK ready for download

Posted: Mon Aug 31, 2015 6:40 pm
by zzd10h
@ssolie

Thank you :D

Re: AmigaOS 4.1 Final Edition SDK ready for download

Posted: Thu Jan 21, 2016 9:53 am
by cahir
I'm trying to build cross toolchain using script I wrote: https://github.com/cahirwpz/amigaos-cro ... lchain-ppc Everything works ok as long as I don't switch to SDK 53.30:

Code: Select all

@@ -19,7 +19,7 @@ URLS = \
    'http://isl.gforge.inria.fr/isl-0.12.2.tar.bz2',
    'http://www.bastoul.net/cloog/pages/download/cloog-0.18.4.tar.gz',
    ('http://hyperion-entertainment.biz/index.php/downloads' +
-    '?view=download&format=raw&file=69', 'SDK_53.24.lha'),
+    '?view=download&format=raw&file=82', 'SDK_53.30.lha'),
    ('svn://svn.code.sf.net/p/adtools/code/trunk/binutils', 'binutils-2.18'),
    ('svn://svn.code.sf.net/p/adtools/code/trunk/gcc', 'gcc-4.2.4'),
    ('svn://svn.code.sf.net/p/adtools/code/branches/binutils/2.23.2',
@@ -210,7 +211,7 @@ if __name__ == "__main__":
          cloog='cloog-0.18.4',
          texinfo='texinfo-4.12',
          binutils='binutils-{binutils_ver}',
-         sdk='SDK_53.24',
+         sdk='SDK_53.30',
          gcc='gcc-{gcc_ver}',
          patches=path.join('{top}', 'patches'),
          stamps=path.join('{top}', '.build-ppc', 'stamps'),
Then the compilation fails for libstdc++3 multidir with clib2, because gcc is not able to create executable files. I traced down the problem:

Code: Select all

$PREFIX/.build-ppc/build/gcc-4.2.4/gcc/xgcc -B$PREFIX/.build-ppc/build/gcc-4.2.4/gcc/ -B$PREFIX/ppc-amigaos/bin/ -mcrt=clib2 hello.c
$PREFIX/ppc-amigaos/ppc-amigaos/SDK/clib2/lib/libc.a(stdlib_program_name.o): In function `stdlib_program_name_init_ctor':
stdlib_program_name.c:(.text+0xe4): undefined reference to `GetProgramName'
collect2: ld returned 1 exit status
Seems like there's an unresolved reference to dos.library. I looked up for the symbol in all libraries and there's no such. Am I missing something or that's a bug in SDK?

Re: AmigaOS 4.1 Final Edition SDK ready for download

Posted: Thu Jan 21, 2016 12:45 pm
by tonyw
GetProgramName() is yet another DOS library call that has been renamed. The new name is GetCliProgramName().

You can either update your source code to match the new library API or #include dos/obsolete.h to define the old call.

If you get more unresolved library names, try looking in dos/obsolete.h first. If it's in there, either #include dos/obsolete.h (hack) or update your source code (proper fix).

Re: AmigaOS 4.1 Final Edition SDK ready for download

Posted: Thu Jan 21, 2016 11:47 pm
by cahir
tonyw wrote:If you get more unresolved library names, try looking in dos/obsolete.h first. If it's in there, either #include dos/obsolete.h (hack) or update your source code (proper fix).
You misunderstood my post. The reference is not in my code, but in startup routine from clib2 provided by SDK 53.30, namely function stdlib_program_name_init_ctor in object stdlib_program_name.o from ppc-amigaos/SDK/clib2/lib/libc.a has undefined reference to GetProgramName. My program looks like this:

Code: Select all

#include <stdio.h>

int main() {
  printf("Hello world!\n");
  return 0;
}

Re: AmigaOS 4.1 Final Edition SDK ready for download

Posted: Sat Jan 23, 2016 6:19 pm
by xenic
cahir wrote:You misunderstood my post. The reference is not in my code, but in startup routine from clib2 provided by SDK 53.30, namely function stdlib_program_name_init_ctor in object stdlib_program_name.o from ppc-amigaos/SDK/clib2/lib/libc.a has undefined reference to GetProgramName.
I reported the problem back in Oct 2015. Refer to my topic "CLIB2 failures" in the "SDK Support" forum here at the Hyperion Message Boards. I think Solie said he was going to prepare an update with that problem fixed but I'm not sure if that happened. I did report the problem at the clib2 reposirory at Github and it was fixed. You may need to D/L the clib2 sources at https://github.com/adtools/clib2 and compile your own working version of clib2.