Who's Online |
80 user(s) are online ( 65 user(s) are browsing Forums)
Members: 1
Guests: 79
21stcentury,
more...
|
|
Headlines |
-
arabic_console_devicepro2.lha - driver/input
May 15, 2022
-
seq.lha - audio/misc
May 12, 2022
-
oo.lha - development/library
May 12, 2022
-
hwplayer.lha - development/misc
May 9, 2022
-
amiarcadia.lha - emulation/gamesystem
May 9, 2022
-
sdl.lha - library/misc
May 9, 2022
-
sdl2.lha - library/misc
May 9, 2022
-
cubicide.lha - development/misc
May 8, 2022
-
hollywood_sdk.zip - development/misc
May 8, 2022
-
ultraedit.zip - development/misc
May 8, 2022
|
|
|
|
Re: New verson of CLiB2 from Andrea (afxgroup)
|
Posted on: 4/25 14:30
#41
|
Home away from home 
Joined: 2007/9/11 12:31 Last Login
: Yesterday 19:58
From Russia
Group:
Registered Users
|
@Corto I am sure Andrea will answer better as it he who do all the work, but from my POV reassons are:
1). get rid of all os3 code, as it only make things be worse for us 2). implement all the missing posix stuff to make easy porting 3). implement all the other stuff like wchars, shared objects and all what we may have or may not have with newlib 4). as it opensource, we will have no issues as with newlib waiting years for releases.
And so on.
At some point it should replace clib2 in our SDK if everything will be well, and if there will be wish from SDK mantainers. But in meantime it can be the same independent C library, which you can replace in your SDK yourself if you want. I already use Afxgroup's version to build few projects, so its matured enough. At least things like SDL2, few games, and co works well with already.
|
|
|
|
Re: New verson of CLiB2 from Andrea (afxgroup)
|
|
Home away from home 
Joined: 2006/11/26 21:45 Last Login
: Yesterday 17:52
From a dying planet
Group:
Registered Users
|
@afxgroup I installed your beta and let ScummVM configure run with it. Unfortunately i was stopped early
g++ -athread=native -mcrt=clib2 -W -Wno-unused-parameter -Wno-empty-body -fno-operator-names -std=gnu++11 -pedantic -gstabs -fvar-tracking-assignments ./scummvm-conf.cpp -o ./scummvm-conf -Wpragma-pack -Werror
g++: error: unrecognized command-line option '-Wpragma-pack'
return code: 1
Checking for ppc-amigaos-strings... yes
tmp_find_type_with_size.cpp: In function 'int main()':
tmp_find_type_with_size.cpp:3:88: error: narrowing conversion of '-1' from 'int' to 'unsigned int' [-Wnarrowing]
3 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) == 1)];
| ^
tmp_find_type_with_size.cpp:3:34: warning: size of array 'test_array' is not an integral constant-expression [-Wpedantic]
3 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) == 1)];
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tmp_find_type_with_size.cpp:3:34: error: size '-1' of array 'test_array' is negative
tmp_find_type_with_size.cpp: In function 'int main()':
tmp_find_type_with_size.cpp:3:88: error: narrowing conversion of '-1' from 'int' to 'unsigned int' [-Wnarrowing]
3 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) == 1)];
| ^
tmp_find_type_with_size.cpp:3:34: warning: size of array 'test_array' is not an integral constant-expression [-Wpedantic]
3 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) == 1)];
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tmp_find_type_with_size.cpp:3:34: error: size '-1' of array 'test_array' is negative
tmp_find_type_with_size.cpp: In function 'int main()':
tmp_find_type_with_size.cpp:3:88: error: narrowing conversion of '-1' from 'int' to 'unsigned int' [-Wnarrowing]
3 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) == 2)];
| ^
tmp_find_type_with_size.cpp:3:34: warning: size of array 'test_array' is not an integral constant-expression [-Wpedantic]
3 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) == 2)];
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tmp_find_type_with_size.cpp:3:34: error: size '-1' of array 'test_array' is negative
tmp_find_type_with_size.cpp: In function 'int main()':
tmp_find_type_with_size.cpp:3:88: error: narrowing conversion of '-1' from 'int' to 'unsigned int' [-Wnarrowing]
3 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) == 8)];
| ^
tmp_find_type_with_size.cpp:3:34: warning: size of array 'test_array' is not an integral constant-expression [-Wpedantic]
3 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) == 8)];
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tmp_find_type_with_size.cpp:3:34: error: size '-1' of array 'test_array' is negative
tmp_find_type_with_size.cpp: In function 'int main()':
tmp_find_type_with_size.cpp:3:88: error: narrowing conversion of '-1' from 'int' to 'unsigned int' [-Wnarrowing]
3 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) == 8)];
| ^
tmp_find_type_with_size.cpp:3:34: warning: size of array 'test_array' is not an integral constant-expression [-Wpedantic]
3 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) == 8)];
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tmp_find_type_with_size.cpp:3:34: error: size '-1' of array 'test_array' is negative
tmp_find_type_with_size.cpp: In function 'int main()':
tmp_find_type_with_size.cpp:3:88: error: narrowing conversion of '-1' from 'int' to 'unsigned int' [-Wnarrowing]
3 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) == 8)];
| ^
tmp_find_type_with_size.cpp:3:34: warning: size of array 'test_array' is not an integral constant-expression [-Wpedantic]
3 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) == 8)];
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tmp_find_type_with_size.cpp:3:34: error: size '-1' of array 'test_array' is negative
tmp_find_type_with_size.cpp: In function 'int main()':
tmp_find_type_with_size.cpp:3:88: error: narrowing conversion of '-1' from 'int' to 'unsigned int' [-Wnarrowing]
3 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) == 8)];
| ^
tmp_find_type_with_size.cpp:3:34: warning: size of array 'test_array' is not an integral constant-expression [-Wpedantic]
3 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) == 8)];
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tmp_find_type_with_size.cpp:3:34: error: size '-1' of array 'test_array' is negative
Something missing? Or did i forget to add some stuff? The only thing i changed (compared to newlib) was to add
-mcrt=clib2
to CXXFLAGS, so it gets picked up instead of newlib. Help? Thank you
|
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg
|
|
|
Re: New verson of CLiB2 from Andrea (afxgroup)
|
|
Amigans Defender 
Joined: 2006/12/2 13:27 Last Login
: Today 7:39
From Taranto, Italy
Group:
Staff members Moderators Registered Users
|
g++: error: unrecognized command-line option '-Wpragma-pack'
It seems a problem on gcc not on clib2
However regard clib2. The purpose is to have a C library that doesn't require ages to be updated like newlib. If we find bugs or we want to implement some new stuff we can do it. And read well "WE". I mean. We are in 2022 not in 1990 where closed source was the rule. Today the open source is the solution but no one in Amiga Land understand this (Even Microsoft has learn the lesson). I hope that all of you will help the project. I'm pretty sure there are bugs because i've made really a lot of changes. So this is the purpose. I cannot rely anymore on newlib for my projects because Hyperion/Aeon/God/Satana are not reliable. Not anymore.
|
i'm really tired...
|
|
|
Re: New verson of CLiB2 from Andrea (afxgroup)
|
Posted on: 4/26 10:32
#44
|
Amigans Defender 
Joined: 2006/12/2 13:27 Last Login
: Today 7:39
From Taranto, Italy
Group:
Staff members Moderators Registered Users
|
I've published a new beta https://github.com/afxgroup/clib2/releases/tag/v1.0.0-beta-2Use this one that has a lot of improvements and fixes
|
i'm really tired...
|
|
|
Re: New verson of CLiB2 from Andrea (afxgroup)
|
Posted on: 4/26 11:17
#45
|
Home away from home 
Joined: 2006/11/26 21:45 Last Login
: Yesterday 17:52
From a dying planet
Group:
Registered Users
|
@afxgroup
Nice, thank you
|
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg
|
|
|
Re: New verson of CLiB2 from Andrea (afxgroup)
|
|
Home away from home 
Joined: 2006/11/26 21:45 Last Login
: Yesterday 17:52
From a dying planet
Group:
Registered Users
|
@afxgroup
Question...does the clib2 dir go into SDK: (root) or to SDK:local/clib2?
|
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg
|
|
|
Re: New verson of CLiB2 from Andrea (afxgroup)
|
|
Amigans Defender 
Joined: 2006/12/2 13:27 Last Login
: Today 7:39
From Taranto, Italy
Group:
Staff members Moderators Registered Users
|
SDK:clib2
In local folder are installed are third party libraries
|
i'm really tired...
|
|
|
Re: New verson of CLiB2 from Andrea (afxgroup)
|
|
Home away from home 
Joined: 2006/11/26 21:45 Last Login
: Yesterday 17:52
From a dying planet
Group:
Registered Users
|
@afxgroup
ty
|
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg
|
|
|
Re: New verson of CLiB2 from Andrea (afxgroup)
|
|
Home away from home 
Joined: 2007/9/11 12:31 Last Login
: Yesterday 19:58
From Russia
Group:
Registered Users
|
@All Just want to point out that new clib2 is pretty advanced already in compare with old one: i already have working builds for clib2 of those "big" libs : Irrliht Engine, SDL1/SDL2 and GL4ES. Also have build some heavy os3/68k game over new clib2 as well.
So step by step it start to be pretty good in compare with newlib with only differene that is not shared amiga library at the moment. But from other side it's open for everyone, so everyone can fix/update things in.
It also do support all that wchars/wctype/etc stuff, out of box, as well as have dummies for ipv6 defines/structs (yes, while they not works of course because of roadshow, you have no needs to worry about as all compiles out of box).
It also looks like that in end, many 3d party libs on os4depot do have clib2 versions of libs, but not all the time. For example old SDL_Mixer/Mikmod/Modplug for SDL1 miss the clib2 versions, or libbz2, or flac. But all of them of course can be recompiled too.
|
|
|
|
Re: New verson of CLiB2 from Andrea (afxgroup)
|
|
Site Builder 
Joined: 2006/12/2 23:57 Last Login
: Yesterday 22:15
From Athens/Dublin
Group:
Staff members Webmasters
|
@Raziel Quote: Question...does the clib2 dir go into SDK: (root) or to SDK:local/clib2? As afxgroup mentioned, it is better to have it in SDK:clib2. In local folder you usually install libs and include files that are comming from third party packages, and they are not deleted/overwritten in case you do an update of the SDK in the same folder. But the SDK:clib2 will be deleted with an SDK update, and will be replaced with the SDK version. @afxgroup Great work. I will test it today with my projects, but I am sure that Kas1e's projects are much better to test things like that. And I am glad that they work so good. Quote: ...is not shared amiga library at the moment. That would be good to have, but not a show stopper, in my opinion.
|
|
|
|
Re: New verson of CLiB2 from Andrea (afxgroup)
|
|
Quite a regular 
Joined: 2007/2/6 13:57 Last Login
: Yesterday 11:14
From Donostia (SPAIN)
Group:
Registered Users
|
HI, recompiled openurl (ReAction) and listed dependencies and noted that with "original" CLIB these 2 resources/libs aren't "added":
elf.library sysvpic.library
using clib2 (beta2) it adds these 2 resources/libs.
Just courosity.
|
|
|
|
Re: New verson of CLiB2 from Andrea (afxgroup)
|
|
Home away from home 
Joined: 2007/9/11 12:31 Last Login
: Yesterday 19:58
From Russia
Group:
Registered Users
|
@Javier Dunno about elf.library, but sysvpic.library is added for sysv functions. Without sysvpic.library new clib2 will of course still work, just when one will try to use sysv functions clib2 will return ENOSYS, but when library in place they will work as expected.
|
|
|
Currently Active Users Viewing This Thread:
1
(
0 members
and 1 Anonymous Users
)
|
|
|