Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550060 - >=sci-libs/magma-1.4.0: does not find gcc compiler
Summary: >=sci-libs/magma-1.4.0: does not find gcc compiler
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-21 16:04 UTC by disperato
Modified: 2015-05-25 10:07 UTC (History)
2 users (show)

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


Attachments
emerge --info (file_550060.txt,6.87 KB, text/plain)
2015-05-21 16:04 UTC, disperato
Details

Note You need to log in before you can comment on or make changes to this bug.
Description disperato 2015-05-21 16:04:34 UTC
Created attachment 403732 [details]
emerge --info

emerge magma fails on
"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4": No such file or directory

Obviously that dir exists (it's a dir not a symlink) and is where gcc lives

Here is my screen (emerge --info is in attachment):

Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sci-libs/magma-1.4.1::gentoo
 * magma-1.4.1.tar.gz 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 magma-1.4.1.tar.gz to /hugetmp/portage/portage/sci-libs/magma-1.4.1/work
>>> Source unpacked in /hugetmp/portage/portage/sci-libs/magma-1.4.1/work
>>> Preparing source in /hugetmp/portage/portage/sci-libs/magma-1.4.1/work/magma-1.4.1 ...
>>> Source prepared.
>>> Configuring source in /hugetmp/portage/portage/sci-libs/magma-1.4.1/work/magma-1.4.1 ...
>>> Source configured.
>>> Compiling source in /hugetmp/portage/portage/sci-libs/magma-1.4.1/work/magma-1.4.1 ...
make -j9 lib 
compile for CUDA arch 3.x (Kepler)
======================================== magmablas
( cd magmablas      && make )
make[1]: Entering directory '/hugetmp/portage/portage/sci-libs/magma-1.4.1/work/magma-1.4.1/magmablas'
nvcc -DADD_ -DUNIX -O2 -v --compiler-bindir=\"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4\" --compiler-options="-march=core-avx2 -O2 -pipe -fPIC -fopenmp" --linker-options="-O1,--as-needed,-z,now,--hash-style=gnu,-soname,libmagma.so.1.4" -DHAVE_CUBLAS  -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_35,code=compute_35 -I"/opt/cuda/include" -DADD_ -DCUBLAS_GFORTRAN -I../include -I../control -c zauxiliary.cu -o zauxiliary.cu_o
nvcc -DADD_ -DUNIX -O2 -v --compiler-bindir=\"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4\" --compiler-options="-march=core-avx2 -O2 -pipe -fPIC -fopenmp" --linker-options="-O1,--as-needed,-z,now,--hash-style=gnu,-soname,libmagma.so.1.4" -DHAVE_CUBLAS  -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_35,code=compute_35 -I"/opt/cuda/include" -DADD_ -DCUBLAS_GFORTRAN -I../include -I../control -c zcaxpycp.cu -o zcaxpycp.cu_o
nvcc -DADD_ -DUNIX -O2 -v --compiler-bindir=\"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4\" --compiler-options="-march=core-avx2 -O2 -pipe -fPIC -fopenmp" --linker-options="-O1,--as-needed,-z,now,--hash-style=gnu,-soname,libmagma.so.1.4" -DHAVE_CUBLAS  -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_35,code=compute_35 -I"/opt/cuda/include" -DADD_ -DCUBLAS_GFORTRAN -I../include -I../control -c zclaswp.cu -o zclaswp.cu_o
nvcc -DADD_ -DUNIX -O2 -v --compiler-bindir=\"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4\" --compiler-options="-march=core-avx2 -O2 -pipe -fPIC -fopenmp" --linker-options="-O1,--as-needed,-z,now,--hash-style=gnu,-soname,libmagma.so.1.4" -DHAVE_CUBLAS  -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_35,code=compute_35 -I"/opt/cuda/include" -DADD_ -DCUBLAS_GFORTRAN -I../include -I../control -c zgeadd.cu -o zgeadd.cu_o
nvcc -DADD_ -DUNIX -O2 -v --compiler-bindir=\"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4\" --compiler-options="-march=core-avx2 -O2 -pipe -fPIC -fopenmp" --linker-options="-O1,--as-needed,-z,now,--hash-style=gnu,-soname,libmagma.so.1.4" -DHAVE_CUBLAS  -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_35,code=compute_35 -I"/opt/cuda/include" -DADD_ -DCUBLAS_GFORTRAN -I../include -I../control -c zgeadd_batched.cu -o zgeadd_batched.cu_o
nvcc -DADD_ -DUNIX -O2 -v --compiler-bindir=\"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4\" --compiler-options="-march=core-avx2 -O2 -pipe -fPIC -fopenmp" --linker-options="-O1,--as-needed,-z,now,--hash-style=gnu,-soname,libmagma.so.1.4" -DHAVE_CUBLAS  -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_35,code=compute_35 -I"/opt/cuda/include" -DADD_ -DCUBLAS_GFORTRAN -I../include -I../control -c zgemm_reduce.cu -o zgemm_reduce.cu_o
nvcc -DADD_ -DUNIX -O2 -v --compiler-bindir=\"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4\" --compiler-options="-march=core-avx2 -O2 -pipe -fPIC -fopenmp" --linker-options="-O1,--as-needed,-z,now,--hash-style=gnu,-soname,libmagma.so.1.4" -DHAVE_CUBLAS  -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_35,code=compute_35 -I"/opt/cuda/include" -DADD_ -DCUBLAS_GFORTRAN -I../include -I../control -c dgemv_MLU.cu -o dgemv_MLU.cu_o
nvcc -DADD_ -DUNIX -O2 -v --compiler-bindir=\"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4\" --compiler-options="-march=core-avx2 -O2 -pipe -fPIC -fopenmp" --linker-options="-O1,--as-needed,-z,now,--hash-style=gnu,-soname,libmagma.so.1.4" -DHAVE_CUBLAS  -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_35,code=compute_35 -I"/opt/cuda/include" -DADD_ -DCUBLAS_GFORTRAN -I../include -I../control -c zlacpy.cu -o zlacpy.cu_o
"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4": No such file or directory
nvcc -DADD_ -DUNIX -O2 -v --compiler-bindir=\"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4\" --compiler-options="-march=core-avx2 -O2 -pipe -fPIC -fopenmp" --linker-options="-O1,--as-needed,-z,now,--hash-style=gnu,-soname,libmagma.so.1.4" -DHAVE_CUBLAS  -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_35,code=compute_35 -I"/opt/cuda/include" -DADD_ -DCUBLAS_GFORTRAN -I../include -I../control -c zlacpy_batched.cu -o zlacpy_batched.cu_o
../Makefile.internal:113: recipe for target 'zauxiliary.cu_o' failed
"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4": No such file or directory
make[1]: *** [zauxiliary.cu_o] Error 1
make[1]: *** Waiting for unfinished jobs....
../Makefile.internal:113: recipe for target 'zclaswp.cu_o' failed
make[1]: *** [zclaswp.cu_o] Error 1
"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4": No such file or directory
../Makefile.internal:113: recipe for target 'zgeadd_batched.cu_o' failed
make[1]: *** [zgeadd_batched.cu_o] Error 1
"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4": No such file or directory
"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4": No such file or directory
"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4": No such file or directory
../Makefile.internal:113: recipe for target 'zcaxpycp.cu_o' failed
make[1]: *** [zcaxpycp.cu_o] Error 1
../Makefile.internal:113: recipe for target 'dgemv_MLU.cu_o' failed
make[1]: *** [dgemv_MLU.cu_o] Error 1
../Makefile.internal:113: recipe for target 'zgeadd.cu_o' failed
make[1]: *** [zgeadd.cu_o] Error 1
"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4": No such file or directory
../Makefile.internal:113: recipe for target 'zlacpy_batched.cu_o' failed
make[1]: *** [zlacpy_batched.cu_o] Error 1
"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4": No such file or directory
"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4": No such file or directory
../Makefile.internal:113: recipe for target 'zgemm_reduce.cu_o' failed
make[1]: *** [zgemm_reduce.cu_o] Error 1
../Makefile.internal:113: recipe for target 'zlacpy.cu_o' failed
make[1]: *** [zlacpy.cu_o] Error 1
make[1]: Leaving directory '/hugetmp/portage/portage/sci-libs/magma-1.4.1/work/magma-1.4.1/magmablas'
Makefile:35: recipe for target 'libmagma' failed
make: *** [libmagma] Error 2
 * ERROR: sci-libs/magma-1.4.1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sci-libs/magma-1.4.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/magma-1.4.1::gentoo'`.
 * The complete build log is located at '/sync/gentoo/log/sci-libs:magma-1.4.1:20150521-155317.log'.
 * For convenience, a symlink to the build log is located at '/hugetmp/portage/portage/sci-libs/magma-1.4.1/temp/build.log'.
 * The ebuild environment file is located at '/hugetmp/portage/portage/sci-libs/magma-1.4.1/temp/environment'.
 * Working directory: '/hugetmp/portage/portage/sci-libs/magma-1.4.1/work/magma-1.4.1'
 * S: '/hugetmp/portage/portage/sci-libs/magma-1.4.1/work/magma-1.4.1'

>>> Failed to emerge sci-libs/magma-1.4.1, Log file:
Comment 1 Karl-Johan Karlsson 2015-05-21 19:55:17 UTC
I'm seeing the same thing:

nvcc -DADD_ -DUNIX -O2 -v --compiler-bindir=\"/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.2\" --compiler-options="-march=native -ggdb -O2 -pipe -fweb -ftracer -fPIC -fopenmp" --linker-options="-O1,--as-needed,-O1,--hash-style=gnu,--enable-new-dtags,-soname,libmagma.so.1.4" -DHAVE_CUBLAS  -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_35,code=compute_35 -I"/opt/cuda/include" -DADD_ -DCUBLAS_GFORTRAN -I../include -I../control -c zlacpy.cu -o zlacpy.cu_o
"/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.2": No such file or directory
../Makefile.internal:113: recipe for target 'zlacpy.cu_o' failed
make[1]: *** [zlacpy.cu_o] Error 1

The problem is this:

   --compiler-bindir=\"/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4\"

which says that the quotation marks are a part of the path, which obviously doesn't work. Those backslashes come from eclass/cuda.eclass line 80, which says:

   ret="${flag}\\\"${gcc_bindir}\\\""

Changing that to

   ret="${flag}\"${gcc_bindir}\""

removes one layer of backslash quotation and allows me to build =sci-libs/magma-1.4.1.

According to the CVS log at https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/cuda.eclass?annotate=1.6 that code has been there since the beginning, but I can't understand how it has ever worked.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2015-05-25 10:07:43 UTC
+  25 May 2015; Justin Lecher <jlec@gentoo.org> cuda.eclass:
+  Loose quoting, #550060
+