View previous topic :: View next topic |
Author |
Message |
flameman n00b
Joined: 10 Apr 2011 Posts: 39
|
Posted: Mon Jun 25, 2012 12:16 pm Post subject: adding modula2 to supported languages of gcc |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54744 Location: 56N 3W
|
Posted: Mon Jun 25, 2012 5:59 pm Post subject: |
|
|
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 |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3525
|
Posted: Mon Jun 25, 2012 7:22 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54744 Location: 56N 3W
|
Posted: Mon Jun 25, 2012 7:32 pm Post subject: |
|
|
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 |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3525
|
Posted: Mon Jun 25, 2012 8:00 pm Post subject: |
|
|
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 |
|
|
flameman n00b
Joined: 10 Apr 2011 Posts: 39
|
Posted: Mon Jun 25, 2012 8:24 pm Post subject: |
|
|
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 |
|
|
DirtyHairy l33t
Joined: 03 Jul 2006 Posts: 608 Location: Würzburg, Deutschland
|
Posted: Thu Jun 28, 2012 7:41 am Post subject: |
|
|
Uh-hum, trying not to sound condescending, but there's the "fortran" useflag Will give you a nice, shiny gfortran. |
|
Back to top |
|
|
flameman n00b
Joined: 10 Apr 2011 Posts: 39
|
Posted: Thu Jun 28, 2012 7:27 pm Post subject: |
|
|
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 |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3525
|
Posted: Thu Jun 28, 2012 7:57 pm Post subject: |
|
|
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 |
|
|
flameman n00b
Joined: 10 Apr 2011 Posts: 39
|
Posted: Fri Jun 29, 2012 7:57 am Post subject: |
|
|
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 |
|
|
DirtyHairy l33t
Joined: 03 Jul 2006 Posts: 608 Location: Würzburg, Deutschland
|
Posted: Fri Jun 29, 2012 10:01 am Post subject: |
|
|
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 |
|
|
flameman n00b
Joined: 10 Apr 2011 Posts: 39
|
Posted: Fri Jun 29, 2012 12:36 pm Post subject: |
|
|
thank you =) |
|
Back to top |
|
|
|