Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
adding modula2 to supported languages of gcc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
flameman
n00b
n00b


Joined: 10 Apr 2011
Posts: 44

PostPosted: Mon Jun 25, 2012 12:16 pm    Post subject: adding modula2 to supported languages of gcc Reply with quote

hi
is it possible to ask emerge to recompile gcc with languages=c,c++,gm2 ?
what have i to modify in order to ask emerge to to it ?

gm2 stands for gnu modula2, and it should be supported by the GNU gcc project

regards
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32461
Location: 56N 3W

PostPosted: Mon Jun 25, 2012 5:59 pm    Post subject: Reply with quote

flameman,

gm2 is supported but not yet integrated into gcc.
It needs gcc-4.1.2 to work with.

You need an ebuild (google can't find one) if you want portage to install it for you, or you can build it by hand outside of portage. The GNU site has the details.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 2689

PostPosted: Mon Jun 25, 2012 7:22 pm    Post subject: Reply with quote

In general, what is the status of gm2? I had thought it long-dead, until seeing this thread. Once upon a time I had written a fair amount of code in Modula-2, including the types of stuff that people generally thing can only be done in C. (Reentrant iterrupt handlers (in DOS, no less) and routines for reading and writing legacy binary data formats, to name two.)
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32461
Location: 56N 3W

PostPosted: Mon Jun 25, 2012 7:32 pm    Post subject: Reply with quote

depontius

Modula-2 seems to be alive ...
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 2689

PostPosted: Mon Jun 25, 2012 8:00 pm    Post subject: Reply with quote

Being attached to 4.1.2 when gcc stable is 4.5.3 doesn't leave me feeling as if it's very alive. Still it's worth looking at.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
flameman
n00b
n00b


Joined: 10 Apr 2011
Posts: 44

PostPosted: Mon Jun 25, 2012 8:24 pm    Post subject: Reply with quote

I can clone the gnu pascal ebuild in order to do something similar
but imagine i want to add fortran (i suppose it is perfectly integrated in the gcc tree)
manually i can provide the configure statement languages=c,c++,fortran
exacly where emerge is telling the .configure to configure the build up in this way ?
if i open /usr/portage/dev-lang/gcc/* i can't fine nothing about it

any doc around ?
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Thu Jun 28, 2012 7:41 am    Post subject: Reply with quote

Uh-hum, trying not to sound condescending, but there's the "fortran" useflag :) Will give you a nice, shiny gfortran.
Back to top
View user's profile Send private message
flameman
n00b
n00b


Joined: 10 Apr 2011
Posts: 44

PostPosted: Thu Jun 28, 2012 7:27 pm    Post subject: Reply with quote

It is not clear to me how gcc ebuild is working, i'd like to understand from where emerge finds what he puts into the configure about languages and other stuff.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 2689

PostPosted: Thu Jun 28, 2012 7:57 pm    Post subject: Reply with quote

In this particular case, GNU Pascal is not built with the gcc ebuild. It has its own ebuild, which works from an older (3.4.x) gcc release.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
flameman
n00b
n00b


Joined: 10 Apr 2011
Posts: 44

PostPosted: Fri Jun 29, 2012 7:57 am    Post subject: Reply with quote

I know, but i'd like to know how emerge can be able to configure gcc about the supported languages: where it find this information ? It is not written inside his ebuild
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Fri Jun 29, 2012 10:01 am    Post subject: Reply with quote

Yes, it is encoded in the ebuild, but the actual functonality is hidden in the toolchain eclass. Take a look at gcc-compiler-configure () in /usr/portage/eclass/toolchain.eclass , there you'll find what you are looking for.
Back to top
View user's profile Send private message
flameman
n00b
n00b


Joined: 10 Apr 2011
Posts: 44

PostPosted: Fri Jun 29, 2012 12:36 pm    Post subject: Reply with quote

thank you =)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum