Created attachment 366076 [details] emerge --info I was following https://wiki.gentoo.org/wiki/User_talk:Houseofsuns and emerging sci-libs/cblas-reference::science. However, the compile fails: $ FEATURES="-preserve-libs" emerge --oneshot --ask --verbose sci-libs/cblas-reference::science These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ~] sci-libs/cblas-reference-20110218::science USE="-static-libs" 0 kB Total: 1 package (1 new), Size of downloads: 0 kB !!! The following installed packages are masked: - virtual/blas-1.0::gentoo (masked by: package.mask) /etc/portage/package.mask: ## mask packages superseded by science overlay For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. Would you like to merge these packages? [Yes/No] >>> Verifying ebuild manifests >>> Emerging (1 of 1) sci-libs/cblas-reference-20110218 from science * cblas-reference-20110218.tgz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] * Using following Fortran compiler: * F77: x86_64-pc-linux-gnu-gfortran * FC: x86_64-pc-linux-gnu-gfortran >>> Unpacking source... >>> Unpacking cblas-reference-20110218.tgz to /mnt/data/tmp/portage/sci-libs/cblas-reference-20110218/work >>> Source unpacked in /mnt/data/tmp/portage/sci-libs/cblas-reference-20110218/work >>> Preparing source in /mnt/data/tmp/portage/sci-libs/cblas-reference-20110218/work/CBLAS ... >>> Source prepared. >>> Configuring source in /mnt/data/tmp/portage/sci-libs/cblas-reference-20110218/work/CBLAS ... >>> Source configured. >>> Compiling source in /mnt/data/tmp/portage/sci-libs/cblas-reference-20110218/work/CBLAS ... make -j8 'FFLAGS= -fPIC' 'CFLAGS= -DADD_ -fPIC' CBLIB=../lib/librefcblas.a alllib Makefile.in:8: *** missing separator. Stop. * ERROR: sci-libs/cblas-reference-20110218::science failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sci-libs/cblas-reference-20110218::science'`, * the complete build log and the output of `emerge -pqv '=sci-libs/cblas-reference-20110218::science'`. * The complete build log is located at '/mnt/data/tmp/portage/sci-libs/cblas-reference-20110218/temp/build.log'. * The ebuild environment file is located at '/mnt/data/tmp/portage/sci-libs/cblas-reference-20110218/temp/environment'. * Working directory: '/mnt/data/tmp/portage/sci-libs/cblas-reference-20110218/work/CBLAS' * S: '/mnt/data/tmp/portage/sci-libs/cblas-reference-20110218/work/CBLAS' /mnt/data/tmp/portage/sci-libs/cblas-reference-20110218/work/CBLAS/Makefile: dlvl = ./. include $(dlvl)/Makefile.in ... /mnt/data/tmp/portage/sci-libs/cblas-reference-20110218/work/CBLAS/Makefile.in: BLLIB=-lrefblas FC=x86_64-pc-linux-gnu-gfortran CC=x86_64-pc-linux-gnu-gcc CBLIB=../lib/librefcblas.a LOADER=$(FC) ARCH=x86_64-pc-linux-gnu-ar ARCHFLAGS=cr d RANLIB=x86_64-pc-linux-gnu-ranlib The last line is probably the problem!
Please set FFLAGS CFLAGS and friends. Does this help?
(In reply to Justin Lecher from comment #1) > Please set FFLAGS CFLAGS and friends. Does this help? I had it set to CFLAGS="-Os -pipe -g" CXXFLAGS="${CFLAGS}" But that gave the same result. I only unset them to reproduce the bug cleanly.
Created attachment 366102 [details, diff] removing "d" from auto-generated Makefile.in This modification solves the problem for me.
+ 25 Dec 2013; Justin Lecher <jlec@gentoo.org> cblas-reference-20110218.ebuild, + metadata.xml: + Fix Typo, #495202 +