Gentoo ebuild via CMAKE failing on testing phase

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)

Gentoo ebuild via CMAKE failing on testing phase

Postby archenroot » Wed Jan 11, 2017 10:07 am

Hi guys,

I work on Gentoo ebuild for latest 2.2.0 version. To be honest, this itself is not 1 hour ebuild creation :-).

The latest available version in STABLE tree is 1.4.0, here is link to 1.4.1 marked as unstable https://gitweb.gentoo.org/repo/gentoo.git/tree/sci-libs/magma/magma-1.4.1.ebuild

When I saw the CMakeLists.txt I wanted to rebuild the ebuild file in CMAKE way and simplify lots of things, however in the moment I am facing:
Code: Select all
g++  -DHAVE_CUBLAS -DMIN_CUDA_ARCH=200 -I"/opt/cuda/include" -DADD_ -DCUBLAS_GFORTRAN -I./include -I./testing -c -o testing/testing_zpotrf_gpu.o testing/testing_zpotrf_gpu.cpp
testing/testing_parse_opts.cpp: In function ‘int main(int, char**)’:
testing/testing_parse_opts.cpp:48:15: error: ‘iter’ does not name a type
     for( auto iter = opts.svd_work.begin(); iter < opts.svd_work.end(); ++iter ) {
               ^
testing/testing_parse_opts.cpp:48:45: error: expected ‘;’ before ‘iter’
     for( auto iter = opts.svd_work.begin(); iter < opts.svd_work.end(); ++iter ) {
                                             ^
testing/testing_parse_opts.cpp:48:45: error: ‘iter’ was not declared in this scope
testing/testing_parse_opts.cpp:51:15: error: ‘iter’ does not name a type
     for( auto iter = opts.jobu.begin(); iter < opts.jobu.end(); ++iter ) {
               ^
testing/testing_parse_opts.cpp:51:41: error: expected ‘;’ before ‘iter’
     for( auto iter = opts.jobu.begin(); iter < opts.jobu.end(); ++iter ) {
                                         ^
testing/testing_parse_opts.cpp:51:41: error: ‘iter’ was not declared in this scope
testing/testing_parse_opts.cpp:54:15: error: ‘iter’ does not name a type
     for( auto iter = opts.jobv.begin(); iter < opts.jobv.end(); ++iter ) {
               ^
testing/testing_parse_opts.cpp:54:41: error: expected ‘;’ before ‘iter’
     for( auto iter = opts.jobv.begin(); iter < opts.jobv.end(); ++iter ) {
                                         ^
testing/testing_parse_opts.cpp:54:41: error: ‘iter’ was not declared in this scope
Makefile:566: recipe for target 'testing/testing_parse_opts.o' failed
make: *** [testing/testing_parse_opts.o] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: sci-libs/magma-2.2.0::archenroot failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sci-libs/magma-2.2.0::archenroot'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/magma-2.2.0::archenroot'`.
 * The complete build log is located at '/tmp/portage/sci-libs/magma-2.2.0/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/sci-libs/magma-2.2.0/temp/environment'.
 * Working directory: '/tmp/portage/sci-libs/magma-2.2.0/work/magma-2.2.0'
 * S: '/tmp/portage/sci-libs/magma-2.2.0/work/magma-2.2.0'


Any idea about how ti skip testing, or fix the error?

The whole aim is to build CUDA binding for Torch, where CUTORCH projects uses MAGMA as dependency. The aim is to get full GPU support.

Thanks a lot for any hints.

Ladislav
archenroot
 
Posts: 3
Joined: Wed Jan 11, 2017 9:50 am

Return to User discussion

Who is online

Users browsing this forum: No registered users and 1 guest