Welcome, Guest. Please login or register.

Author Topic: AROS now has a native gcc C/C++ compiler for use within AROS itself.  (Read 2179 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
As the subject says, I finished the jobs required by the bounty #4, that is porting gcc C and C++ compilers to AROS (and binutils along the way...). The sources are in the AROS CVS, a first binary release, meant for internal testing purposes only, can be found here:

 http://www.aros.org/downloads/gcc-g++-4.3.1,binutils-2.14-aros.tar.bz2

It doesn't contain any instructions on how to set the thing up, but I'll give you them here:

First of all, you need AROS to be completely up to date, so you'll have to wait for the next nightly builds if you have no access to the CVS, then once you get the archive unpack it wherever you want (as long as it's accessible from inside AROS) and then put these lines in your S:User-Startup (assuming you unpacked the archive in sys:):

    assign nix: sys:usr
    assign usr: nix:
    assign bin: usr:bin

    path usr:bin add

Now, you must copy AROS' libraries and includes in the right place. If you've got access to CVS and use to compiler AROS by yourself, you can find the includes in the SYS:Include directory and libraries in the SYS:lib directory, if instead you got only the binary archive from the AROS web site, then you need to get also the SDK from there. You can find
the includes in the AROS-SDK/i386/include directory, and the libraries in the AROS-SDK/i386/lib directory.

Once you know where the include files and libraries are, then copy them, respectively, to nix:include and nix:lib. For example, say the includes are in the SYS:Include dir and the libraries are in the SYS:lib dir, then issue these commands from the AROS' shell:

    copy SYS:Include/#? nix:include ALL
    copy SYS:lib/#? nix:lib

Once all that is done, you're ready to start working with the C and C++ compiler.

Remember that this is the first release, with testing purposes only, so there might be still bugs left. Please send bug reports either to the AROS-Dev ML or to the AROS' bug tracker on the sourceforge site, which can be found here:

    http://sourceforge.net/tracker/?atid=439463&group_id=43586&func=browse

One more thing: gcc uses temporary files to achieve some of its goals (pipes are not supported yet), and these temporary files are put in T:.  However, T: is usually assigned to Ram:T, and thus temporary files, which can be quite large, subtract memory from the system which could be used and could be needed by the compilation process itself. If you thus experience low memory problems, try to assign T: to some on-disk directories. If that doesn't appeal you, you can also define the environment variables TMP or TMPDIR to contain a location in which temporary files have to be put by gcc.

So far I haven't experienced any crashes, but if any should happen, please try increasing the stack used by the CLI, via the stack command, and see if that has any good effects, but in any case please submit a bug report.

As a final note, hoping I haven't forgotten anything, feel free to spread the news around, as long as a link to this email in the TeamAROS ML archive is provided together with your message, and as long as you _urge_ people to read this email before they try the binaries out.

Remember: this is still a testing release only, you're encouraged to submit bug reports, never assume it won't fail on you.

Best regards,
Fabio Alemagna

Offline iamaboringperson

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 5744
    • Show only replies by iamaboringperson
Re: AROS now has a native gcc C/C++ compiler for use within
« Reply #1 on: November 24, 2003, 07:03:02 AM »
That's jolly bloody good news!
I hated the old method. It's becoming more and more like an OS every day! ;)
 

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: AROS now has a native gcc C/C++ compiler for use within
« Reply #2 on: November 24, 2003, 10:48:38 AM »
I agree, It was annoying having to have a Linux system to develop for AROS.

Offline Emufreak

  • Jr. Member
  • **
  • Join Date: May 2003
  • Posts: 64
    • Show only replies by Emufreak
Re: AROS now has a native gcc C/C++ compiler for use within
« Reply #3 on: November 24, 2003, 11:20:48 AM »
Now a developing environment would be nice
 

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: AROS now has a native gcc C/C++ compiler for use within
« Reply #4 on: November 24, 2003, 11:28:39 AM »
Quote
Now a developing environment would be nice


Do you mean an IDE? Then yes I agree :-)

I'm rather partial to Bloodshed's DevC++ which is a portable IDE for gcc... Maybe someone who knows about MUI could port it to the Amiga, so we can use it in AROS (or the Amigaoid OS of your choice) :-)

Offline System

  • Full Member
  • ***
  • Join Date: Jul 2003
  • Posts: 199
    • Show only replies by System
    • http://amiga.org
Re: AROS now has a native gcc C/C++ compiler for use within
« Reply #5 on: November 24, 2003, 01:26:45 PM »
Quote
Maybe someone who knows about MUI could port it to the Amiga, so we can use it in AROS


How about you do your own goddamned ports instead of leeching off everybody else's work? :)

Besides, DevC++ is done in Delphi, which means it's going to be 1000% unportable to Amiga, MorphOS, AROS, regardless of MUI :)

=Neko=
 

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: AROS now has a native gcc C/C++ compiler for use within
« Reply #6 on: November 24, 2003, 02:12:40 PM »
Neko!! You know that Work requires money... ;-)

I didn't realies it was in Delphi :-(

Looks like we'll have to make our own...