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.
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.
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
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
works perfectly, apply and close. well done Markus
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.
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
i already opened one. http://bugs.gentoo.org/show_bug.cgi?id=127540 let's move there :)