Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
97 user(s) are online (64 user(s) are browsing Forums)

Members: 0
Guests: 97

more...

Headlines

Forum Index


Board index » All Posts (sTix)




Re: gcc 9 and 10
Just popping in
Just popping in


@kas1e

That's a good list. That's the type of very specific info I was trying to describe in my last post. I missed your comment.

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@IamSONIC

Quote:
If you're running out of ideas what to do next you could have a look at the summary (Requirements compiling WebKit) hans created a while ago

https://www.amigans.net/modules/xforum ... id=119194#forumpost119194

Maybe the first two are interesting:

1. We need our C/C++ stdlib headers to be brought up-to-date with the latest standard. Especially cmath. Newlib is missing multiple functions (log2(), asinh(), etc.).
2. Newlib also has gaps in its POSIX compliance. It's missing basics such as tzset()**


Unfortunately I have more time consuming hobbies than time :)

One big problem though, is that it looks like an endless pit of work. But it probably isn't if we can chop it up into pieces and distribute the work. If we'd 'just' start stubbing things to get it to build, then we'd have a list of gaps that we can work with, setting priorities, estimating effort (and perhaps creating bounties based on that) and so on. This might be a big task in itself of course.

Go to top


Re: Anyone Tried Compiling the latest WebKit?
Just popping in
Just popping in


@Hans
Quote:
Yes, we need an active maintainer for adtools (GCC and the C++ stdlib), and clib2/newlib. Jacadcaps encountered things that needed MorphOS kernel changes, so help from the OS4 dev team may be required either way.


If I remember correctly it was TLS support that required kernel work. I'm not 100% sure we need that (would be nice to have though), see https://gcc.gnu.org/onlinedocs/gccint/Emulated-TLS.html

But shouldn't it be possible to get things done in the kernel now, with Trevor being the owner?

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@IamSONIC
Quote:
Thanks for your efforts updating our compilers

No problem, just scratching my own itches :)

Go to top


Re: binutils updated port?
Just popping in
Just popping in


@Raziel

Those are a part of coreutils, not binutils, which is a good thing. There are two different versions in adtools, 5.2 and 8.27. 8.27 isn't ancient so someone must have done some work on it. That being said, that bug is not a part of coreutils (there's no way something like that can slip through upstream), so unless the Amiga specific patches have been fixed in 8.27 (and not backported) updating won't help. Maybe the problem is in newlib / clib2, but I guess that's less likely since then it should have shown up in many many places I guess.

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@Raziel
Quote:
gcc9 is working well with scummvm and it's c++11 functions

Great, thanks for testing.

Quote:
i haven't tested gcc10 (would like to wait for the std:: fix to hit it, just like wtih gcc9, if it hasn't already)

Which fix are you refering to? The two threading fixes from salass00 are included in both the gcc 9 and 10 builds.

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@kas1e and @IamSONIC

Excellent, very good to hear!

Go to top


Re: sshterm
Just popping in
Just popping in


@kas1e

Good to know that it shouldn't be like that. Maybe it's related to the kernel problem, it can affect networking if I understand correctly?

I don't think I'll try a rollback, I'll probably just mess things up. I've wrecked that machine too many times the last weeks. I don't even trust my own ability to copy and rename files anymore.

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@kas1e
Quote:
I set up, for now, a new Cygwin instance, and cloning gcc10 repo from you. I Will try to build it as usually build cross-compilers and give it a go to build firstly some simple stuff, and then Odyssey, just to see how it behave for real. If Oddysey will be compiled and works as before, then we can say it at least "ok"

Great! Lets hope for the best.

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


It would be nice with a recent version of gdb-binutils as well. I quickly peeked into the current patchset and what it would take to apply that to the latest gdb-binutils. I walked away with a strong desire to start smoking crack.

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@kas1e

Gcc 9 is 1:1 with SBA:s repo, how it's built, patches applied and so on.

Gcc 10 is 0.99:1. As far as OS4 is concerned it's 1:1 unless I've misunderstood something (which is a possibility of course :)

I'd say 10 is ready for some real testing. Would be interesting to see if it's possible to get a c++20 project running on OS4. It will probably lead to bugs popping up, like the threading problems you identified the other day, but that's good I guess.

Go to top


sshterm
Just popping in
Just popping in


Do any of you use sshterm? It's a very useful tool, but it seems to use a lot of CPU on my machine. A couple of windows with 'make -j32', 'find' or something else that dumps a lot of text and my system will become very unresponsive, jerky mouse and so on. I use an X5000 with the latest update (untouched, still on the new kernel).

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@Raziel

Feature complete (including the two fixes from salass00) gcc 9 and 10 can be found here:

https://github.com/sodero/adtools/releases/tag/alpha-2

There's still some work to be done on gcc 10, but that's just 68k stuff if I understand things right.

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@Raziel

I updated https://github.com/sodero/adtools/releases with the latest gcc 9 with c++17. If the clib2 PR takes to long I'll do a build with salass00s fix.

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@sTix

Bah, you wrote it above kas1e: '-athread=native'. I should pay more attention :)

Well then, looks like it works. But you need to wait a bit more before it ends up in adtools together with salass00s fix. I need to integrate a minor fix in clib2 first.

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@kas1e

It looks like we have c++17 and threading on gcc 9 now. But there seems to be a deployment problem left. As someone who has only done c++ on other platforms, I would expect my 'hello world' to be linked using just -lstdc++. But in this case that will lead to undefined references to __gthred_*. In the archive created by adtools there are thread model object files named gthr-amigaos-native and gthr-amigaos-single. If I link them as well everything works. But I must be missing something here?

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@kas1e

Quote:
I offer everyone 100$ for just fixing this one, but so far no one wants to deal with :)


If noone else wants to touch it then I don't dare to either. I've just spent a day with this code base and I understand almost nothing :)

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@kas1e

Quote:
edit: and last question, in gcc10 threading disabled, is it mean whole threading (-athread=native and stuff), or c++ threading?


That's a question I can't answer right now :) I need to do some digging.

Go to top


Re: gcc 9 and 10
Just popping in
Just popping in


@kas1e

Quote:
Wow! Did you apply patches from adtools which were done for early versions of GCC in full? If so, I may try to build Odyssey with it as well!


For gcc 9 all patches are applied. The only thing that had to go was c++17 (but that obviously isn't a part of the original patchset) due to limitations in clib2, like you've already noticed. I haven't tried newlib but since those sources are hidden somewhere in the woods it's IMHO better to fix the limitations in clib2.

For gcc 10 some 68k improvements and threading related patches had to go temporarily. But for OS4 and C++ <11 it should be alright. In other words, gcc 10 is still WIP. Gcc 9 has been merged in the main repo but I haven't yet opened a PR for 10 since I want to take a closer look at what I've done (and did not do) first since I will probably need help from Sebastian Bauer and it's a bit rude to ask for help without being atleast somewhat clear when trying to explain the problem :)

Quote:
Dare I ask if you are willing to deal with some issues later ?:)


I can always try. It's not my area of expertise though, and tomorrow the day job will absorb most of my time again.


Go to top


gcc 9 and 10
Just popping in
Just popping in


For those of you willing to take risks, experimental builds of gcc 9 and 10 can be found here (under assets):

https://github.com/sodero/adtools/releases

I've only tried this with C code, which seems OK. Raziel tried ScummVM, which is C++, and that seems to be OK as well.

Go to top



TopTop
« 1 ... 6 7 8 (9) 10 11 12 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project