Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125190 - sci-chemistry/raster3d-2.7c fails (gcc4 - fortran)
Summary: sci-chemistry/raster3d-2.7c fails (gcc4 - fortran)
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 Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-03-06 00:37 UTC by Patrizio Bassi
Modified: 2006-04-12 07:59 UTC (History)
0 users

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


Attachments
patch for fix gfortan compile issues (raster3d-gcc-4.1-gentoo.patch,2.37 KB, patch)
2006-04-10 23:22 UTC, Markus Dittrich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrizio Bassi 2006-03-06 00:37:49 UTC
raster3d has a fixed g77 reference.

since gcc4 g77 is called gfortran

gcc -g -m486 -w -I/usr/include -I/usr/local/include -DGUNZIP -DIMAGEPIPE -DTIFF_SUPPORT -DTIFF_INVERT -DJPEG_SUPPORT  -DPNG_SUPPORT -DLINUX -DNETWORKBYTEORDER -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort -o avs2ps avs2ps.c -lm
g77 -g -O -w -malign-double -o balls balls.f
make: g77: Command not found
make: *** [balls] Error 127

!!! ERROR: sci-chemistry/raster3d-2.7c failed.
Call stack:
  ebuild.sh, line 1933:   Called dyn_compile
  ebuild.sh, line 971:   Called src_compile

!!! Failed to make all target.
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Patrizio Bassi 2006-03-06 00:40:30 UTC
after a manual link 
ln -s /usr/bin/gfortran-4.0.2 /usr/bin/g77

ebuild starts compiling but hangs:

77 -g -O -w -malign-double \
rastep.f quadric.o suv.o -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort \
-o rastep
 In file rastep.f:141

      character*60 defcol(DEFCOLS)
                         1
Error: Expression at (1) must be of INTEGER type
rastep.f:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
make: *** [rastep] Error 1

!!! ERROR: sci-chemistry/raster3d-2.7c failed.
Call stack:
  ebuild.sh, line 1933:   Called dyn_compile
  ebuild.sh, line 971:   Called src_compile

!!! Failed to make all target.
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 2 Patrizio Bassi 2006-03-26 00:26:48 UTC
the g77 fix is easy, just sed the Makefile.incl

and change the g77 to gfortran...

the problem is the compiler seg. fault, same happens with gcc 4.1.0
Comment 3 Markus Dittrich (RETIRED) gentoo-dev 2006-04-10 23:22:38 UTC
Created attachment 84421 [details, diff]
patch for fix gfortan compile issues

Hi,

I've just changed the raster3d-2.7c to use the fortran.eclass which should
take care of g77 vs. gfortran issues (should be on the mirrors in an hour
or so). The attached patch fixes the remaining compile problems for me. 
Please try it out and report back.

Thanks,
Markus
Comment 4 Patrizio Bassi 2006-04-12 02:03:32 UTC
works perfectly, apply and close.

well done Markus
Comment 5 Patrizio Bassi 2006-04-12 05:54:20 UTC
Markus are you sure you fixed the eclass?

i ask this cause:

You need one of these Fortran Compilers: g77 ifc
 * Installed are:  ifc
 * Current Fortran Compiler is set to g77, which is not usable with this package !

!!! ERROR: sci-libs/blas-reference-19940131-r2 failed.


i know it's completly unrelated to raster3d, but that seems not to work properly.
Comment 6 Markus Dittrich (RETIRED) gentoo-dev 2006-04-12 07:05:38 UTC
Hi Patrizio,

Thanks for testing and I just committed the patch to cvs
which closes this bug. 

Regarding comment #5: I haven't done anything to the 
fortran.eclass but merely had the raster3d ebuild use it. Hence,
if there is a problem with blas-reference and the fortran.eclass
please file a bug and we'll have a look at it.

Thank you very much!

Best,
Markus
Comment 7 Patrizio Bassi 2006-04-12 07:59:45 UTC
i already opened one.
http://bugs.gentoo.org/show_bug.cgi?id=127540
let's move there :)