First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 135227
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Science Mathematics related packages <sci-mathematics@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Gustavo Ribeiro Alves <gralves@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
config.log Config Log text/plain Gustavo Ribeiro Alves 2006-06-01 21:03 0000 30.94 KB Details
config.log scilab-4.0 config.log text/plain Maarten Maathuis 2006-09-15 15:49 0000 25.95 KB Details
config.log scilab snapshot(20060913) config log text/plain Maarten Maathuis 2006-09-15 15:50 0000 45.68 KB Details
scilab-4.0-configure-gfortran.patch potential gfortran fix for x86_64 patch Markus Dittrich 2006-09-16 08:40 0000 14.39 KB Details | Diff
scilab.diff Ebuild diff needed to get it to compile. patch Maarten Maathuis 2006-09-16 09:59 0000 2.53 KB Details | Diff
scilab-4.0-configure-gfortran.patch Updated patch to fix Makefile.linux64 issue patch Markus Dittrich 2006-09-16 10:46 0000 14.39 KB Details | Diff
scilab-4.0.ebuild.patch patch to force proper multilib install patch patch Markus Dittrich 2006-09-16 14:30 0000 622 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 135227 depends on: Show dependency tree
Bug 135227 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-06-01 21:02 0000
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 From Gustavo Ribeiro Alves 2006-06-01 21:03:03 0000 -------
Created an attachment (id=88155) [edit]
Config Log

------- Comment #2 From Markus Dittrich 2006-06-01 21:52:30 0000 -------
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 From Donnie Berkholz 2006-06-21 08:05:16 0000 -------
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 From Maarten Maathuis 2006-09-12 22:22:49 0000 -------
This problem also occurs for me, any idea how to fix it?

------- Comment #5 From Arrigo Marchiori 2006-09-13 03:14:41 0000 -------
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 From newt 2006-09-14 16:40:17 0000 -------
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 From Markus Dittrich 2006-09-14 18:11:44 0000 -------
(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 From Maarten Maathuis 2006-09-15 03:46:08 0000 -------
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 From Markus Dittrich 2006-09-15 05:16:43 0000 -------
(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 From Maarten Maathuis 2006-09-15 15:49:11 0000 -------
Created an attachment (id=97089) [edit]
scilab-4.0 config.log

This one fails.

------- Comment #11 From Maarten Maathuis 2006-09-15 15:50:59 0000 -------
Created an attachment (id=97090) [edit]
scilab snapshot(20060913) config log 

This one does detect the fortran compiler.

------- Comment #12 From Maarten Maathuis 2006-09-15 15:51:25 0000 -------
Config logs added as requested.

------- Comment #13 From Markus Dittrich 2006-09-16 08:40:50 0000 -------
Created an attachment (id=97153) [edit]
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 From Maarten Maathuis 2006-09-16 09:59:04 0000 -------
Created an attachment (id=97164) [edit]
Ebuild diff needed to get it to compile.

The patch works, but some additional things were needed.

------- Comment #15 From Markus Dittrich 2006-09-16 10:40:14 0000 -------
(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 From Markus Dittrich 2006-09-16 10:46:39 0000 -------
Created an attachment (id=97167) [edit]
Updated patch to fix Makefile.linux64 issue

------- Comment #17 From Maarten Maathuis 2006-09-16 12:02:16 0000 -------
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 From Maarten Maathuis 2006-09-16 12:06:17 0000 -------
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 From Markus Dittrich 2006-09-16 14:14:31 0000 -------
(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 From Markus Dittrich 2006-09-16 14:30:51 0000 -------
Created an attachment (id=97183) [edit]
patch to force proper multilib install patch

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

Thanks!

------- Comment #21 From Maarten Maathuis 2006-09-16 16:27:29 0000 -------
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 From Markus Dittrich 2006-09-16 16:50:11 0000 -------
(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 From Markus Dittrich 2006-09-16 18:52:22 0000 -------
The patches are in portage cvs now. Thanks for you help.

Best,
Markus

------- Comment #24 From Maarten Maathuis 2006-09-17 01:43:34 0000 -------
Maybe add a ~amd64 keyword?

First Last Prev Next    No search results available      Search page      Enter new bug