Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] emmix for linux ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1439
Location: indiana

PostPosted: Thu Aug 04, 2011 11:35 am    Post subject: [solved] emmix for linux ? Reply with quote

here there, for educational purposes i am looking for something equal to emmix ?? any suggestions here ??

i guess i could use emmix with wine or might there be issues i am not aware of momentarily ??


thanks a lot
_________________
I do not have a Superman complex, for I am God not Superman :D


Last edited by Mgiese on Sat Aug 06, 2011 1:25 am; edited 1 time in total
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Thu Aug 04, 2011 11:53 am    Post subject: Reply with quote

Well, if you are writing about the EM based mixture program then, as this one as been developed in Fortran under UNIX, there should be IMHO less trouble (as well as make more sense) trying to build it on Linux than trying to make its [windows version + wine] work.

There has actually been a time (~2002) when it was indeed building fine under Linux with something as simple as :
Code:
# f77 -o EMMIX EMMIX.f

I cannot really tell about what issues would rise about 10 years later on a Gentoo but I would indeed try this first.

EDIT : I just found some traces of building emmix under Linux... and... cannot resist the trolling... pardon-me...
<trolling>
The only problem found ten years ago was a... case sensitivity problem...
What I infere from your post is that... you should not feel that much concerned...
</trolling>
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1439
Location: indiana

PostPosted: Thu Aug 04, 2011 9:42 pm    Post subject: Reply with quote

http://www.maths.uq.edu.au/~gjm/emmix/emmix.html

i`d say this is the program i meant :) thanks !!
_________________
I do not have a Superman complex, for I am God not Superman :D
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1439
Location: indiana

PostPosted: Thu Aug 04, 2011 9:44 pm    Post subject: :( Reply with quote

Code:
# f77
bash: f77: command not found
bla # emerge -av f77

 * IMPORTANT: 5 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "f77".

emerge: searching for similar names... nothing similar found.


is there any fortran compiler in portage ??
_________________
I do not have a Superman complex, for I am God not Superman :D
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10286
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Aug 04, 2011 9:53 pm    Post subject: Reply with quote

Code:
$ sudo equery files gcc | grep fortran
/usr/bin/gfortran-4.5.2
/usr/bin/i686-pc-linux-gnu-gfortran-4.5.2
/usr/i686-pc-linux-gnu/gcc-bin/4.5.2/gfortran
/usr/i686-pc-linux-gnu/gcc-bin/4.5.2/i686-pc-linux-gnu-gfortran
/usr/lib/debug/usr/i686-pc-linux-gnu/gcc-bin/4.5.2/i686-pc-linux-gnu-gfortran.debug
/usr/lib/debug/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/libgfortran.so.3.0.0.debug
/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/libgfortran.a
/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/libgfortran.la
/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/libgfortran.so
/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/libgfortran.so.3
/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/libgfortran.so.3.0.0
/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/libgfortranbegin.a
/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/libgfortranbegin.la
/usr/share/gcc-data/i686-pc-linux-gnu/4.5.2/info/gfortran.info.bz2
/usr/share/gcc-data/i686-pc-linux-gnu/4.5.2/man/man1/gfortran.1.bz2
Yup. :wink:

Depends on the fortran USE flag, though:
Code:
$ sudo emerge -1vp gcc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] sys-devel/gcc-4.5.2  USE="(-altivec) -bootstrap -build doc (-fixed-point) fortran -gcj -graphite -gtk (-hardened) (-libffi) -lto mudflap (-multilib) multislot (-n32%) (-n64%) nls -nocxx -nopie -nossp nptl -objc -objc++ -objc-gc openmp -test -vanilla" 0 kB                                                                                                       

Total: 1 package (1 reinstall), Size of downloads: 0 kB
- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1439
Location: indiana

PostPosted: Thu Aug 04, 2011 10:02 pm    Post subject: Reply with quote

ok :) gcc was compiled with that useflag :

Code:
# equery files gcc | grep fortran
/usr/bin/gfortran-4.4.5
/usr/bin/x86_64-pc-linux-gnu-gfortran-4.4.5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/32/libgfortran.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/32/libgfortran.la
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/32/libgfortran.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/32/libgfortran.so.3
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/32/libgfortran.so.3.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/32/libgfortranbegin.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/32/libgfortranbegin.la
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/libgfortran.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/libgfortran.la
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/libgfortran.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/libgfortran.so.3
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/libgfortran.so.3.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/libgfortranbegin.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/libgfortranbegin.la
/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.5/info/gfortran.info.bz2
/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.5/man/man1/gfortran.1.bz2
/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.5/gfortran
/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.5/x86_64-pc-linux-gnu-gfortran
so "f77" is just a symlink then ??
_________________
I do not have a Superman complex, for I am God not Superman :D
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10286
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Aug 04, 2011 10:12 pm    Post subject: Reply with quote

Not on my system (and not by default). Make one if you want one.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Thu Aug 04, 2011 10:36 pm    Post subject: Reply with quote

Mgiese wrote:
so "f77" is just a symlink then ??

I am actually getting too old :cry:
I was just ready to correct my UNIX f77 good old command I have been using te... twent... thir 8O years ago suggesting g77 as the replacement (as gcc was the replacement for cc) http://www.kilmnj.com/g77/
but... I understand that g77 is deprecated too... :roll:

Well... just fire gcc... (built with the fortran use flag)... God is said as capable of recognizing his own... (help him by not forgetting the .f extension... :D )

Though I fear it is likely to be a fortran 95
http://gcc.gnu.org/fortran/

Water has flown under bridges... hope that last emmix sources are kept coherent with last fwhatever available.

Please tell us.
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1696

PostPosted: Thu Aug 04, 2011 11:16 pm    Post subject: Reply with quote

I think the current command is "gfortran"

But in the worst case, we still have some really old versions of gcc in portage :wink:

Code:
[I] sys-devel/gcc
    Available versions: 
        (2.95)  *2.95.3-r9 ~*2.95.3-r10!s
        (3.1)   *3.1.1-r2
        (3.2)   **3.2.2!s *3.2.3-r4
        (3.3)   (~)3.3.6-r1!s
        (3.4)   3.4.6-r2!s
        (4.0)   ~*4.0.4!s
        (4.1)   4.1.2!s
        (4.2)   (~)4.2.4-r1!s
        (4.3)   (~)4.3.3-r2!s 4.3.4!s (~)4.3.5!s (~)4.3.6!s
        (4.4)   (~)4.4.2!s (~)4.4.3-r3!s 4.4.4-r2!s 4.4.5!s (~)4.4.6!s
        (4.5)   (~)4.5.1-r1!s (~)4.5.2!s
        (4.6)   {M}(**)4.6.0!s {M}(**)4.6.1!s[/list]


3.4 should definitely have g77.
_________________
“And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10286
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Aug 04, 2011 11:20 pm    Post subject: Reply with quote

Yeah, as I recall, it does.

And, aCOSwt, that's the last dialect I studied as well. :P

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Fri Aug 05, 2011 9:25 am    Post subject: Reply with quote

Start by crossing your fingers expecting that the fortran 95 compiler will do the trick.

So, fire your current gcc as I suggested.

BTW : I assume you copied EMMIX.f and EMMIX.max in the directory you are in.
CARE ABOUT CASE : EMMIX.f actually includes EMMIX.max => EMMIX.max should be created with this exact name.

Code:
# gcc -o emmix -lgfortran EMMIX.f


Well... the build will fail but the result is less bad than I was fearing :

- 8 apparently harmless warnings (that you can easily correct in the source if you like) We could even say that this compiles actually well.

The problem is when linking. The last error (undefined reference to main) is actually what prevents the executable to be built. There must be a way to easily workaround this. I unfortunately get no time today to dig further but I still believe this is the correct way to go.


Last edited by aCOSwt on Fri Aug 05, 2011 9:44 am; edited 1 time in total
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 8038
Location: ~Brussels - Belgique

PostPosted: Fri Aug 05, 2011 9:38 am    Post subject: Reply with quote

why did you use the C front-end in place of gfortran ?
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Fri Aug 05, 2011 9:47 am    Post subject: Reply with quote

XavierMiller wrote:
why did you use the C front-end in place of gfortran ?


:idea: :idea: :idea: :idea: :idea:
Thank you XavierMiller, I am JUST TOO stupid !!!

Please Mgiese do more simply and efficiently use :
Code:
# gfortran -o emmix EMMIX.f


Then... enjoy ! 8)

Thanks one more time XavierMiller !
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 8038
Location: ~Brussels - Belgique

PostPosted: Fri Aug 05, 2011 9:59 am    Post subject: Reply with quote

The problems resides sometimes... between the chair and the keyboard ;)
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1439
Location: indiana

PostPosted: Sat Aug 06, 2011 1:26 am    Post subject: Reply with quote

XavierMiller wrote:
The problems resides sometimes... between the chair and the keyboard ;)
as always :D
_________________
I do not have a Superman complex, for I am God not Superman :D
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sat Aug 06, 2011 6:13 am    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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