|
Re: Porting to AmigaOS4 thread |
Posted on: 2019/10/8 7:07
#121 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 12:31 From Russia
Posts: 6821
|
@Raziel
Quote:
As Salas00 says its bug in public newlib version. For me Barony also crashes with that IDOS 0x00000000 only on public version of os4 , while didn't on beta ones with newer newlib. So while when i test it localy all works fine, when i release it ppls report crashes , and for make it works on public versions i had to do those workarounds. In other words, made that change localy for your own builds only, without commiting those changes to scummvm repo, as its bug in our side which already fixed just didn't released. |
|
|
Re: Porting to AmigaOS4 thread |
Posted on: 2019/10/8 7:46
#122 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
@kas1e
It's already up as PR, but i'll add a note that this behaviour has been fixed in beta and should be removed once this beta has hit the streets. Thank you very much for the help again Also thank you to all who contributed |
|
_________________
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: Porting to AmigaOS4 thread |
Posted on: 2019/10/8 8:56
#123 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
@kas1e
You got PM |
|
_________________
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: Porting to AmigaOS4 thread |
Posted on: 2019/10/11 19:24
#124 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
@all
So, i have a bunch of shared objects which i want to strip in one go, preferably with only one command. I read the manual for strip and tried doing it this way Quote:
which actually seems to work, but it only seems so, as all of the stripped binaries are broken afterwards. They do have the same size they'd have if i used strip shareddir/sharedlib -o othersubdir/sharedlib, but they are rejected by my program, so i'm assuming something wennt wrong. My question is: Is strip shareddir/* supposed to work? Might that be a bug in our binutils/strip command? Might it be that on-the-fly stripping/altering of shared libs are not supported or broken? Is there any other way i could automate the stripping of more than one shared objects WITHIN a makefile? I know how to do it with "list lformat" and executing the corresponding batch file afterwards, but i'd rather do it in the makefile. Thanks a lot |
|
_________________
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: Porting to AmigaOS4 thread |
Posted on: 2019/10/21 13:00
#125 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
Another sh/shell/makedir question
I've got a makedir file which features a for loop
for p in plugins/*
Now, while the above works perfectly in a shell (within a text file, started with "sh test.sh") it errors out in the makefile with Quote:
and i'm puzzled as to why? Any pointers? 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: Porting to AmigaOS4 thread |
Posted on: 2019/10/21 13:36
#126 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
@Raziel
I *think* i know the reason. While processing the makefile a temporary file is created in T: and it seems that the for loop holds just the first line instead of the four that needs to be processed. It errors because the one line does not match a complete loop. Need to find a way to pack everything in one line then. |
|
_________________
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: Porting to AmigaOS4 thread |
Posted on: 2019/10/21 14:00
#127 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
@Raziel
This one works with "sh test.sh", but will produce empty $p in the makefile script
for p in plugins/*; do "strip $p -o path/$p"; done
Edit: Hmm, something fishy is going on here. With this line
for _plugin in plugins/*; do "echo $_plugin"; done
i get this output Quote:
Why is my variable name cut (missing it's leading underscore) instead of it's entry read out? And who is responsible? I don't think it's the makefile per se, rather the temporary command in T: seem to cut my variable. Any help appreciated... Edited by Raziel on 2019/10/21 14:31:15
Edited by Raziel on 2019/10/21 14:32:05 |
|
_________________
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: Porting to AmigaOS4 thread |
Posted on: 2019/10/22 13:26
#128 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
@Raziel
Just to finish this... I ended up using foreach as a one-line command.
$(foreach plugin, $(PLUGINS), $(STRIP) $(plugin) -o $(AMIGAOSPATH)/$(plugin);)
|
|
_________________
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: Porting to AmigaOS4 thread |
Posted on: 2019/10/22 14:03
#129 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
What does that mean?
Quote:
|
|
_________________
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: Porting to AmigaOS4 thread |
Posted on: 2019/10/22 17:02
#130 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
@all
Ok, please help, another one of those darn shared objects bugs i don't know how to deal with... I get this on starting the app, no window/screen is ever opened, it seems it's crashing while reading in the plugins (again), but this time it's libstdc++ which is complaining
Crash log for task "scummvm"
Edited by Raziel on 2019/10/23 13:01:56
|
|
_________________
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: Porting to AmigaOS4 thread |
Posted on: 2019/10/22 18:02
#131 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2007/7/14 21:30 From Lothric
Posts: 1241
|
@Raziel
r9 has 0x8 in it, so this is attempt to read (Load Word and Zero) from a zero page (0-4095). (I don't understand why DAR has some "sane" value). I guess there is yet another NULL pointer issue lurking there. In SDL.cpp you might try to replace dynamic_cast with static_cast, just for test. Static_cast is simpler and unsafer than dynamic_cast. |
|
|
Re: Porting to AmigaOS4 thread |
Posted on: 2019/10/22 18:30
#132 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
@Capehill
I'm completely lost here ![]() There is all sorts of crazy stuff going on now. I changed the CXXFLAGS from -std=gnu++11 to -std=c++11 and it will error out in configure...that was to be expected, ince vsnprintf is not supported. I changed it to use none -std and now i'm getting a window on scummvm start telling me ELF library Unable to resolve symbol '_ZdlPvj' in scummvm Back to using -std=gnu++11 then and trying your fix EDIT: I'm editing this, so that i may not forget what the fix was and to help others looking for a solution. The reason for scummvm failing, was that it overrid --std=gnu++11 with it's configure-based --std=c++11. Since configure will always be the last one claiming compiler flags it clashed. A fix is now in place as easy as simply using --std=gnu++11 for newlib based, __STRICT_ANSI__ platforms such as AmigaOS4. Edited by Raziel on 2020/5/31 13:30:29
|
|
_________________
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: Porting to AmigaOS4 thread |
Posted on: 2019/10/22 19:02
#133 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
@capehill
Quote:
edit: i really hope it will be just another NULL pointer case...ideally one that is as easy to fix as the last one Any debug prints i should set? |
|
_________________
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: Porting to AmigaOS4 thread |
Posted on: 2019/10/23 12:54
#134 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
@Capehill
Is there anything i could do to corner the problem? |
|
_________________
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: Porting to AmigaOS4 thread |
Posted on: 2019/10/23 19:14
#135 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2007/7/14 21:30 From Lothric
Posts: 1241
|
@Raziel
A smaller example would be helpful. I doubt Sebastian will start debugging ScummVM project. Problem is the crash occurs deep in the standard C++ library. There isn't probably any AmigaOS 4 -specific code near that but who knows? scummvm-test/sobjs/libstdc++.so - is this the one that came with your GCC 8.2 or some other version? Have you checked with Snoopy which .so is loaded? Does threading model (-athread) make any difference? I tried to make a trivial dynamic_cast example and was able to crash with an ISI (you have a DSI), when linking dynamically, but I'm simply too tired now to write any kind of "sane" bug report. Maybe on weekend. |
|
|
Re: Porting to AmigaOS4 thread |
Posted on: 2019/10/23 19:35
#136 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
@Capehill
No problem, you already gave me some pointers on where to look next. libstdc++.so is the one that came with my AmigaOS4 install CD, i didn't know there were newer versions...have to take a look. I also read somewhere about -athread=amiga, which should be used instead of native, have to check that too, i guess. I'll check out what happens if i explicitely give the plugins path through a DEFINE, instead of letting scummvm find it eventually. Snoopy doesn't tell me which .so is load, because it will crash beforehand, but the SDL1 build of scummvm tells me that none of the plugins from scummvm can be load, but that might be a completely different error?
ScummVM_SDL1 -d9 -F
I don't get this output with SDL2. And finally, i'm sorry, but i'm not able to provide any other testcase than ScummVM. 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: Porting to AmigaOS4 thread |
Posted on: 2019/10/23 20:08
#137 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2007/7/14 21:30 From Lothric
Posts: 1241
|
@Raziel
GCC:lib/ should have another version. To be honest I don't know how these are to be mixed (the old and new libstdc++.so) and what is the compatibility. Quote:
But GR did (show the path). As I said, I'm tired.. I don't think SDL_LoadObject is implemented in SDL1 port. |
|
|
Re: Porting to AmigaOS4 thread |
Posted on: 2019/10/23 20:14
#138 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
@Capehill
Hehe, you seem to forget you are talking to noob ![]() Mixing is easy, you just have to forget that there is libstdc++.so in yet another directory i completely missed. I was using ancompletely outdated libstdc++ the whole time...funny that it worked at one time. Trying to rebuild and test again... Thanks for the hint about SDL1 missing SDOL_LoadObject...something for the future in SDL1 port? Should i write a bug report? Take your time to recover...and thanks for all the hints |
|
_________________
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: Porting to AmigaOS4 thread |
Posted on: 2019/10/23 20:45
#139 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
Hmm, next funny thing...
libstdc++.so is located in sdk:gcc/lib but libgcc.so is in sdk:gcc/lib/gcc/ppc-amigaos/8.3.0/ Why is that? May it be an incomplete installation? A Problem of the beta-nature of gcc 8.3.0? Can i savely use it? It's huge...894.549 bytes compared to 56.324 of the one i have now (unstripped maybe)? Can i savely strip it? Questions... |
|
_________________
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: Porting to AmigaOS4 thread |
Posted on: 2019/10/23 21:35
#140 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3972
|
@Capehill
/me hugs Capehill Recompiled and rebuilt with updated libgcc and libstdc++ in place and working again ![]() It still crashes, but only if i have an empty .ini. Probably because it can't access some data files which are set up with path= in said .ini file, will have to check that. Why libstdc++ is still crashing is beyond me though, shouldn't have aynthing to do with it...having the correct sobjs/ in place now...ah well, more mysteries. Thank you very much |
|
_________________
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 |
||