Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
144 user(s) are online (77 user(s) are browsing Forums)

Members: 1
Guests: 143

saimo, more...

Headlines

 
  Register To Post  

(1) 2 3 4 »
Updated Gnu compiler?
Quite a regular
Quite a regular


See User information
Hello,


i'm working on a little project with mingw.

I would like to port this little project on Amiga.
The problem is that in the code i use c++ 11 feature such: future, chrono and so on...

WHat about threads programming with the actual gnu compiler?

Retired
Go to top
Re: Updated Gnu compiler?
Quite a regular
Quite a regular


See User information
There's a GCC 4.9 port maintained here:
https://github.com/sba1/adtools

There are ready to use Debian packages, I tried them on Ubuntu. Not sure about the native compiler, I couldn't build it under cygwin the last time I checked.

This is just like television, only you can see much further.
Go to top
Re: Updated Gnu compiler?
Just popping in
Just popping in


See User information
When I built version 4.9, the version in trunk didn't build right away. Instead you have to check out the tagged version 4.9, and also change some makefiles.

I used salas00 guide: http://www.os4coding.net/blog/salass0 ... -compiler-adtools-project and also made minor changes to the version used in the makefiles. Think I only had to change in two places; where it CD'ed to "trunk", I changed to "4.9.x", or something like that.

This is however the cross-compiler. But I guess that could be used in order to compile a PPC version, on the cross-compile system.

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top
Re: Updated Gnu compiler?
Quite a regular
Quite a regular


See User information
@jaokim

So we don't have any native AmigaOS version of the GCC 4.9?

Retired
Go to top
Re: Updated Gnu compiler?
Home away from home
Home away from home


See User information
@AmigaBlitter

No you most compile it your self.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Updated Gnu compiler?
Just can't stay away
Just can't stay away


See User information
maybe in the next sdk update who knows...

Go to top
Re: Updated Gnu compiler?
Just can't stay away
Just can't stay away


See User information
GCC 5.3.0 is now available on Aminet:

http://aminet.net/package/dev/gcc/adtools-os4

Go to top
Re: Updated Gnu compiler?
Just can't stay away
Just can't stay away


See User information
@salass00

Wow, this is good news. Thanks everybody involved.

Go to top
Re: Updated Gnu compiler?
Quite a regular
Quite a regular


See User information
@salass00

Thank you to all involved.

It's native or cross?

Retired
Go to top
Re: Updated Gnu compiler?
Quite a regular
Quite a regular


See User information
@salass00

What about to release the Cairo-Amiga surface skeleton file too?

Thank you very much.


Retired
Go to top
Re: Updated Gnu compiler?
Just can't stay away
Just can't stay away


See User information
@AmigaBlitter

Quote:

Thank you to all involved.


That would be mostly Sebastian Bauer AFAIK.

Quote:

It's native or cross?


Native.

A cross-compiler if needed can be compiled from:

https://github.com/sba1/adtools

Go to top
Re: Updated Gnu compiler?
Just popping in
Just popping in


See User information
@salass00

Just for notes...anyone who uses that adtools setup will preferably be running it on Ubuntu "Wily Werewolf" and I recommend the LTS branch for making GCC 4.9

Hope this helps...

now we just need a cross compiler users guide

Go to top
Re: Updated Gnu compiler?
Just popping in
Just popping in


See User information
@salass00

Quote:
GCC 5.3.0 is now available on Aminet


Could somebody sum up for a noob the main advantages of GCC 5.3.0 over the latest found in the SDK (AFAIK 4.2.4).

Go to top
Re: Updated Gnu compiler?
Home away from home
Home away from home


See User information
@lazi

Can possible create faster programs.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Updated Gnu compiler?
Quite a regular
Quite a regular


See User information
@lazi
It supports the latest C++11 and C++14 standards.

This is just like television, only you can see much further.
Go to top
Re: Updated Gnu compiler?
Just can't stay away
Just can't stay away


See User information
@lazi

Better code generation as LiveForIt said and more useful warnings.

Newer gcc versions can analyse code to tell if for instance a variable can actually be used uninitialised or not whereas gcc 4.2.4 often gives false positives.

To give an example a code like this produces a warning in gcc 4.2.4 but not in gcc 4.9.2:
int y;

if (
== 0)
    
42;

if (
== 0)
    
do_something(y);


Because do_something() is only called if x is 0 (which is also the condition for setting y) the variable y is in fact never used uninitialised but gcc 4.2.4 does not see this.

The example may seem a little artificial but I run into this kind of situation often enough for it to be annoying when switching between gcc 4.9.2 (cross-compiler) and 4.2.4 (native).

Go to top
Re: Updated Gnu compiler?
Home away from home
Home away from home


See User information
@salass00

Can anyone help me finding out what's going wrong?

Installed 5.3.0
Fixed the missing newlib folder in GCC:lib/gcc/ppc-amigaos/5.3.0/ by clonign the lib dir in the same directory

But whatever i do i always get a "GCC compiler...not found!" from ./configure.

I also get it now when i use the 4.2.4 gcc install (of course, adapted the path and assign and rebooted)

HELP!

edit:
I get this when trying to build/compile:
ld: cannot find -lgcc
ld: cannot find -lgcc_eh

How to cure that?

FIXED:
The "fix" has to be

1) create a newlib subdir in GCC:lib/gcc/ppc-amigaos/5.3.0/
2) copy GCC:lib/gcc/ppc-amigaos/5.3.0/lib to GCC:lib/gcc/ppc-amigaos/5.3.0/newlib


Edited by Raziel on 2015/12/28 17:21:31
Edited by Raziel on 2015/12/28 18:16:54
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
Go to top
Re: Updated Gnu compiler?
Quite a regular
Quite a regular


See User information
Here GCC:lib/gcc/ppc-amigaos/5.3.0/newlib didn't work, so the library files are now in GCC:lib/gcc/ppc-amigaos/5.3.0/newlib/lib . Snoopy will tell you where else ld looks for them if you think that's way too long.

Go to top
Re: Updated Gnu compiler?
Home away from home
Home away from home


See User information
@Thematic

Thanks i "fixed" it in the meantime.

Problem was that i was building with -dynld.
It didn't find the correct versions of the libs afterwards.

Went back to using static builds completely as it opposes my understanding of using "shared" libs, when most of the programs have to provide a specific sobjs/ dir with said (updated/special built) shared objects, to make it run for everyone anyway.

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
Go to top
Re: Updated Gnu compiler?
Quite a regular
Quite a regular


See User information
I get the same error:

ld: cannot find -lgcc
ld: cannot find -lgcc_eh

it points to another directory


Retired
Go to top

  Register To Post
(1) 2 3 4 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project