Page 1 of 1

Compiler requires newlib.library V53.68

Posted: Sun Nov 27, 2022 1:34 pm
by OldFart
Hi,

Whilst toying a bit with my developement setup, i.e. the abillity to easily switch between various compilers, I got this partitcular output when using 'gcc-6':

Code: Select all

gcc-6 -DCOMPVERS="GCC_6.4.0" -DPROGNAME="Arexx-Test" -DPROGREVN="1" -DPROGVERS="0" -DUSE_WBRUN -DUSE_SINGLERUNNING -DUSE_AREXX  main.c -o ProjecT.DEBUG -Wall -Wextra -Winline -Wunreachable-code -Wstack-protector -Wno-fallthrough -DDEBUG -DGCC -gstabs 
SDK:gcc/ppc-amigaos/bin/libexec/gcc/ppc-amigaos/6.4.0/cc1 requires newlib.library 53.68 or newer!
SDK:gcc/ppc-amigaos/bin/libexec/gcc/ppc-amigaos/6.4.0/cc1 faalt returncode 20
make: *** [ProjecT.DEBUG] Error 1

(Partial output from other contenders:)
gcc-8 -DCOMPVERS="GCC_8.4.0" -DPROGNAME="Arexx-Test" -DPROGREVN="1" -DPROGVERS="0" -DUSE_WBRUN -DUSE_SINGLERUNNING -DUSE_AREXX  main.c -o ProjecT.DEBUG -Wall -Wextra -Winline -Wunreachable-code -Wstack-protector -Wimplicit-fallthrough=0  -DDEBUG -DGCC -gstabs 
In file included from main.c:265:
Events/Rx_Events.c: In function 'Rx_Quit':
Events/Rx_Events.c:12:31: warning: unused parameter 'Cmd' [-Wunused-parameter]
 void Rx_Quit(struct ARexxCmd *Cmd, struct RexxMsg *Msg)
              ~~~~~~~~~~~~~~~~~^~~

gcc-10 -DCOMPVERS="GCC_10.3.0" -DPROGNAME="Arexx-Test" -DPROGREVN="1" -DPROGVERS="0" -DUSE_WBRUN -DUSE_SINGLERUNNING -DUSE_AREXX  main.c -o ProjecT.DEBUG -Wall -Wextra -Winline -Wunreachable-code -Wstack-protector -Wimplicit-fallthrough=0  -DDEBUG -DGCC -gstabs 
In file included from main.c:265:
Events/Rx_Events.c: In function 'Rx_Quit':
Events/Rx_Events.c:12:31: warning: unused parameter 'Cmd' [-Wunused-parameter]
   12 | void Rx_Quit(struct ARexxCmd *Cmd, struct RexxMsg *Msg)
      |              ~~~~~~~~~~~~~~~~~^~~


gcc-11 -DCOMPVERS="GCC_11.2.0" -DPROGNAME="Arexx-Test" -DPROGREVN="1" -DPROGVERS="0" -DUSE_WBRUN -DUSE_SINGLERUNNING -DUSE_AREXX  main.c -o ProjecT.DEBUG -Wall -Wextra -Winline -Wunreachable-code -Wstack-protector -Wimplicit-fallthrough=0  -DDEBUG -DGCC -gstabs 
In file included from main.c:265:
Events/Rx_Events.c: In function 'Rx_Quit':
Events/Rx_Events.c:12:31: warning: unused parameter 'Cmd' [-Wunused-parameter]
   12 | void Rx_Quit(struct ARexxCmd *Cmd, struct RexxMsg *Msg)
      |              ~~~~~~~~~~~~~~~~~^~~
Where can I obtain the required library?
And also interesting: why is one compiler version requiring it, while others happily dance to the tune provided.

OldFart

P.s.: forgot to mention that newlib.library's current version installed is V53.62 as per OS 4.1 update 2

Re: Compiler requires newlib.library V53.68

Posted: Sun Nov 27, 2022 5:41 pm
by Raziel
newlib.library 53.80 is part of the SDK 54.16 (no idea why)

You can get it here: https://www.hyperion-entertainment.com/ ... m&file=127

As to why one compiler needs it and the rest don't...probably because gcc6 was freshly compiled with the new newlib.library in place and packaged into the SDK, while the rest of the compilers were working fine and didn't need to???

Re: Compiler requires newlib.library V53.68

Posted: Sun Nov 27, 2022 6:00 pm
by OldFart
@Raziel
newlib.library 53.80 is part of the SDK 54.16 (no idea why)
The only thing about newlib in SDK 54.16 I can find is newlib-53.80.lha, but that does not contain newlib.library.

Thanks,

OldFart

Re: Compiler requires newlib.library V53.68

Posted: Sun Nov 27, 2022 6:35 pm
by nbache
AmiUpdate should give you newlib 53.80 (among other things, e.g. string.gadget 53.24 - they were both released in April this year).

Of course you have to have update.amigaos.net (activated) as one of your servers in AmiUpdate's server list.

Best regards,

Niels

Re: Compiler requires newlib.library V53.68

Posted: Sun Nov 27, 2022 7:07 pm
by Raziel
OldFart wrote: Sun Nov 27, 2022 6:00 pm @Raziel
newlib.library 53.80 is part of the SDK 54.16 (no idea why)
The only thing about newlib in SDK 54.16 I can find is newlib-53.80.lha, but that does not contain newlib.library.

Thanks,

OldFart
You're right, mea culpa, i didn't check, i was under the impression it was part of the SDK...