Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135227 - scilab-4.0 fails to build w/ gcc 4.1 (no gfortran)
Summary: scilab-4.0 fails to build w/ gcc 4.1 (no gfortran)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-01 21:02 UTC by Gustavo Ribeiro Alves
Modified: 2006-09-17 01:43 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Config Log (config.log,30.94 KB, text/plain)
2006-06-01 21:03 UTC, Gustavo Ribeiro Alves
Details
scilab-4.0 config.log (config.log,25.95 KB, text/plain)
2006-09-15 15:49 UTC, Maarten Maathuis
Details
scilab snapshot(20060913) config log (config.log,45.68 KB, text/plain)
2006-09-15 15:50 UTC, Maarten Maathuis
Details
potential gfortran fix for x86_64 (scilab-4.0-configure-gfortran.patch,14.39 KB, patch)
2006-09-16 08:40 UTC, Markus Dittrich (RETIRED)
Details | Diff
Ebuild diff needed to get it to compile. (scilab.diff,2.53 KB, patch)
2006-09-16 09:59 UTC, Maarten Maathuis
Details | Diff
Updated patch to fix Makefile.linux64 issue (scilab-4.0-configure-gfortran.patch,14.39 KB, patch)
2006-09-16 10:46 UTC, Markus Dittrich (RETIRED)
Details | Diff
patch to force proper multilib install patch (scilab-4.0.ebuild.patch,622 bytes, patch)
2006-09-16 14:30 UTC, Markus Dittrich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo Ribeiro Alves 2006-06-01 21:02:08 UTC
Scilab 4.0 fails to build w/ gcc 4.1 complaining there's no fortran compiler on the system:

checking for g77... no
checking for f2c... no
configure: error: Unable to configure: no Fortran compiler found

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/scilab-4.0/work/scilab-4.0/config.log

!!! ERROR: sci-mathematics/scilab-4.0 failed.
Call stack:
  ebuild.sh, line 1531:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  scilab-4.0.ebuild, line 79:   Called econf '--without-tk' '--without-xaw3d' '--with-gtk2' '--without-ocaml' '--without-java' '--with-atlas-library=/usr/lib64' '--with-gfortran'
  ebuild.sh, line 533:   Called die

I can attest I have gfortran installed:

omegaone gralves # gfortran
gfortran: no input files

I'll attach config.log to this bug.
Comment 1 Gustavo Ribeiro Alves 2006-06-01 21:03:03 UTC
Created attachment 88155 [details]
Config Log
Comment 2 Markus Dittrich (RETIRED) gentoo-dev 2006-06-01 21:52:30 UTC
Thanks for the fast reply and I'll have a look at this tomorrow. Probably
a problem for x86_64. Interestingly, according to your config.log gfortran
is detected

configure:2037: checking for gfortran
configure:2053: found /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1/gfortran
configure:2064: result: yes

but somehow not used later on.

Talk to you soon,
Markus
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-21 08:05:16 UTC
Looks like there's some empty variable here:

configure:4968: checking for Fortran 77 compiler version
configure:4971:  --version </dev/null >&5
./configure: line 4972: --version: command not found
configure:4974: $? = 127
configure:4976:  -v </dev/null >&5
./configure: line 4977: -v: command not found
configure:4979: $? = 127
configure:4981:  -V </dev/null >&5
./configure: line 4982: -V: command not found
configure:4984: $? = 127
configure:4991: checking whether we are using the GNU Fortran 77 compiler
configure:5005:  -c  conftest.F >&5
./configure: line 5006: -c: command not found
Comment 4 Maarten Maathuis 2006-09-12 22:22:49 UTC
This problem also occurs for me, any idea how to fix it?
Comment 5 Arrigo Marchiori 2006-09-13 03:14:41 UTC
Please note that scilab-2.7-r3 doesn't compile either.

These are the interesting (I think :-) output lines of "emerge scilab":

which: no g77 in (/usr/local/sbin:/sbin:/usr/sbin:/usr/lib/portage/bin:/usr/local/bin:/bin:/usr/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/kde/3.4/sbin:/usr/kde/3.4/bin)
 * No fortran compiler found on the system!
 * Please add fortran to your USE flags and reemerge gcc!

!!! ERROR: sci-mathematics/scilab-2.7-r3 failed.
Call stack:
  ebuild.sh, line 1562:   Called dyn_setup
  ebuild.sh, line 665:   Called pkg_setup
  scilab-2.7-r3.ebuild, line 41:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 6 newt 2006-09-14 16:40:17 UTC
Linking g77 to gfortran-4.1.1 in /usr/bin works but its a horrible fix. Hope there is a better one soon. I am personally having a problem with Xaw3d not being found correctly. I am certain I have it installed but the configure script is having trouble making it work.
Comment 7 Markus Dittrich (RETIRED) gentoo-dev 2006-09-14 18:11:44 UTC
(In reply to comment #6)
> Linking g77 to gfortran-4.1.1 in /usr/bin works but its a horrible fix. Hope
> there is a better one soon. I am personally having a problem with Xaw3d not
> being found correctly. I am certain I have it installed but the configure
> script is having trouble making it work.
> 

Could you please clarify if
1) You have /usr/bin/gfortran but need /usr/bin/g77 linked
to gfortran to compile it, or 
2) there is no /usr/bin/gfortran whatsoever on your system.

Regarding Xaw3d: Could you make sure that you have libXaw3d.so
on your system and please post the relevant part of your config.log.
Also, please post your emerge --info.

Thanks,
Markus
Comment 8 Maarten Maathuis 2006-09-15 03:46:08 UTC
Upstream seems to have fixed the bug at some point, since a snapshot does compile. I have other issues with those, but they do compile. The makefile differences are too big for me to see what is needed.
Comment 9 Markus Dittrich (RETIRED) gentoo-dev 2006-09-15 05:16:43 UTC
(In reply to comment #8)
> Upstream seems to have fixed the bug at some point, since a snapshot does
> compile. I have other issues with those, but they do compile. The makefile
> differences are too big for me to see what is needed.
> 

Hi Maarten,

Thanks, I'll have a look at this over the weekend. However, since I don't
have this problem it might be difficult to track down. Could you please
post your emerge --info and the config.logs of the broken and working
scilab versions.

Thanks in advance,
Markus
Comment 10 Maarten Maathuis 2006-09-15 15:49:11 UTC
Created attachment 97089 [details]
scilab-4.0 config.log

This one fails.
Comment 11 Maarten Maathuis 2006-09-15 15:50:59 UTC
Created attachment 97090 [details]
scilab snapshot(20060913) config log 

This one does detect the fortran compiler.
Comment 12 Maarten Maathuis 2006-09-15 15:51:25 UTC
Config logs added as requested.
Comment 13 Markus Dittrich (RETIRED) gentoo-dev 2006-09-16 08:40:50 UTC
Created attachment 97153 [details, diff]
potential gfortran fix for x86_64

Thank you very much for the config files. I've come up with a
patch that might fix your problems. Unfortunately, I can't test
it lacking an x86_64 box. Please give it a shot and report back.

Thanks,
Markus
Comment 14 Maarten Maathuis 2006-09-16 09:59:04 UTC
Created attachment 97164 [details, diff]
Ebuild diff needed to get it to compile.

The patch works, but some additional things were needed.
Comment 15 Markus Dittrich (RETIRED) gentoo-dev 2006-09-16 10:40:14 UTC
(In reply to comment #14)
> Created an attachment (id=97164) [edit]
> Ebuild diff needed to get it to compile.
> 
> The patch works, but some additional things were needed.
> 

Ahh, I missed the Makefile.linux64. However, the $(get_libdir)
is the proper way to do it. If you need that mylibdir hack as in
your ebuild there's likely a problem with your install. E.g. 
atlas installs into /usr/$(get_libdir); if yours is somewhere
else you should check into this. 
Please let me know how this goes.

Best,
Markus
Comment 16 Markus Dittrich (RETIRED) gentoo-dev 2006-09-16 10:46:39 UTC
Created attachment 97167 [details, diff]
Updated patch to fix Makefile.linux64 issue
Comment 17 Maarten Maathuis 2006-09-16 12:02:16 UTC
Atlas is fine, it's just that scilab tries to install into /usr/lib and then all the sed'ing happens in (image) /usr/lib64 because of my libdir. Guess i didn't need to the atlas, but i just did all of them.
Comment 18 Maarten Maathuis 2006-09-16 12:06:17 UTC
I meant: Guess i didn't have to change all of them in an attempt to get it to compile.

So it's a scilab problem, rather than a atlas problem.
Comment 19 Markus Dittrich (RETIRED) gentoo-dev 2006-09-16 14:14:31 UTC
(In reply to comment #18)
> I meant: Guess i didn't have to change all of them in an attempt to get it to
> compile.
> 
> So it's a scilab problem, rather than a atlas problem.
> 

Ah, I understand now: scilab installs into /usr/lib whereas
it should go into /usr/lib64. I'll have to have a look
at the makefile to see if I can fix this.

Thanks for your help!
Comment 20 Markus Dittrich (RETIRED) gentoo-dev 2006-09-16 14:30:51 UTC
Created attachment 97183 [details, diff]
patch to force proper multilib install patch

Could you please check if the following patch to the ebuild
helps.

Thanks!
Comment 21 Maarten Maathuis 2006-09-16 16:27:29 UTC
Patches work.

Out of curiosity, do you get (if using the tcltk interface):

Scilab : X error trapped - error message follows:
BadWindow (invalid Window parameter)

When plotting a figure, editing figure properties and moving to another submenu (from figure to axes for example). The screen also disappears for a little while.
Comment 22 Markus Dittrich (RETIRED) gentoo-dev 2006-09-16 16:50:11 UTC
(In reply to comment #21)
> Patches work.
> 

Cool and thanks for testing them! 
I'll commit them later and will then close this bug since
the x86_64 issues seem to be resolved.

> Out of curiosity, do you get (if using the tcltk interface):
> 
> Scilab : X error trapped - error message follows:
> BadWindow (invalid Window parameter)
> 
> When plotting a figure, editing figure properties and moving to another submenu
> (from figure to axes for example). The screen also disappears for a little
> while.
> 

I haven't tried the tcl/tk interface in a long time hence I couldn't 
say at the moment. Try re-emerging tcl/tk and if this doesn't
help please file a new bug.

Thanks in advance.

Markus
Comment 23 Markus Dittrich (RETIRED) gentoo-dev 2006-09-16 18:52:22 UTC
The patches are in portage cvs now. Thanks for you help.

Best,
Markus
Comment 24 Maarten Maathuis 2006-09-17 01:43:34 UTC
Maybe add a ~amd64 keyword?